do not overwrite the grub wrapper

This commit is contained in:
Trevor Cooper 2024-11-15 20:11:08 -08:00
parent ccb65282cd
commit d73e753339
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -182,7 +182,7 @@ sub run {
# messages, which screw up some needles # messages, which screw up some needles
assert_script_run 'sed -i -e "s,\(GRUB_CMDLINE_LINUX.*\)\",\1 console=tty0 quiet\",g" ' . $mount . '/etc/default/grub'; assert_script_run 'sed -i -e "s,\(GRUB_CMDLINE_LINUX.*\)\",\1 console=tty0 quiet\",g" ' . $mount . '/etc/default/grub';
# regenerate the bootloader config # regenerate the bootloader config
assert_script_run "chroot $mount grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg"; assert_script_run "chroot $mount grub2-mkconfig -o /boot/grub2/grub.cfg";
} }
if (grep { $_ eq 'abrt' } @actions) { if (grep { $_ eq 'abrt' } @actions) {
# Chroot in the newly installed system and switch on ABRT systemwide # Chroot in the newly installed system and switch on ABRT systemwide