From 5ee994c10029786947dc495e7078bbb30ab4a130 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 6 Nov 2011 12:30:40 -0500 Subject: fsck: implement basic fsck support This adds support for fsck'ing root at bootstrap if the fsck binary and necessary helpers are included. Signed-off-by: Dave Reisner --- init | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init') diff --git a/init b/init index 975368b..76ec252 100644 --- a/init +++ b/init @@ -78,6 +78,11 @@ if [ "${break}" = "y" ] || [ "${break}" = "premount" ]; then launch_interactive_shell fi +rootdev=$(resolve_device "$root") && root=$rootdev +unset rootdev + +[ -z "$skipfsck" ] && fsck_root + # Mount root at /new_root ${mount_handler:-default_mount_handler} /new_root -- cgit v1.2.3-24-g4f1b