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:
Dr. Jens Harbott 2021-10-21 10:18:36 +02:00
parent d5a01519c6
commit 4bd8258fbf

View File

@ -60,7 +60,9 @@ echo "Installing GRUB2..."
if [ -d /boot/grub2 ]; then
GRUB_CFG=/boot/grub2/grub.cfg
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
GRUBENV=/boot/grub/grubenv
fi