summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-02-09 02:56:17 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-09 09:14:41 +0100
commit7d99fdb862b10e9019e5be78ad7afb6c1ae7f8c0 (patch)
tree2805bfd2f87ddc60594afda7231445999f641abd
parent24e89b6cc03f821c3e2f36413ca64080bca21404 (diff)
downloadmkinitcpio-7d99fdb862b10e9019e5be78ad7afb6c1ae7f8c0.tar.gz
mkinitcpio-7d99fdb862b10e9019e5be78ad7afb6c1ae7f8c0.tar.xz
Fix path when looking at /sys/block for rootdev
otherwise will access to /sys/block//sys/block/sda/sda1/dev (for example) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-rw-r--r--init2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index 823355c..88cefc1 100644
--- a/init
+++ b/init
@@ -122,7 +122,7 @@ if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then
else
for dir in /sys/block/*; do
if [ -f ${dir}/${root:5}/dev ]; then
- rootdev="$(cat /sys/block/${dir}/${root:5}/dev | sed 's|:| |')"
+ rootdev="$(cat ${dir}/${root:5}/dev | sed 's|:| |')"
break
fi
done