From 43c88567af1d31a131037aa8752ddce054f43ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Mon, 4 Aug 2014 17:01:05 +0200 Subject: [PATCH] Use check_chroot_call --- src/modules/grub/main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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():