From 70e279574cd07e743d1f6e498d569add3fa6a7de Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 17 Jun 2010 22:44:23 +0200 Subject: [PATCH] fix sshd template Fixed the sshd template example. Signed-off-by: Daniel Lezcano --- templates/lxc-sshd.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/lxc-sshd.in b/templates/lxc-sshd.in index 6b223ec8a..0e8346f90 100644 --- a/templates/lxc-sshd.in +++ b/templates/lxc-sshd.in @@ -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 -- 2.47.2