Skip to content

Commit 0aa30c0

Browse files
committed
Detect boot partition regardless of boot flags if mounted on /boot
1 parent 4711f7a commit 0aa30c0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

archinstall/lib/models/device_model.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,12 @@ def is_efi(self) -> bool:
964964
def is_boot(self) -> bool:
965965
"""
966966
Returns True if any of the boot indicator flags are found in self.flags
967+
or if the partition is mounted on /boot
967968
"""
968-
return any(set(self.flags) & set(self._boot_indicator_flags))
969+
if self.mountpoint is not None:
970+
return Path('/boot') == self.mountpoint
971+
else:
972+
return any(set(self.flags) & set(self._boot_indicator_flags))
969973

970974
def is_root(self) -> bool:
971975
if self.mountpoint is not None:

0 commit comments

Comments
 (0)