diff options
author | Daniel Baumann <daniel@debian.org> | 2008-10-26 16:38:48 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:43 +0100 |
commit | d33dce984d82ac5c9747d8f8588dbcf2beee5a6e (patch) | |
tree | f4c0881e0952650db4ef735f494410c8b179aaa7 /helpers | |
parent | a0dc71948797740624f53210e6c38a30dd5d9eac (diff) | |
download | vyos-live-build-d33dce984d82ac5c9747d8f8588dbcf2beee5a6e.tar.gz vyos-live-build-d33dce984d82ac5c9747d8f8588dbcf2beee5a6e.zip |
Using dd rather than cat to write mbr.bin to usb-hdd images; dd is more robust in case mbr.bin is corrupted.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_usb-hdd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd index 29136762a..cc8d7514d 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 |