make-disk-image: documentation, UEFI variables recording, improved determinism#207038
make-disk-image: documentation, UEFI variables recording, improved determinism#207038
Conversation
b07ba3c to
28c1494
Compare
Mic92
left a comment
There was a problem hiding this comment.
Overall nice change. Documentation is well written. I have not tested the code yet but from eye balling it looks good to me.
28c1494 to
16b60be
Compare
blitz
left a comment
There was a problem hiding this comment.
The added documentation is really nice! I left some language nits. Maybe you can find a native speaker to make a pass over it. I would also propose to move the description of the implementation to the .nix file, because it is not immediately helpful for people that just want to use this function.
I can help with the documentation part but I'm only back at the keyboard at 28th or so.
nikstur
left a comment
There was a problem hiding this comment.
Here are my invited docs nitpicks. Feel free to ignore them. We can always easily fix such things later.
277e38f to
b497110
Compare
b497110 to
cc87bbd
Compare
- Extensive documentation in NixOS manual - Deterministic mode that fixes various identifiers relative to disk partitions and filesystems in ext4 case - UEFI variable recording
cc87bbd to
22adcaa
Compare
| - creates an FAT32 ESP partition from 8MiB to specified `bootSize` parameter (256MiB by default), set it bootable ; | ||
| - creates a primary ext4 partition starting after the boot one and extending to the full disk image | ||
|
|
||
| This partition could be booted by a BIOS able to understand GPT layouts and recognizing the MBR at the start. |
There was a problem hiding this comment.
hybrid should also be bootable via efi. it basically supports bios and efi (thats why it's hybrid) if your bootloader supports both (I guess only grub does both)
There was a problem hiding this comment.
I don't think I wrote something contrary to this, but good to write explicitly!
nikstur
left a comment
There was a problem hiding this comment.
This is in very good shape now.
|
Installer tests before: ⚠︎ vm-test-run-installer-bcache failed with exit code 1 after ⏱︎ 3m7s Installer tests after: ┃ ✔︎ vm-test-run-installer-simpleUefiSystemdBoot ⏱︎ 6m5s No regressions. |
|
I also built a bunch of nixos-generator targets without issues. This is good to go. |
Description of changes
This is a split of #203641 to isolate
make-disk-imagechanges.Things done
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