fix grub setup
This commit is contained in:
parent
fcd8a0ef79
commit
352874b800
15
includes/post/grub-setup.ksi
Normal file
15
includes/post/grub-setup.ksi
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
%post
|
||||||
|
set -x
|
||||||
|
|
||||||
|
if [[ -d /boot/efi/EFI/rocky ]] && [[ -f /boot/efi/EFI/rocky/grubaa64.efi ]]; then
|
||||||
|
mv -vf /boot/grub2/grub.cfg /boot/efi/EFI/rocky/grub.cfg
|
||||||
|
ln -s ../efi/EFI/rocky/grub.cfg /boot/grub2/grub.cfg
|
||||||
|
|
||||||
|
[[ -d /boot/efi/EFI/BOOT ]] || mkdir -vp /boot/efi/EFI/BOOT
|
||||||
|
cp -vf /boot/efi/EFI/rocky/grubaa64.efi /boot/efi/EFI/BOOT/BOOTAA64.EFI
|
||||||
|
else
|
||||||
|
echo "Something is wrong with the current GRUB install. Have fun debugging. Bye."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
%end
|
@ -1,3 +1,4 @@
|
|||||||
|
%include grub-setup.ksi
|
||||||
%include rpm-repos-enable.ksi
|
%include rpm-repos-enable.ksi
|
||||||
%include user-setup.ksi
|
%include user-setup.ksi
|
||||||
%include rpi-setup.ksi
|
%include rpi-setup.ksi
|
||||||
|
Loading…
Reference in New Issue
Block a user