diff options
author | Erik Troan <ewt@redhat.com> | 1997-12-30 16:31:33 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1997-12-30 16:31:33 +0000 |
commit | e38801d1249cce18818649e940091b8f95f82ce5 (patch) | |
tree | bbe731407be59fe89e5e1cc0fa5d4f8db809dfdc /rc.d | |
parent | 0122bbb7e979f5f5d8cfe0119f4fb7795da3748c (diff) | |
download | initscripts-e38801d1249cce18818649e940091b8f95f82ce5.tar initscripts-e38801d1249cce18818649e940091b8f95f82ce5.tar.gz initscripts-e38801d1249cce18818649e940091b8f95f82ce5.tar.bz2 initscripts-e38801d1249cce18818649e940091b8f95f82ce5.tar.xz initscripts-e38801d1249cce18818649e940091b8f95f82ce5.zip |
1) tried to get /proc stuff right one more time (uses -t nonfs,proc now)
2) added support for /fsckoptions
3) changed 'yse' to 'yes'
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index edc7ef33..36f7a7ca 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -32,9 +32,15 @@ else domainname "" fi +if [ -f /fsckoptions ]; then + fsckoptions=`cat /fsckoptions` + else + fsckoptions='' +fi + if [ ! -f /fastboot ]; then echo "Checking root filesystems." - fsck -V -a / + fsck -V -a $fsckoptions / rc=$? @@ -84,8 +90,6 @@ if [ -x /sbin/isapnp -a -f /etc/isapnp.conf ]; then fi fi -umount -n /proc - # Remount the root filesystem read-write. echo "Remounting root filesystem in read-write mode." mount -n -o remount,rw / @@ -97,9 +101,9 @@ fi # Clear mtab >/etc/mtab -# Enter root into mtab. +# Enter root and /proc into mtab. mount -f / -mount -t proc /proc /proc +mount -f /proc if [ -f /proc/ksyms ]; then USEMODULES=y @@ -128,13 +132,13 @@ fi if [ -x /sbin/kerneld -a -n "$USEMODULES" ]; then /sbin/kerneld - KERNELD=yse + KERNELD=yes fi # Check filesystems if [ ! -f /fastboot ]; then echo "Checking filesystems." - fsck -R -A -V -a + fsck -R -A -V -a $fsckoptions # A return of 2 or higher means there were serious problems. if [ $? -gt 1 ]; then @@ -158,13 +162,11 @@ if [ ! -f /fastboot ]; then fi fi -# this avoids an error when mounting local filesystems -umount /proc - -# Mount all other filesystems (except for NFS). Contrary to standard usage, +# Mount all other filesystems (except for NFS and /proc, which is already +# mounted). Contrary to standard usage, # filesystems are NOT unmounted in single user mode. echo "Mounting local filesystems." -mount -a -t nonfs +mount -a -t nonfs,proc if [ -x /sbin/quotaon ]; then echo "Turning on user and group quotas for local filesystems" @@ -176,7 +178,7 @@ if [ -z "$KERNELD" ]; then fi # Clean out /etc. -rm -f /etc/mtab~ /fastboot /etc/nologin +rm -f /etc/mtab~ /fastboot /etc/nologin /fsckoptions >/var/run/utmp # Delete UUCP lock files. |