summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-03-10 21:10:59 -0300
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:01:48 +0100
commit48a2346ab090a6bea0fbb7707a79349d0dbe0372 (patch)
treec6fcdae918ab78b492e7ecedd9ff5a2d158da091 /functions
parentbacd270f71658b5f60936e763740bee2117866cb (diff)
downloadlive-build-48a2346ab090a6bea0fbb7707a79349d0dbe0372.zip
live-build-48a2346ab090a6bea0fbb7707a79349d0dbe0372.tar.gz
functions/losetup.sh: use SECTORS as variable name to reflect the real usage
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/losetup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh
index a3bd8ba..d956086 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}"