summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-15 10:11:56 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:29 +0100
commitc59670779a4e6a515eb59b3d926a966a313c69db (patch)
tree6e64c2dbf7e6929bad5ca496c1b49d30510828bc /helpers
parentc4ba9e6be87d445f8148dfa1a3dd606f0e0443cd (diff)
downloadlive-build-c59670779a4e6a515eb59b3d926a966a313c69db.zip
live-build-c59670779a4e6a515eb59b3d926a966a313c69db.tar.gz
Speeding up the dd call, thanks to Peter Skogstroem <peter.skogstrom@bitrunner.com>.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_binary_usb-hdd2
-rwxr-xr-xhelpers/lh_source_usb-hdd2
2 files changed, 2 insertions, 2 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 278db09..e6682eb 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -83,7 +83,7 @@ fi
# Everything which comes here needs to be cleaned up,
DU_DIM="$(du -ms binary | cut -f1)"
REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50)" # Just 2% more to be sure, need something more sophistcated here...
-dd if=/dev/zero of=chroot/binary.img bs=1024k count=${REAL_DIM}
+dd if=/dev/zero of=chroot/binary.img bs=1024k count=0 seek=${REAL_DIM}
FREELO="$(${LH_LOSETUP} -f)"
if [ ! -b chroot/${FREELO} ]
then
diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd
index b9d1526..59ef267 100755
--- a/helpers/lh_source_usb-hdd
+++ b/helpers/lh_source_usb-hdd
@@ -73,7 +73,7 @@ fi
# Everything which comes here needs to be cleaned up,
DU_DIM="$(du -ms source | cut -f1)"
REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50)" # Just 2% more to be sure, need something more sophistcated here...
-dd if=/dev/zero of=source.img bs=1024k count=${REAL_DIM}
+dd if=/dev/zero of=source.img bs=1024k count=0 seek=${REAL_DIM}
FREELO="$(${LH_LOSETUP} -f)"
if [ ! -b chroot/${FREELO} ]
then