[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-45-g9e2e77f

Daniel Baumann daniel at debian.org
Sun Oct 26 15:39:02 UTC 2008


The following commit has been merged in the master branch:
commit 9e2e77fc2b8ca8a1e8f73d403d40c4b7001932ff
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Oct 26 16:38:48 2008 +0100

    Using dd rather than cat to write mbr.bin to usb-hdd images; dd is more robust in case mbr.bin is corrupted.

diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 2913676..cc8d751 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -155,7 +155,7 @@ case "${LH_CHROOT_BUILD}" in
 
 		if [ "${LH_BOOTLOADER}" = "syslinux" ]
 		then
-			cat chroot/usr/lib/syslinux/mbr.bin > ${FREELO}
+			dd if=chroot/usr/lib/syslinux/mbr.bin of=${FREELO} bs=440 count=1
 		fi
 		;;
 
@@ -167,7 +167,7 @@ case "${LH_CHROOT_BUILD}" in
 
 		if [ "${LH_BOOTLOADER}" = "syslinux" ]
 		then
-			cat /usr/lib/syslinux/mbr.bin > ${FREELO}
+			dd if=/usr/lib/syslinux/mbr.bin of=${FREELO} bs=440 count=1
 		fi
 		;;
 esac

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list