From 9f7c3bab0ff532009f2803b45983bd6b6c34812e Mon Sep 17 00:00:00 2001 From: mintsuki <36459316+mintsuki@users.noreply.github.com> Date: Sat, 29 Mar 2025 21:17:33 +0100 Subject: [PATCH] Detect boot partition regardless of boot flags if mounted on /boot (#3303) --- archinstall/lib/models/device_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/models/device_model.py b/archinstall/lib/models/device_model.py index 13a50ec7..e5742e7a 100644 --- a/archinstall/lib/models/device_model.py +++ b/archinstall/lib/models/device_model.py @@ -964,8 +964,9 @@ class PartitionModification: def is_boot(self) -> bool: """ Returns True if any of the boot indicator flags are found in self.flags + or if the partition is mounted on /boot """ - return any(set(self.flags) & set(self._boot_indicator_flags)) + return any(set(self.flags) & set(self._boot_indicator_flags)) or Path('/boot') == self.mountpoint def is_root(self) -> bool: if self.mountpoint is not None: