summaryrefslogtreecommitdiff
path: root/helpers/lh_losetup
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:41 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:41 +0200
commitcee1de85c8b7c3576ae9a899a0f9a6482f7c339f (patch)
treed4eaae141bab202e052715c0557c3b6977a114ab /helpers/lh_losetup
parent6f5e2da03e5fd1af2200d2f55ca84647bc8d3626 (diff)
downloadlive-build-cee1de85c8b7c3576ae9a899a0f9a6482f7c339f.zip
live-build-cee1de85c8b7c3576ae9a899a0f9a6482f7c339f.tar.gz
Adding live-package 0.99.23-1.
Diffstat (limited to 'helpers/lh_losetup')
-rwxr-xr-xhelpers/lh_losetup2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_losetup b/helpers/lh_losetup
index e99f9e0..e2b3c0d 100755
--- a/helpers/lh_losetup
+++ b/helpers/lh_losetup
@@ -12,7 +12,7 @@ losetup -d "${DEVICE}"
LOOPDEVICE="`echo ${DEVICE}p${PARTITION:=1}`"
CYL="`echo ${FDISK_OUT} | sed -ne "s_^${LOOPDEVICE}[ *]*\([0-9]*\).*_\1_p" `"
-#OFFSET="`expr ${CYL}*512`"
+#OFFSET="`expr 512 '*' ${CYL}`"
OFFSET="$((CYL*512))"
echo loop $DEVICE at offset $OFFSET