summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-24 19:56:30 +0100
committerDave Reisner <dreisner@archlinux.org>2012-03-24 19:56:30 +0100
commit0b8dbba23813e45bee0e5d3ab12e79527d52db4b (patch)
tree39db0767fbf78e6ac1fad206bf006e1ec8d7d6e5
parentc1a07b155430357052e43c52edaaa89d002aaa7e (diff)
downloadmkinitcpio-0b8dbba23813e45bee0e5d3ab12e79527d52db4b.tar.gz
mkinitcpio-0b8dbba23813e45bee0e5d3ab12e79527d52db4b.tar.xz
init_functions: avoid special treatment for forcefsck
I don't want to make a habit of treating cmdline opts as special if they don't need to be, and this is a case where some simple PE magic can be substituted. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--init_functions3
1 files changed, 1 insertions, 2 deletions
diff --git a/init_functions b/init_functions
index 400bff3..081ba62 100644
--- a/init_functions
+++ b/init_functions
@@ -54,7 +54,6 @@ parse_cmdline() {
\#*) break ;;
# special cases
rw|ro) rwopt=$w ;;
- forcefsck) FORCEFSCK=-f ;;
# abide by shell variable naming rules
[[:alpha:]_]*=*)
rhs=${w#*=}
@@ -102,7 +101,7 @@ fsck_device() {
fi
msg ":: performing fsck on '$1'"
- FSTAB_FILE=/dev/null fsck -Ta -C"$FSCK_FD" "$1" -- $FORCEFSCK
+ FSTAB_FILE=/dev/null fsck -Ta -C"$FSCK_FD" "$1" -- ${forcefsck+-f}
}
fsck_root() {