aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions10
1 files changed, 4 insertions, 6 deletions
diff --git a/functions b/functions
index 7516345..b9bfffc 100644
--- a/functions
+++ b/functions
@@ -494,13 +494,11 @@ NETFS="nfs,nfs4,smbfs,cifs,codafs,ncpfs,shfs,fuse,fuseblk,glusterfs,davfs,fuse.g
# Check local filesystems
fsck_all() {
- [[ -f /forcefsck ]] || in_array forcefsck $(< /proc/cmdline) && FORCEFSCK="-f"
-
- if [[ ! -n $FORCEFSCK ]] && { [[ -f /fastboot ]] || in_array fastboot $(< /proc/cmdline); }; then
+ if [[ -f /forcefsck ]] || in_array forcefsck $(< /proc/cmdline); then
+ FORCEFSCK="-f"
+ elif [[ -f /fastboot ]] || in_array fastboot $(< /proc/cmdline); then
return 0
- fi
-
- if [[ -e /run/initramfs/root-fsck ]]; then
+ elif [[ -e /run/initramfs/root-fsck ]]; then
IGNORE_MOUNTED="-M"
fi