Skip to content

Commit ccebb68

Browse files
hollowpointerVENOIRETorxed
authored
Fix boot detection to use PartitionFlag.BOOT instead of mountpoint (#3659)
Co-authored-by: VENOIRE <venoire@protonmail.com> Co-authored-by: Torxed <torxed@archlinux.org>
1 parent b77a43b commit ccebb68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

archinstall/lib/models/device.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,7 @@ def is_efi(self) -> bool:
967967
return PartitionFlag.ESP in self.flags
968968

969969
def is_boot(self) -> bool:
970-
if self.mountpoint is not None:
971-
return self.mountpoint == Path('/boot')
972-
return False
970+
return PartitionFlag.BOOT in self.flags
973971

974972
def is_root(self) -> bool:
975973
if self.mountpoint is not None:

0 commit comments

Comments
 (0)