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:
VENOIRE 2025-07-24 16:11:18 +02:00 committed by GitHub
parent b77a43b201
commit ccebb6882e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -967,9 +967,7 @@ class PartitionModification:
return PartitionFlag.ESP in self.flags
def is_boot(self) -> bool:
if self.mountpoint is not None:
return self.mountpoint == Path('/boot')
return False
return PartitionFlag.BOOT in self.flags
def is_root(self) -> bool:
if self.mountpoint is not None: