Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to configure bootSize in specialArgs #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ereslibre
Copy link

@ereslibre ereslibre commented Aug 27, 2024

Thanks for nixos-generators!

Fixes: #369

This PR allows to configure the /boot partition size on those formats that specify one. It also provides the ability to set the flag from the command line with the --boot-size parameter that specifies the size of the partition in MB, similar to the --disk-size parameter.

This PR also updates the qcow-efi.nix format because it was an outlier in the implementation. It defines module options that are not set in any of the machinery closer to the user. All formats are using specialArgs, except for qcow-efi.nix.

I have seen on #204 that this was one of the suggested changes by @Mic92, but I think it's a bit misleading because those options are disconnected from any setting the user can configure.

Having modules in all formats with their options and whatnot would be a cleaner solution than using specialArgs, but I'd tackle that refactor as a specific work on its own. In the meantime, I think it's worth having consistency across different format implementations.

All tests are passing locally. I have tested it building a NixOS environment to qcow-efi and use it as part of my daily driver, I usually run out of space on my /boot partition on the VM I work on and while cleaning up works, having a bigger /boot partition helps.

@ereslibre ereslibre force-pushed the configure-boot-size branch 2 times, most recently from ecbb9a4 to ff874c3 Compare August 28, 2024 07:31
Update `qcow-efi` to not define module options and use `specialArgs`
as the rest of the formats, in order to improve format backend
consistency. Porting all of them to module options would be cleaner
though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qcow-efi backend ignores diskSize
1 participant