Skip to content
Snippets Groups Projects
Commit d175d199 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Rough chroot call failure check

parent 271b0945
Branches
Tags
No related merge requests found
......@@ -23,8 +23,10 @@ import libcalamares
def install_grub(boot_loader):
install_path = boot_loader["installPath"]
libcalamares.utils.chroot_call(["grub-install", install_path])
libcalamares.utils.chroot_call(["grub-mkconfig", "-o", "/boot/grub/grub.cfg"])
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
def run():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment