mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
adding new bootloader job
options are to use grub for BIOS, gummiboot for efi set extra mountpoint when efi is found
This commit is contained in:
parent
a58857baa6
commit
c1a1399958
6 changed files with 128 additions and 0 deletions
|
@ -48,12 +48,16 @@ def run():
|
|||
root_mount_point = tempfile.mkdtemp(prefix="calamares-root-")
|
||||
partitions = libcalamares.globalstorage.value("partitions")
|
||||
extra_mounts = libcalamares.job.configuration["extraMounts"]
|
||||
extra_mounts_efi = libcalamares.job.configuration["extraMountsEfi"]
|
||||
|
||||
# Sort by mount points to ensure / is mounted before the rest
|
||||
partitions.sort(key=lambda x: x["mountPoint"])
|
||||
mount_partitions(root_mount_point, partitions)
|
||||
|
||||
mount_partitions(root_mount_point, extra_mounts)
|
||||
|
||||
if(os.path.exists("/sys/firmware/efi/efivars")):
|
||||
mount_partitions(root_mount_point, extra_mounts_efi)
|
||||
|
||||
libcalamares.globalstorage.insert("rootMountPoint", root_mount_point)
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue