Repository navigation
nixos: Add new_kernel_no_zfs image variants - #207371
Conversation
Support for ZFS, while desirable, is problematic with newer kernel releases. The stable ZFS release seldom supports the current newest kernel version, and this makes the new_kernel iso basically useless as it cannot be published, and is not often built with new kernel releases. This uses a dirty workaround to work around the fact it is impossible to remove a list item from a modules system list type. Since ZFS support is conditional to being supported on the current platform, we can fake ZFS not being supported *for the no-zfs build only*. This overlay is only added when evaluating the iso, nothing else.
Support for ZFS, while desirable, is problematic with newer kernel releases. The stable ZFS release seldom supports the current newest kernel version, and this makes the new_kernel image basically useless as it cannot be published, and is not often built with new kernel releases. This uses a dirty workaround to work around the fact it is impossible to remove a list item from a modules system list type. Since ZFS support is conditional to being supported on the current platform, we can fake ZFS not being supported *for the no-zfs build only*. This overlay is only added when evaluating the image, nothing else.
|
Yes please. Also will need a channel-scripts change so these get copied to the usual spot on the CDN. |
Yes. Just to be clear this is listed under future related work as publishing the images. |
|
For reference, history of the current new-kernel ISO not evaluating for long periods of time: https://hydra.nixos.org/job/nixos/trunk-combined/nixos.iso_minimal_new_kernel.x86_64-linux/all I like this. I just wonder... in periods when ZFS does evaluate (and those seem not rare above), it would seem more "economical" to only alias to But I certainly don't want such a nit to block this. |
For posterity, that option was discussed in a NixOS dev chatroom at some point in the past, and was deemed undesirable. The problem is having the feature set of the iso flip and flop (ir)regularly. The published isos should be predictable in their feature set. Here I decided to do the least objectionable change and only add new builds, but we could also remove the |
|
No arguments against, merging... If there's anything let's discuss in a revert/change PR then I guess. |
Description of changes
With these changes, we should have
theanew_kerneliso and SD image pair building on the dot at each kernel upgrade. In turn, this will allow us to publish and publicize the images. This would help with new hardware, be it x86_64 or aarch64.The implementation I think is not that objectionable. The only way to properly fix this would be to rewrite how
supportedFilesystemsworks, and use an attrset withtrue/falsevalues to allow overriding values. Once we pour values in a list, in the NixOS modules system, it is impossible to take them back out. If you have an alternative workable solution, feel free to submit it.The overlay here shouldn't cause any issues for evaluation time, as this is an extremely leafy eval; it affects strictly only the two newly added outputs.
Workaround for:
Obsoletes:
I'm probably missing some.
Alternative approach
I still believe the approach in this comment is the best for the future:
We're gaining too many discrete disk images. It would be best if we could describe features for the disk image and join by the logical feature names, rather than making a new file to eval.
Future related work
testedThings done
I only instantiated the
aarch64-linuximage. Instantiation here is sufficient since the problem is we can't even attempt to build images with the newer kernels. Compare the following:I did build the x86_64 iso image, but it's not really needed to build it. What was needed was to verify zfs support is not present.
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes