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

This commit is contained in:
Daniel Baumann 2008-10-26 16:38:48 +01:00
parent a0dc719487
commit d33dce984d
1 changed files with 2 additions and 2 deletions

View File

@ -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