summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-12-23 19:58:36 +0100
committerDave Reisner <dreisner@archlinux.org>2013-05-07 19:17:39 +0200
commitd662258b8769af81a036b7d4cd0af0a66e33dbb2 (patch)
treeae972606b1e8acadaa78ebbbff727efa1923df05 /init
parent40a62e9c5fb70b02ade89965dea6d2cb96672017 (diff)
downloadmkinitcpio-d662258b8769af81a036b7d4cd0af0a66e33dbb2.tar.gz
mkinitcpio-d662258b8769af81a036b7d4cd0af0a66e33dbb2.tar.xz
init: redirect /proc/cmdline to parse_cmdline
This makes it easier to test parse_cmdline. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'init')
-rw-r--r--init2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index f3f9253..dfebd53 100644
--- a/init
+++ b/init
@@ -17,7 +17,7 @@ mount -t tmpfs run /run -o nosuid,nodev,mode=0755
mkdir -m755 /run/initramfs
# parse the kernel command line
-parse_cmdline
+parse_cmdline </proc/cmdline
for d in ${disablehooks//,/ }; do
[ -e "/hooks/$d" ] && chmod 644 "/hooks/$d"