]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
update path of tty.conf
authorteruo-oshida <teruo.oshida@miraclelinux.com>
Fri, 27 Mar 2015 09:04:31 +0000 (18:04 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 10 Apr 2015 15:29:42 +0000 (11:29 -0400)
$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 <teruo.oshida@miraclelinux.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-centos.in

index b489e0e1560b1f0f53cb1c48ff704816bb86b034..265b7d0f36a410ecf511512902e0fb4ee83e751f 100644 (file)
@@ -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