rc.sysinit: fix console device in debug mode

This commit is contained in:
Silvan Calarco 2011-11-14 19:38:35 +01:00
parent 9afe8a664d
commit fafafcef40

View File

@ -46,6 +46,7 @@ done
[ $logfile ] || {
logfile="/dev/.sysinit.start"
> $logfile
}
if [ ! -d $rc_base/rc$runlevel.d ]; then
@ -53,8 +54,6 @@ if [ ! -d $rc_base/rc$runlevel.d ]; then
exit 1
fi
> $logfile
# set dns-resolving safe hostname for sysinit to successfully run
hostname localhost
@ -97,7 +96,7 @@ which exited with a return value of $error_value
done
# rootfs should now be mounted rw, we can move logs there and umount tmpfs...
mv $logfile /var/log/initd.sysinit.start
[ $debug -eq 0 ] && mv $logfile /var/log/initd.sysinit.start
# ...and remove garbage temp files
rm -f /tmp/.runlevel.start.* 2>/dev/null