Skip to content

Commit 9f7c3ba

Browse files
authored
Detect boot partition regardless of boot flags if mounted on /boot (#3303)
1 parent c4bea10 commit 9f7c3ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

archinstall/lib/models/device_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,9 @@ 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+
return any(set(self.flags) & set(self._boot_indicator_flags)) or Path('/boot') == self.mountpoint
969970

970971
def is_root(self) -> bool:
971972
if self.mountpoint is not None:

0 commit comments

Comments
 (0)