Switch to systemd-boot for UEFI while keeping GRUB2 for BIOS/MBR
This commit is contained in:
@@ -236,7 +236,8 @@ def mount_partitions(partition_info, mount_root="/mnt"):
|
||||
|
||||
# 2. Mount EFI (if exists)
|
||||
if partition_info.get("efi"):
|
||||
efi_mount = os.path.join(mount_root, "boot/efi")
|
||||
# For systemd-boot, we prefer mounting ESP to /boot
|
||||
efi_mount = os.path.join(mount_root, "boot")
|
||||
os.makedirs(efi_mount, exist_ok=True)
|
||||
run_command(["mount", partition_info["efi"], efi_mount])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user