[SCM] debian-live/live-helper branch, master, updated. 1.0_a36-1-20-g702de9d

Daniel Baumann daniel at debian.org
Thu Nov 15 09:13:51 UTC 2007


The branch, master has been updated
       via  702de9d2ed3a88d9657b70ccc91e4a692895ef69 (commit)
      from  2e51237e125d7512c7c5d6d6747c10f5da5f3147 (commit)


- Shortlog ------------------------------------------------------------
702de9d Speeding up the dd call, thanks to Peter Skogstroem <peter.skogstrom at bitrunner.com>.

Summary of changes:
 helpers/lh_binary_usb-hdd |    2 +-
 helpers/lh_source_usb-hdd |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit 702de9d2ed3a88d9657b70ccc91e4a692895ef69
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Nov 15 10:11:56 2007 +0100

    Speeding up the dd call, thanks to Peter Skogstroem <peter.skogstrom at bitrunner.com>.

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

-- 
debian-live/live-helper



More information about the debian-live-changes mailing list