summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions5
1 files changed, 2 insertions, 3 deletions
diff --git a/init_functions b/init_functions
index 3fa2128..152da7f 100644
--- a/init_functions
+++ b/init_functions
@@ -243,7 +243,7 @@ fsck_root() {
}
resolve_device() {
- local major minor dev tag tagval device=$1
+ local major minor dev tag device=$1
# attempt to resolve devices immediately. if this fails
# and udev is running, fall back on lazy resolution using
@@ -255,8 +255,7 @@ resolve_device() {
dev=$(blkid -lt "$device" -o device)
if [ -z "$dev" -a "$udevd_running" -eq 1 ]; then
tag=$(awk -v t="${device%%=*}" 'BEGIN { print tolower(t) }')
- tagval=${device#*=}
- dev=/dev/disk/by-$tag/$tagval
+ dev=/dev/disk/by-$tag/${device#*=}
fi
esac