summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_usb-hdd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-15 10:11:56 +0100
committerDaniel Baumann <daniel@debian.org>2007-11-15 10:11:56 +0100
commit702de9d2ed3a88d9657b70ccc91e4a692895ef69 (patch)
tree6e64c2dbf7e6929bad5ca496c1b49d30510828bc /helpers/lh_binary_usb-hdd
parent2e51237e125d7512c7c5d6d6747c10f5da5f3147 (diff)
downloadvyos-live-build-702de9d2ed3a88d9657b70ccc91e4a692895ef69.tar.gz
vyos-live-build-702de9d2ed3a88d9657b70ccc91e4a692895ef69.zip
Speeding up the dd call, thanks to Peter Skogstroem <peter.skogstrom@bitrunner.com>.
Diffstat (limited to 'helpers/lh_binary_usb-hdd')
-rwxr-xr-xhelpers/lh_binary_usb-hdd2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 278db0997..e6682eb14 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