Add enhanced partitioning system with multiple tool support

- Add --partitioner option supporting parted, sgdisk, sfdisk, auto
- Implement fallback mechanism when tools fail
- Add robust partition verification and validation
- Improve error handling and logging
- Add loop device management with retry logic
- Support different partition size units (kB, MB, MiB)
- Integrate partitioning approaches from partition_creator.rs

Features:
- Auto-selection tries parted -> sgdisk -> sfdisk
- User can force specific tool with --partitioner
- Graceful fallback for unknown tools
- Detailed logging of which tool is used
- Proper resource cleanup and error recovery
This commit is contained in:
robojerk 2025-09-10 11:35:49 -07:00
parent 47c2e596ff
commit fa22f3f903
2 changed files with 1028 additions and 106 deletions

File diff suppressed because it is too large Load diff