From: Sebastian Pipping Date: Wed, 6 May 2015 14:57:08 +0000 (+0200) Subject: No longer write too many disk ID bytes (issue #75) X-Git-Tag: v0.70~13 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=e781fc540f6654d5249813f85ff7fb49de73396f;hp=d08be121f23b053c24fffb233f4c557c22bad66a No longer write too many disk ID bytes (issue #75) --- diff --git a/grml-debootstrap b/grml-debootstrap index 2a91c2b..93bcbbf 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1036,7 +1036,7 @@ prepare_vm() { einfo "Adjusting disk signature to a fixed (non-random) value" MBRTMPFILE=$(mktemp) dd if="${TARGET}" of="${MBRTMPFILE}" bs=512 count=1 - echo -en "\x41\x41\x41\x41\x41" | dd of="${MBRTMPFILE}" conv=notrunc seek=440 bs=1 + echo -en "\x41\x41\x41\x41" | dd of="${MBRTMPFILE}" conv=notrunc seek=440 bs=1 dd if="${MBRTMPFILE}" of="${TARGET}" conv=notrunc eend $? fi