Add --force to grub-install
Grub fails to install the bootloader due to it being on the root partition of a block device. This is not actually a problem for us, so we need to force it to succeed. Change-Id: I335ef04ca8a8a8a5c242d3444b09bcce0a9f51e7
This commit is contained in:
parent
caaf20926a
commit
757b8cee3b
@ -80,7 +80,9 @@ function install_grub2 {
|
|||||||
|
|
||||||
echo "Installing GRUB2..."
|
echo "Installing GRUB2..."
|
||||||
|
|
||||||
GRUB_OPTS=${GRUB_OPTS:-""}
|
# We need --force so grub does not fail due to being installed on the
|
||||||
|
# root partition of a block device.
|
||||||
|
GRUB_OPTS=${GRUB_OPTS:-"--force"}
|
||||||
# XXX: This is buggy:
|
# XXX: This is buggy:
|
||||||
# - --target=i386-pc is invalid for non-i386/amd64 architectures
|
# - --target=i386-pc is invalid for non-i386/amd64 architectures
|
||||||
# - and for UEFI too.
|
# - and for UEFI too.
|
||||||
|
Loading…
Reference in New Issue
Block a user