summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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