mirror of
https://github.com/rancher/os.git
synced 2025-08-31 22:32:14 +00:00
installer: copy 1M zeroes to the target device before running fdisk
otherwise grub-install chokes, even after the new partition table has been created
This commit is contained in:
@@ -28,11 +28,11 @@ if [ "$PARTITION_COUNT" -gt "1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
dd if=/dev/zero of=${DEVICE} bs=512 count=1
|
|
||||||
partprobe ${DEVICE}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dd if=/dev/zero of=${DEVICE} bs=512 count=2048
|
||||||
|
partprobe ${DEVICE}
|
||||||
|
|
||||||
fdisk ${DEVICE} <<EOF
|
fdisk ${DEVICE} <<EOF
|
||||||
n
|
n
|
||||||
p
|
p
|
||||||
|
Reference in New Issue
Block a user