From f97d0cc8b46709cc94154eb36bdd784a879e63b4 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 20 Mar 2012 18:01:59 -0400 Subject: 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 --- init_functions | 6 ++++++ 1 file changed, 6 insertions(+) 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#*=} -- cgit v1.2.3-24-g4f1b