X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=0feed2a7fab95e83b2123e9d02bdf278a75faf52;hp=ac1fe8bbfd53bca614d82ae0b1f41e8cf4b73839;hb=3fec01ea996163efabde77398bfb5eb84802079b;hpb=c83de438d2bd024b703a0dd456dc028d2ca42f6c diff --git a/grml-debootstrap b/grml-debootstrap index ac1fe8b..0feed2a 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) @@ -1113,6 +1112,7 @@ prepare_vm() { eend $? fi parted -s "${TARGET}" 'mkpart primary ext4 2M -1' + parted -s "${TARGET}" 'set 1 boot on' # if dm-mod isn't available then kpartx will fail with # "Is device-mapper driver missing from kernel? [...]"