Advertisement
teknoraver

lxc default

Mar 11th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. mkdir -p ~/.config/lxc
  4.  
  5. exec >~/.config/lxc/default.conf
  6.  
  7. echo 'lxc.include = /etc/lxc/default.conf'
  8. awk -F: /^$USER'/{print "lxc.id_map = u 0", $2, $3}' /etc/subuid
  9. awk -F: /^$USER'/{print "lxc.id_map = g 0", $2, $3}' /etc/subgid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement