-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disk: NewCustomPartitionTable() function
New function that creates a partition table from scratch based on the new disk customization. First, it creates any necessary partitions for the selected boot mode (BIOS boot, ESP, or both). Then it determines if a /boot partition is needed based on the partitions and mountpoints defined in the disk customizations. Then, it iterates through partitions and creates each one in the order its defined. Finally, it creates a root filesystem if one wasn't already defined, resizes any necessary volumes, relayouts the table (setting all partition starts and offsets), and generates UUIDs all entities. Because of the new way the boot partition is handled, the EnsureBootPartition() function was changed to always add a boot partition and was renamed to AddBootPartition() to match the new behaviour. The tests have been updated accordingly.
- Loading branch information
1 parent
a8b05e6
commit b9cc234
Showing
2 changed files
with
289 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.