Fixes for Fedora; support Rocky Linux Live ISO

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
Maurice Zhou
2021-08-04 23:24:09 +08:00
committed by George Melikov
parent 9261cfb4f5
commit ae7c5d19f4
15 changed files with 146 additions and 126 deletions

View File

@@ -54,9 +54,6 @@ Install GRUB
dracut --force --kver $kernel_version
done
#. When in doubt, install both legacy boot
and EFI.
#. Disable BLS::
echo "GRUB_ENABLE_BLSCFG=false" >> /etc/default/grub
@@ -70,6 +67,9 @@ Install GRUB
Boot environment-specific configuration (kernel, etc)
is stored in ``/boot/grub2/grub.cfg``, enabling rollback.
#. When in doubt, install both legacy boot
and EFI.
#. If using legacy booting, install GRUB to every disk::
for i in ${DISK[@]}; do
@@ -93,6 +93,7 @@ Install GRUB
#. For both legacy and EFI booting: mirror ESP content::
ESP_MIRROR=$(mktemp -d)
unalias -a
cp -r /boot/efi/EFI $ESP_MIRROR
for i in /boot/efis/*; do
cp -r $ESP_MIRROR/EFI $i