summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-05 17:45:27 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-05 17:45:27 +0200
commit2c6b8367f0f526c6a12b91b85f2f7f3ef35b5559 (patch)
treed522dcac4d60b3ddebab4ef1ca5051c4410e7937 /init
parent079a37dfaa422323a5bb589fb036e23f83e2ac72 (diff)
downloadmkinitcpio-2c6b8367f0f526c6a12b91b85f2f7f3ef35b5559.tar.gz
mkinitcpio-2c6b8367f0f526c6a12b91b85f2f7f3ef35b5559.tar.xz
replace_root changes for encryption
- edits the existing cmdline for the /dev/mapper root device after applying decryption git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@66 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'init')
-rw-r--r--init3
1 files changed, 2 insertions, 1 deletions
diff --git a/init b/init
index e1c6ac4..f2d6361 100644
--- a/init
+++ b/init
@@ -8,7 +8,8 @@ msg ":: Loading Initramfs"
/bin/mount -t sysfs none /sys
/bin/mount -t proc none /proc
-CMDLINE=$(/bin/cat /proc/cmdline)
+read CMDLINE </proc/cmdline
+export CMDLINE
for cmd in $CMDLINE; do
case "$cmd" in