( modifications: list[DeviceModification], lvm_config: LvmConfiguration | None = None, )
| 1509 | |
| 1510 | @staticmethod |
| 1511 | def validate_enc( |
| 1512 | modifications: list[DeviceModification], |
| 1513 | lvm_config: LvmConfiguration | None = None, |
| 1514 | ) -> bool: |
| 1515 | partitions = [] |
| 1516 | |
| 1517 | for mod in modifications: |
| 1518 | for part in mod.partitions: |
| 1519 | partitions.append(part) |
| 1520 | |
| 1521 | if len(partitions) > 2: # assume one boot and at least 2 additional |
| 1522 | if lvm_config: |
| 1523 | return False |
| 1524 | |
| 1525 | return True |
| 1526 | |
| 1527 | @classmethod |
| 1528 | def parse_arg( |
no outgoing calls
no test coverage detected