-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
statemachine: Fix createDiskImage to create an image at the right size
If the --image-size flag requested a smaller image it was used but this is a "recommended" size. Take into account the size of the partition table to make try and make sure everything will fit. Signed-off-by: Paul Mars <[email protected]>
- Loading branch information
Showing
3 changed files
with
74 additions
and
37 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
volumes: | ||
pc: | ||
bootloader: grub | ||
structure: | ||
- name: mbr | ||
type: mbr | ||
size: 440 | ||
content: | ||
- image: pc-boot.img | ||
offset: 0 | ||
- name: rootfs | ||
label: writable | ||
type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4 | ||
filesystem: ext4 | ||
role: system-data | ||
size: 10 |