Fix bootloader installation for gentoo
The if/elif block added in [0] doesn't work for gentoo, let's hope that we can get along with an easy fix. [0] https://review.opendev.org/c/openstack/diskimage-builder/+/804000 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I543e04d2d7efea3e718bae31aa1cc4767bd359f8
This commit is contained in:
parent
d5a01519c6
commit
4bd8258fbf
@ -60,7 +60,9 @@ echo "Installing GRUB2..."
|
|||||||
if [ -d /boot/grub2 ]; then
|
if [ -d /boot/grub2 ]; then
|
||||||
GRUB_CFG=/boot/grub2/grub.cfg
|
GRUB_CFG=/boot/grub2/grub.cfg
|
||||||
GRUBENV=/boot/grub2/grubenv
|
GRUBENV=/boot/grub2/grubenv
|
||||||
elif [ -d /boot/grub ]; then
|
else
|
||||||
|
# TODO(frickler): /boot/grub doesn't seem to exist for gentoo either
|
||||||
|
# at this point, let's hope it gets created later
|
||||||
GRUB_CFG=/boot/grub/grub.cfg
|
GRUB_CFG=/boot/grub/grub.cfg
|
||||||
GRUBENV=/boot/grub/grubenv
|
GRUBENV=/boot/grub/grubenv
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user