diff options
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/losetup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh index a3bd8ba4d..d95608618 100755 --- a/functions/losetup.sh +++ b/functions/losetup.sh @@ -27,8 +27,8 @@ Losetup () ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" else - CYLINDERS="$(echo "$FDISK_OUT" | sed -ne "s|^$LOOPDEVICE[ *]*\([0-9]*\).*|\1|p")" - OFFSET="$(expr ${CYLINDERS} '*' 512)" + SECTORS="$(echo "$FDISK_OUT" | sed -ne "s|^$LOOPDEVICE[ *]*\([0-9]*\).*|\1|p")" + OFFSET="$(expr ${SECTORS} '*' 512)" Echo_message "Mounting ${DEVICE} with offset ${OFFSET}" |