From 9cffe4e3d4002502493bc02da6c21e648d5c878c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 9 Aug 2024 11:57:46 -0400 Subject: [PATCH] Fix postinstall bootloader regen with grub 2.12 We weren't really doing this right. Let's do it this way, which is how we do it in another place, and works. Signed-off-by: Adam Williamson --- tests/_do_install_and_reboot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index 4c5f6c0e..7c07ca08 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -175,7 +175,7 @@ sub run { else { # regenerate the bootloader config, only necessary if we # edited /etc/default/grub - assert_script_run "chroot $mount grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg"; + assert_script_run 'chroot ' . $mount . ' grub2-mkconfig -o $(readlink -m /etc/grub2.cfg)'; } } if (grep { $_ eq 'abrt' } @actions) {