From c48bc12251bef1652e6c117cecc7d4b68a483f92 Mon Sep 17 00:00:00 2001 From: teruo-oshida Date: Fri, 27 Mar 2015 18:04:31 +0900 Subject: [PATCH] update path of tty.conf MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit $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 --- templates/lxc-centos.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index b489e0e15..265b7d0f3 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -350,7 +350,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 -- 2.47.2