rust-osdev / bootimage

Tool to create bootable disk images from a Rust OS kernel.
Apache License 2.0
767 stars 67 forks source link

Add minimum-image-size option #7

Closed mattNeumayer closed 6 years ago

mattNeumayer commented 6 years ago

This change adds an optional "minimum-image-size" field to be read from the Cargo.toml. The size of the output file is padded to minimum-image-size (in MiB).

This option is helpful because VirtualBox can only create .vdi images with a minimum size of 4 MiB. Use following command to convert the bin file to a vdi file: VBoxManage convertfromraw bootimage.bin bootimage.vdi --format vdi --variant Standard --uuid=<some-uuid-you-generated>

phil-opp commented 6 years ago

Thanks a lot! Could you also adjust the src/help.txt?