diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-02-09 02:56:17 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-02-09 09:14:41 +0100 |
commit | 7d99fdb862b10e9019e5be78ad7afb6c1ae7f8c0 (patch) | |
tree | 2805bfd2f87ddc60594afda7231445999f641abd /init | |
parent | 24e89b6cc03f821c3e2f36413ca64080bca21404 (diff) | |
download | mkinitcpio-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>
Diffstat (limited to 'init')
-rw-r--r-- | init | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |