---
functions | 1 +
rc.sysinit | 10 ++++------
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/functions b/functions
index 4c4ca0e..14b7a7b 100644
--- a/functions
+++ b/functions
@@ -362,6 +362,7 @@
NETFS="nonfs,nonfs4,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,noshfs,nofuse,nofuse
# Check local filesystems
fsck_all() {
+ [[ -x $(type -P fsck) ]] || return 0
stat_busy "Checking Filesystems"
FSCK_OUT=/dev/stdout
FSCK_ERR=/dev/stdout
diff --git a/rc.sysinit b/rc.sysinit
index 9b2a009..3fe7185 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -176,12 +176,10 @@ if [[ -f /etc/crypttab && $CS ]] && grep -q ^[^#]
/etc/crypttab; then
(( crypto_unlocked == 1 )) && activate_vgs
fi
-if [[ -x $(type -P fsck) ]]; then
- # Check filesystems
- fsck_all
- # Single-user login and/or automatic reboot if needed
- fsck_reboot $?
-fi
+# Check filesystems
+fsck_all
+# Single-user login and/or automatic reboot if needed
+fsck_reboot $?
status "Remounting Root Read/Write" \
mount -n -o remount,rw /
--
1.7.1