]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix sshd template
authorDaniel Lezcano <daniel.lezcano@fr.ibm.com>
Thu, 17 Jun 2010 20:44:23 +0000 (22:44 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 17 Jun 2010 20:44:23 +0000 (22:44 +0200)
Fixed the sshd template example.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-sshd.in

index 6b223ec8a31c3ba7ce91b4d195a4c3e4a0c922c5..0e8346f9019a16841d726e39e5dbe5e3fdaba63c 100644 (file)
@@ -25,7 +25,7 @@ install_sshd()
     rootfs=$1
 
     tree="\
-$rootfs/var/run \
+$rootfs/var/run/sshd \
 $rootfs/var/empty/sshd \
 $rootfs/var/lib/empty/sshd \
 $rootfs/etc/ssh \
@@ -105,8 +105,8 @@ lxc.mount.entry=/lib $rootfs/lib none ro,bind 0 0
 lxc.mount.entry=/bin $rootfs/bin none ro,bind 0 0
 lxc.mount.entry=/usr /$rootfs/usr none ro,bind 0 0
 lxc.mount.entry=/sbin $rootfs/sbin none ro,bind 0 0
-lxc.mount.entry=tmpfs $rootfs/var/run tmpfs defaults 0 0
-lxc.mount.entry=@BINDIR@/lxc-sshd $rootfs/sbin/init none bind 0 0
+lxc.mount.entry=tmpfs $rootfs/var/run/sshd tmpfs mode=0644 0 0
+lxc.mount.entry=@LXCTEMPLATEDIR@/lxc-sshd $rootfs/sbin/init none bind 0 0
 EOF
 
 if [ "$(uname -m)" = "x86_64" ]; then