Commit 91bcb2dd by Dwight Engen Committed by Stéphane Graber

oracle template: don't sed /etc/init/tty.conf on older releases

parent 9e69977f
...@@ -245,7 +245,9 @@ EOF ...@@ -245,7 +245,9 @@ EOF
echo "pts/0" >>$container_rootfs/etc/securetty echo "pts/0" >>$container_rootfs/etc/securetty
# prevent mingetty from calling vhangup(2) since it fails with userns # prevent mingetty from calling vhangup(2) since it fails with userns
sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/init/tty.conf if [ -f $container_rootfs/etc/init/tty.conf ]; then
sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/init/tty.conf
fi
# dont try to unmount /dev/lxc devices # dont try to unmount /dev/lxc devices
sed -i 's|&& $1 !~ /^\\/dev\\/ram/|\&\& $2 !~ /^\\/dev\\/lxc/ \&\& $1 !~ /^\\/dev\\/ram/|' $container_rootfs/etc/init.d/halt sed -i 's|&& $1 !~ /^\\/dev\\/ram/|\&\& $2 !~ /^\\/dev\\/lxc/ \&\& $1 !~ /^\\/dev\\/ram/|' $container_rootfs/etc/init.d/halt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment