mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
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:
parent
d9187c25c7
commit
7e1ec78d35
4 changed files with 16 additions and 6 deletions
|
@ -23,8 +23,8 @@ from libcalamares.utils import check_chroot_call
|
|||
|
||||
def install_grub(boot_loader):
|
||||
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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue