rc.sysinit: fix console device in debug mode
This commit is contained in:
parent
9afe8a664d
commit
fafafcef40
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user