diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-06-19 22:13:44 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-06-19 22:14:08 +0200 |
commit | d6e92394a4c133eb652714bb9aa13008c808301b (patch) | |
tree | deaba5a0c845634e1398f50fcf4d73566705481b | |
parent | 2e4666a3c0c69e4f8ff5d8533893c7b6f15d5414 (diff) | |
download | mkinitcpio-d6e92394a4c133eb652714bb9aa13008c808301b.tar.gz mkinitcpio-d6e92394a4c133eb652714bb9aa13008c808301b.tar.xz |
init: throw error on unknown fsck.mode
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r-- | init_functions | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/init_functions b/init_functions index dc4361a..98bf354 100644 --- a/init_functions +++ b/init_functions @@ -82,8 +82,15 @@ parse_cmdline() { rw|ro) rwopt=$_w ;; fsck.mode=*) case ${_w#*=} in - force) forcefsck=y ;; - skip) fastboot=y ;; + force) + forcefsck=y + ;; + skip) + fastboot=y + ;; + *) + err "unknown fsck.mode parameter: '${_w#*=}'" + ;; esac ;; # abide by shell variable naming rules |