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>
This commit is contained in:
parent
b77a43b201
commit
ccebb6882e
|
|
@ -967,9 +967,7 @@ class PartitionModification:
|
||||||
return PartitionFlag.ESP in self.flags
|
return PartitionFlag.ESP in self.flags
|
||||||
|
|
||||||
def is_boot(self) -> bool:
|
def is_boot(self) -> bool:
|
||||||
if self.mountpoint is not None:
|
return PartitionFlag.BOOT in self.flags
|
||||||
return self.mountpoint == Path('/boot')
|
|
||||||
return False
|
|
||||||
|
|
||||||
def is_root(self) -> bool:
|
def is_root(self) -> bool:
|
||||||
if self.mountpoint is not None:
|
if self.mountpoint is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue