summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-06-20 17:26:59 +0200
committerDave Reisner <dreisner@archlinux.org>2013-06-25 23:16:41 +0200
commit3f56800753e1e0c3db0e6c4ac77b0c4dc95a8491 (patch)
tree653d870f3861f62e51bbc8455d832a4648ad301c /init_functions
parent8c40f930f6b491e95abd1e853c31330b2e6ca6af (diff)
downloadmkinitcpio-3f56800753e1e0c3db0e6c4ac77b0c4dc95a8491.tar.gz
mkinitcpio-3f56800753e1e0c3db0e6c4ac77b0c4dc95a8491.tar.xz
init: remove unneeded intermediate variable
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
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