diff --git a/src/modules/grub/main.py b/src/modules/grub/main.py index dde10dc8f..c073ebd5c 100644 --- a/src/modules/grub/main.py +++ b/src/modules/grub/main.py @@ -17,16 +17,14 @@ # You should have received a copy of the GNU General Public License # along with Calamares. If not, see . - import libcalamares def install_grub(boot_loader): install_path = boot_loader["installPath"] - ret = libcalamares.utils.chroot_call(["grub-install", install_path]) - assert ret == 0 - ret = libcalamares.utils.chroot_call(["grub-mkconfig", "-o", "/boot/grub/grub.cfg"]) - assert ret == 0 + libcalamares.utils.check_chroot_call(["grub-install", install_path]) + libcalamares.utils.check_chroot_call( + ["grub-mkconfig", "-o", "/boot/grub/grub.cfg"]) def run():