-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
image/images: Adapt remaining images to system.build.image & normalized filenames, #359345
image/images: Adapt remaining images to system.build.image & normalized filenames, #359345
Conversation
4e802fe
to
4c1cdf8
Compare
You're the lucky first customer of #359704 :D |
4c1cdf8
to
bc627af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, this makes the whole image story much more cleaned up in nixpkgs.
and rename: - sdImage.imageBaseName -> image.BaseName - sdImage.imageName -> image.fileName
and rename: - isoImage.isoBaseName -> image.baseName - isoImage.isoName -> image.fileName
and rename: - amazonImage.name -> image.baseName
New module to support qemu, qemu-efi, raw, raw-efi outputs as known from nixos-generators in system.build.images.
to achieve feature parity with nixos-generators
bc627af
to
e3347c1
Compare
Needed to rebase the changes to sd-image. Now that #347275 has been merged, it would be nice to get this reviewed/merged soon-ish as it would make nixos-rebuild build-image much more useful. |
I believe that the normalization of file names broke the At a quick glance we copy the files while keeping their names. So now they clash in the output and the script detects something is wrong and channel update fails. Here's a previous release directory example: https://releases.nixos.org/nixos/unstable/nixos-25.05beta733374.8f3e1f807051 |
So either we revert this rename or someone needs to rethink the impacts around release workflows and adapt the scripts. (and of course keeping compatibility with 24.11 where this rename doesn't happen) |
@vcunat Ah sorry, I am still not familiar enough the release process to know what to test here. Most filenames should be unique as via the use of tags above. So while there could definitely be collisions they might be relatively easy to fix once found |
The file is called |
You can build the thing e.g. by nix-build nixos/release.nix -A iso_minimal.x86_64-linux |
And of course you can browse what the build farm produces: |
Thank you! I meant to ask for an attribute or command to reproduce the breakage, if possible.
Output of which script? |
This builds on changes in #359339 and adapts remaining images to declare system.build.image and normalize file names.
It also adds a generic disk-image.nix in order to be able to build plain qcow/raw images, similar to how nixos generators does.
It was split off #347275 in order to upstream that one in smaller chunks, easier to review, test and (hopefully not) revert.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.