From: teruo-oshida Date: Fri, 27 Mar 2015 09:04:31 +0000 (+0900) Subject: update path of tty.conf X-Git-Tag: lxc-1.0.8~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1367afe24be5b1f0a304d64a1b7be0a01bd49018;p=thirdparty%2Flxc.git update path of tty.conf $container_rootfs may not be used so 'sed' will try to patch "/etc/init/tty.conf". It must not be correct. Signed-off-by: Teruo Oshida Acked-by: Stéphane Graber --- diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 3d15117f6..272d25743 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -344,7 +344,7 @@ EOF # prevent mingetty from calling vhangup(2) since it fails with userns. # Same issue as oracle template: prevent mingetty from calling vhangup(2) # commit 2e83f7201c5d402478b9849f0a85c62d5b9f1589. - sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/init/tty.conf + sed -i 's|mingetty|mingetty --nohangup|' $rootfs_path/etc/init/tty.conf if [ ${root_display_password} = "yes" ] then