From: Sebastian Pipping Date: Thu, 30 Jul 2015 15:41:40 +0000 (+0200) Subject: Use parted to create partition table (issue #90) X-Git-Tag: v0.74~8 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=1ba6bfdd77eabc38901f7787b2f4e34ec011023d;hp=c83de438d2bd024b703a0dd456dc028d2ca42f6c Use parted to create partition table (issue #90) --- diff --git a/grml-debootstrap b/grml-debootstrap index ac1fe8b..732dfc1 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1102,8 +1102,7 @@ prepare_vm() { if [ -n "$VMFILE" ]; then qemu-img create -f raw "${TARGET}" "${VMSIZE}" fi - echo 4 66 | /usr/share/grml-debootstrap/bootgrub.mksh -A | dd of="$TARGET" conv=notrunc - dd if=/dev/zero bs=1 conv=notrunc count=64 seek=446 of="$TARGET" + parted -s "${TARGET}" 'mklabel msdos' if [ "$FIXED_DISK_IDENTIFIERS" = "yes" ] ; then einfo "Adjusting disk signature to a fixed (non-random) value" MBRTMPFILE=$(mktemp)