-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
make-disk-image: documentation, UEFI variables recording, improved determinism #207038
Conversation
b07ba3c
to
28c1494
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.
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
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.
LGTM
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.
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.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I wrote something contrary to this, but good to write explicitly!
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.
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-image
changes.Things done
sandbox = true
set 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.sh
to update generated release notes