-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
NixOS channels: copy also PXE boot files #6
Comments
cc @edolstra |
Just for some arguments why to merge something like this:
|
I think this can be added using nixos-channel-scripts/mirror-nixos-branch.pl Line 118 in 852e1b6
However, hydra doesn't output any files, as can be seen here: https://hydra.nixos.org/build/35046788 I'm not up to snuff with Hydra, so what should be done to get netboot on http://nixos.org/releases/? |
Part of the problem may be that unlike building an ISO which is a single file, the netboot build using |
If it is impossible to download the individual files from the symlinkJoin, then we could indeed add individual attributes for the individual files. Maybe like this? https://github.com/bobvanderlinden/nixpkgs/blob/patch-1/nixos/release.nix Let me know if it is worthy of a PR. It'll expose the files as |
I've just pushed NixOS/nixpkgs@bab8a2e which should expose build products for Now we just need to write a perl function As seen in |
We get all the build products now:
|
Note that this means additional 380MB (in initrd) per channel update. |
@nshalman @bobvanderlinden Any ideas about netbootxyz/netboot.xyz#37 (comment) |
When doing some testing for Cerana, I ran into that issue and figured out a hack that gets around needing to pass in the path to the stage2 init, namely, in
Given that there should only be a single stage2 init in live media, this might be an acceptable solution. |
@nshalman That seems like a hack to me. It searches though all /nix/store paths that way, non-recursively but still searching. @domenkozar Would there be some way to get |
@bobvanderlinden agreed. I called it a "hack", but "gross hack" may have been more appropriate. All my attempts to extract the path to it within the Nix expressions failed, unfortunately. Hopefully @domenkozar has an idea or two that I didn't think to try. |
another option is to use builtins.unsafeDiscardStringContext when you generate stage1, that lets you not depend on the entire system oh i think i see the problem, the top-level depends on the initrd, and the initrd build depends on the path to top-level not sure what the above built-in will do to the build-time dep-graph, time to experiment! doesnt solve the eval-time deps, the hash of one derivation depends on the hash of the other, and creates a cycle |
Any progress on this? What remains to be done? |
#21 has been closed. Does it mean that this has been fixed? |
Once NixOS/nixpkgs#14740 is merged, it would be nice to also copy
nix-build -A netboot nixos/release.nix
result to the channel so NixOS can be booted using (i)PXE.Note that once this is implemented,
netboot
should be part of thetested
job.The text was updated successfully, but these errors were encountered: