-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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/iso-image: improved grub and media config #279994
base: master
Are you sure you want to change the base?
Conversation
92306d4
to
b622c43
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3764 |
b622c43
to
7974721
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.
Please also rebase your PR to make sure the new CI passes
7974721
to
309663d
Compare
309663d
to
4dd3bc0
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.
I had another look and I don't think I like it. The isoImage.bootContents
seems redundant given there's already isoImage.contents
and this change also doesn't handle the syslinux menu.
I think something like this but which also handles the syslinux part would be a right way and would also allow replacing all entries and not just adding extra stuff. It won't be easy though...
When you say redundant do you mean it's possible to write to the El Torito boot catalog with just Okay, I will look into the bootloader entries, it shouldn't be that difficult to make something like |
It's already handled by https://github.com/NixOS/nixpkgs/blob/3ee96dbd19fe1487a6c987b88963081c699e7309/nixos/lib/make-iso9660-image.sh and it's unrelated to the grub/syslinux menu entries so I'm no sure what you mean.
I think it makes sense to be able to change the names of menu entries and kernel command lines without having to deal with the kernel/initrd details needlessly. |
Description of changes
Added capability to add custom grub options and modify contents of the Boot Catalog of the iso images produced by the iso-image installer module. This, for example, allows users to create custom, pre-installation, pre-boot routines, such as hardware tests, BIOS updates, etc.
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