Switch to systemd-boot for UEFI while keeping GRUB2 for BIOS/MBR

This commit is contained in:
2026-02-10 13:29:02 +01:00
parent 2e8e99f481
commit ada17eefd7
2 changed files with 42 additions and 35 deletions

View File

@@ -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: