summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default6
1 files changed, 3 insertions, 3 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index efb0abf1..4215920d 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -64,9 +64,9 @@ config_distro () {
echo "# inittab is obsolete with the change to upstart from ubuntu 7.10" \
> /mnt/etc/inittab
- # fix getty bug
- # (console login on tty1 is started too early)
- sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1
+ # fix getty bug (console login on tty1 is started too early)
+ [ -f /mnt/etc/event.d/tty1 ] && \
+ sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1
# for screen sessions
testmkd /mnt/var/run/screen root:utmp 0775