From d175d199eb08d2d1e379890fe5a0d5f5e4d498f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 1 Aug 2014 16:59:24 +0200 Subject: [PATCH] Rough chroot call failure check --- src/modules/grub/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/grub/main.py b/src/modules/grub/main.py index 8327f43dc..dde10dc8f 100644 --- a/src/modules/grub/main.py +++ b/src/modules/grub/main.py @@ -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():