Use check_chroot_call

This commit is contained in:
Aurélien Gâteau 2014-08-04 17:01:05 +02:00
parent a1b7d3639e
commit 43c88567af

View File

@ -17,16 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with Calamares. If not, see <http://www.gnu.org/licenses/>.
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():