grub, bootloader: Make the grub-* and /boot/grub names configurable.

Some distributions (e.g. Fedora) use grub2-* (resp. /boot/grub2/) names.

Fixes #123.
This commit is contained in:
Kevin Kofler 2014-11-13 00:19:24 +01:00
parent d9187c25c7
commit 7e1ec78d35
4 changed files with 16 additions and 6 deletions

View file

@ -143,8 +143,8 @@ def install_bootloader(boot_loader, fw_type):
create_loader(loader_path)
else:
install_path = boot_loader["installPath"]
check_chroot_call(["grub-install", install_path])
check_chroot_call(["grub-mkconfig", "-o", "/boot/grub/grub.cfg"])
check_chroot_call([libcalamares.job.configuration["grubInstall"], install_path])
check_chroot_call([libcalamares.job.configuration["grubMkconfig"], "-o", libcalamares.job.configuration["grubCfg"]])
def run():