summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-20 23:01:59 +0100
committerDave Reisner <dreisner@archlinux.org>2012-03-24 19:57:29 +0100
commitf97d0cc8b46709cc94154eb36bdd784a879e63b4 (patch)
treecec9749eae2e62183a4ba217db3edc82d872eed6
parent0b8dbba23813e45bee0e5d3ab12e79527d52db4b (diff)
downloadmkinitcpio-f97d0cc8b46709cc94154eb36bdd784a879e63b4.tar.gz
mkinitcpio-f97d0cc8b46709cc94154eb36bdd784a879e63b4.tar.xz
init_functions: support fsck.mode= cmdline parameter
Possible options are 'skip' and 'force' which are synonyms for fastboot and forcefsck, respectively. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--init_functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/init_functions b/init_functions
index 081ba62..58d5306 100644
--- a/init_functions
+++ b/init_functions
@@ -54,6 +54,12 @@ parse_cmdline() {
\#*) break ;;
# special cases
rw|ro) rwopt=$w ;;
+ fsck.mode=*)
+ case ${w#*=} in
+ force) forcefsck=y ;;
+ skip) fastboot=y ;;
+ esac
+ ;;
# abide by shell variable naming rules
[[:alpha:]_]*=*)
rhs=${w#*=}