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) {