Fix booting into single user mode
Due to a shift, mountfstab was unable to locate the fstab file and mount other file systems causing a number of errors to be generated.
This commit is contained in:
parent
d729ecb11b
commit
6659ae1fc3
2 changed files with 4 additions and 5 deletions
7
etc/rc
7
etc/rc
|
@ -94,7 +94,6 @@ esac
|
||||||
|
|
||||||
case $action in
|
case $action in
|
||||||
start)
|
start)
|
||||||
echo -n "Multiuser startup in progress ..."
|
|
||||||
|
|
||||||
# National keyboard?
|
# National keyboard?
|
||||||
test -f /etc/keymap && loadkeys /etc/keymap
|
test -f /etc/keymap && loadkeys /etc/keymap
|
||||||
|
@ -110,7 +109,6 @@ start)
|
||||||
then
|
then
|
||||||
up -n is -period 5HZ
|
up -n is -period 5HZ
|
||||||
fi
|
fi
|
||||||
echo
|
|
||||||
|
|
||||||
# Set timezone.
|
# Set timezone.
|
||||||
export TZ=GMT0
|
export TZ=GMT0
|
||||||
|
@ -175,10 +173,13 @@ start)
|
||||||
|
|
||||||
if [ "$sflag" ]
|
if [ "$sflag" ]
|
||||||
then
|
then
|
||||||
echo "Single user."
|
echo "Single user. Press ^D to resume multiuser startup."
|
||||||
intr sh
|
intr sh
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Multiuser startup in progress ..."
|
||||||
|
|
||||||
case "`printroot -r`":$bootcd in
|
case "`printroot -r`":$bootcd in
|
||||||
/dev/ram:)
|
/dev/ram:)
|
||||||
# Remove boot-only things to make space,
|
# Remove boot-only things to make space,
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
mountfstab()
|
mountfstab()
|
||||||
{
|
{
|
||||||
shift `expr $OPTIND - 1`
|
|
||||||
|
|
||||||
fstabfile="$1"
|
fstabfile="$1"
|
||||||
|
|
||||||
if [ ! -f $fstabfile ]
|
if [ ! -f $fstabfile ]
|
||||||
|
|
Loading…
Reference in a new issue