summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dracut.sh')
-rwxr-xr-xdracut.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut.sh b/dracut.sh
index 6208c82a..2ac3d8b1 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -877,7 +877,7 @@ if [[ $hostonly ]]; then
mp=$(readlink -f "$mp")
mountpoint "$mp" >/dev/null 2>&1 || continue
_dev=$(find_block_device "$mp")
- _bdev=$(readlink -f "/dev/block/$dev")
+ _bdev=$(readlink -f "/dev/block/$_dev")
[[ -b $_bdev ]] && _dev=$_bdev
push host_devs $_dev
[[ "$_mp" == "/" ]] && root_dev="$_dev"