Skip to content

Commit

Permalink
update path of tty.conf
Browse files Browse the repository at this point in the history
$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>
  • Loading branch information
teruo-oshida authored and stgraber committed Aug 14, 2015
1 parent 8d66bdc commit 1367afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/lxc-centos.in
Expand Up @@ -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
Expand Down

0 comments on commit 1367afe

Please sign in to comment.