Skip to content

Commit 0e4042e

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

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)