introduce the fsckopts sysenv, options passed to fsck by /etc/rc.
setting 'fsckopts=-a' makes it much easier to work on a minix machine remotely and reboot after a crash.
This commit is contained in:
parent
de93803ab0
commit
9fd4c2a20d
1 changed files with 9 additions and 3 deletions
12
etc/rc
12
etc/rc
|
@ -51,6 +51,12 @@ start)
|
|||
# National keyboard?
|
||||
test -f /etc/keymap && loadkeys /etc/keymap
|
||||
|
||||
# options for fsck. default is -r, which prompts the user for repairs.
|
||||
fsckopts="`sysenv fsckopts`"
|
||||
if [ ! "$fsckopts" ]
|
||||
then fsckopts=-r
|
||||
fi
|
||||
|
||||
if [ "`sysenv debug_fkeys`" != 0 ]
|
||||
then
|
||||
up is -period 5HZ
|
||||
|
@ -133,12 +139,12 @@ Mount $usr /usr failed -- Single user."
|
|||
then
|
||||
umount $usr
|
||||
echo "fsck / - $root"
|
||||
intr fsck -r $root
|
||||
intr fsck $fsckopts $root
|
||||
echo "fsck /usr - $usr"
|
||||
intr fsck -r $usr
|
||||
intr fsck $fsckopts $usr
|
||||
if [ ! -z "$home" ]
|
||||
then echo "fsck /home - $home"
|
||||
intr fsck -r $home
|
||||
intr fsck $fsckopts $home
|
||||
fi
|
||||
mount $bin_img $usr /usr
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue