Commit 3209ce9c authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Use --show instead of -s in losetup

The -s option is deprecated and removed in newer versions

Credits: psomas@grnet.gr
parent 2701509c
......@@ -137,7 +137,7 @@ esac
# This is needed for file disks.
if [ ! -b "$blockdev" ]; then
original_blockdev="$blockdev"
blockdev=$($LOSETUP -sf "$blockdev")
blockdev=$($LOSETUP --show -f "$blockdev")
add_cleanup $LOSETUP -d "$blockdev"
fi
......
......@@ -28,7 +28,7 @@ ganeti_os_main
# we'll first losetup it. This is needed for file disks.
if [ ! -b "$blockdev" ]; then
original_blockdev="$blockdev"
blockdev=$($LOSETUP -sf "$blockdev")
blockdev=$($LOSETUP --show -f "$blockdev")
add_cleanup $LOSETUP -d "$blockdev"
fi
......
......@@ -28,7 +28,7 @@ ganeti_os_main
# we'll first losetup it. This is needed for file disks.
if [ ! -b "$blockdev" ]; then
original_blockdev="$blockdev"
blockdev=$($LOSETUP -sf "$blockdev")
blockdev=$($LOSETUP --show -f "$blockdev")
add_cleanup $LOSETUP -d "$blockdev"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment