Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/interactions
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-09-29 10:09:28 -0400
committerGitHub <noreply@github.com>2023-09-29 16:09:28 +0200
commit9f5c2bb70b0a4551eaa871164a3c9d71c1e65086 (patch)
tree551c839fcef46bb9cd60440a3edfef3b58da4ace /archinstall/lib/interactions
parent5f5b95f24515de0d265a96e6919622d185f10fa3 (diff)
Add support for ESP partition flag (#2133)
Diffstat (limited to 'archinstall/lib/interactions')
-rw-r--r--archinstall/lib/interactions/disk_conf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/interactions/disk_conf.py b/archinstall/lib/interactions/disk_conf.py
index 253a623d..84a3196c 100644
--- a/archinstall/lib/interactions/disk_conf.py
+++ b/archinstall/lib/interactions/disk_conf.py
@@ -170,9 +170,11 @@ def select_disk_config(
def _boot_partition(sector_size: disk.SectorSize) -> disk.PartitionModification:
+ flags = [disk.PartitionFlag.Boot]
if SysInfo.has_uefi():
start = disk.Size(1, disk.Unit.MiB, sector_size)
size = disk.Size(512, disk.Unit.MiB, sector_size)
+ flags.append(disk.PartitionFlag.ESP)
else:
start = disk.Size(3, disk.Unit.MiB, sector_size)
size = disk.Size(203, disk.Unit.MiB, sector_size)
@@ -185,7 +187,7 @@ def _boot_partition(sector_size: disk.SectorSize) -> disk.PartitionModification:
length=size,
mountpoint=Path('/boot'),
fs_type=disk.FilesystemType.Fat32,
- flags=[disk.PartitionFlag.Boot]
+ flags=flags
)