diff --git a/templates/lxc-sshd.in b/templates/lxc-sshd.in index e6f90ad..54309c7 100644 --- a/templates/lxc-sshd.in +++ b/templates/lxc-sshd.in @@ -136,7 +136,8 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time # When using LXC with apparmor, uncomment the next line to run unconfined: #lxc.apparmor.profile = unconfined -lxc.mount.entry = /dev dev none ro,bind 0 0 +lxc.autodev = 1 + lxc.mount.entry = /lib lib none ro,bind 0 0 lxc.mount.entry = /bin bin none ro,bind 0 0 lxc.mount.entry = /usr usr none ro,bind 0 0 @@ -238,7 +239,7 @@ EOF ifconfig eth0 |grep inet fi - exec @SBINDIR@/init.lxc -- $sshd_path + exec @SBINDIR@/init.lxc --name $name -- $sshd_path exit 1 fi