Repository navigation
linux: keep enough to rebuild images from vmlinux - #571170
Conversation
9b1eff4 to
d0b7646
Compare
ea25ed1 to
6ebebc6
Compare
Atemu
left a comment
There was a problem hiding this comment.
Don't currently have the capacity to check this detail for myself but does this increase the outPath size which users substitute? If so, a separate output may make sense.
|
For The tricks we do to strip down the kernel source and build trees predate including the (We shouldn’t have to include the whole |
|
Also, to be clear, only the |
d0b7646 to
c2a8db2
Compare
6ebebc6 to
865e4a7
Compare
c2a8db2 to
8a3d399
Compare
865e4a7 to
cf4da14
Compare
This makes assembling a compressed `vmlinuz.efi` image after the fact on AArch64 cheap, and enables injection of certificates with `scripts/insert-sys-cert`.
8a3d399 to
70b7136
Compare
There was a problem hiding this comment.
The PR's base branch is set to staging-nixos, but this PR causes 1705 rebuilds.
It is therefore considered a mass rebuild.
Please change the base branch to the right base branch for your changes (probably staging).
|
Commit a43236f breaks building the modules on my NixOS config: structuredAttrs is enabled
pkgs.buildEnv error: two given paths contain a conflicting subpath:
`/nix/store/93n5879v79ljfdhaglr8p4kxndrgmq0d-v4l2loopback-0.15.4/lib/modules/7.2.11/modules.dep' and
`/nix/store/36c6ybh6gv1mbnfq5n5sbqy2ghbdcgsa-linux-7.2.11-modules/lib/modules/7.2.11/modules.dep'
hint: this may be caused by two different versions of the same package in buildEnv's `paths` parameter
hint: `pkgs.nix-diff` can be used to compare derivationsConfirmed this by reverting. kernel/boot config: boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "usblp" ];
boot.extraModulePackages = [ ];
hardware.enableRedistributableFirmware = true;
boot.initrd.systemd.enable = true;
boot.supportedFilesystems.ntfs = true;
boot.loader.systemd-boot.enable = true; |
|
Is this all the config you've got? Including nixos-hardware stuff? Asking because just that config builds fine for me and the v4l2loopback thing from the logs doesn't seem to be added anywhere in your config. Tested on nixpkgs rev 191e87d |
this is fixed by #575861 |
Sorry yes! I forgot I also had nixos-hardware in there. |
|
All good. |
|
also related: #576406 |
|
This makes assembling a compressed
vmlinuz.efiimage after the fact on AArch64 cheap, and enables injection of certificates withscripts/insert-sys-cert.Stacked on top of #571141 and #571142.
This is part of the end‐to‐end NixOS boot security project, funded through NGI Fediversity Fund, a fund established by NLnet with financial support from the European Commission’s Next Generation Internet programme.
Things done
linux_5_10,linux,linux_latest)passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.