summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-06-19 22:13:44 +0200
committerDave Reisner <dreisner@archlinux.org>2013-06-19 22:14:08 +0200
commitd6e92394a4c133eb652714bb9aa13008c808301b (patch)
treedeaba5a0c845634e1398f50fcf4d73566705481b /init_functions
parent2e4666a3c0c69e4f8ff5d8533893c7b6f15d5414 (diff)
downloadmkinitcpio-d6e92394a4c133eb652714bb9aa13008c808301b.tar.gz
mkinitcpio-d6e92394a4c133eb652714bb9aa13008c808301b.tar.xz
init: throw error on unknown fsck.mode
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions11
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