Detect boot partition regardless of boot flags if mounted on /boot (#3303)
This commit is contained in:
parent
c4bea107b0
commit
9f7c3bab0f
|
|
@ -964,8 +964,9 @@ class PartitionModification:
|
|||
def is_boot(self) -> bool:
|
||||
"""
|
||||
Returns True if any of the boot indicator flags are found in self.flags
|
||||
or if the partition is mounted on /boot
|
||||
"""
|
||||
return any(set(self.flags) & set(self._boot_indicator_flags))
|
||||
return any(set(self.flags) & set(self._boot_indicator_flags)) or Path('/boot') == self.mountpoint
|
||||
|
||||
def is_root(self) -> bool:
|
||||
if self.mountpoint is not None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue