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
make-disk-image: add hybrid and dynamic sized images #89331
Conversation
This now also incorporates a fix to run |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
I don't really understand stuff in this nix file, so I just pushed an improved version of the easy fix as 8d05772. |
2534c63
to
8a92517
Compare
after some testing I realized, that this fails sometimes when building efi/hybrid images. will have to debug and fix that. |
8a92517
to
78410dc
Compare
78410dc
to
883a607
Compare
tested all partitionTableTypes with my x220 and all of them booted. So this seems good to go. |
I was bitten by the fixed diskSize a couple of times.
Also there was no way to increase the boot partition size, which also made some problems with unfree firmware.
I also added hybrid images, which could be booted via efi or mbr, if used with grub.
Will still have to test around and see if any problems arise. Also I would prefer to use sgdisk over parted since I prefer the script interface. But there are problems with msdos partiton tables, so I implemented it with parted.