diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-03-20 23:01:59 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-03-24 19:57:29 +0100 |
commit | f97d0cc8b46709cc94154eb36bdd784a879e63b4 (patch) | |
tree | cec9749eae2e62183a4ba217db3edc82d872eed6 /init_functions | |
parent | 0b8dbba23813e45bee0e5d3ab12e79527d52db4b (diff) | |
download | mkinitcpio-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>
Diffstat (limited to 'init_functions')
-rw-r--r-- | init_functions | 6 |
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#*=} |