summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init2
-rw-r--r--init_functions5
2 files changed, 6 insertions, 1 deletions
diff --git a/init b/init
index 86a954b..b596a68 100644
--- a/init
+++ b/init
@@ -64,7 +64,7 @@ fi
rootdev=$(resolve_device "$root") && root=$rootdev
unset rootdev
-[ -z "$skipfsck" ] && fsck_root
+fsck_root
# Mount root at /new_root
${mount_handler:-default_mount_handler} /new_root
diff --git a/init_functions b/init_functions
index 4945136..e9a0cb9 100644
--- a/init_functions
+++ b/init_functions
@@ -96,6 +96,11 @@ fsck_device() {
return 255
fi
+ if [ -n "$fastboot" ]; then
+ msg ":: skipping fsck on '$1'"
+ return
+ fi
+
msg ":: performing fsck on '$1'"
FSTAB_FILE=/dev/null fsck -Ta -C"$FSCK_FD" "$1" -- $FORCEFSCK
}