From 21453e38a94ff50185f767e1b1b59108354608f2 Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Thu, 1 Oct 2015 13:53:48 +0500 Subject: [PATCH] installer: copy 1M zeroes to the target device before running fdisk otherwise grub-install chokes, even after the new partition table has been created --- scripts/installer/set-disk-partitions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/installer/set-disk-partitions b/scripts/installer/set-disk-partitions index d546f3d3..dda84d21 100755 --- a/scripts/installer/set-disk-partitions +++ b/scripts/installer/set-disk-partitions @@ -28,11 +28,11 @@ if [ "$PARTITION_COUNT" -gt "1" ]; then exit 1 fi done - - dd if=/dev/zero of=${DEVICE} bs=512 count=1 - partprobe ${DEVICE} fi +dd if=/dev/zero of=${DEVICE} bs=512 count=2048 +partprobe ${DEVICE} + fdisk ${DEVICE} <