-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
boot.initrd.secrets omits key file and fails during initial installation #157989
Comments
I specifically installed an encrypted root on zfs system with this article. GRUB will decrypt disk on boot and initrd will re-decrypt disk partitions and swap with the keys embedded here. |
See NixOS/nixpkgs#157989 Signed-off-by: Maurice Zhou <[email protected]>
I have faced that too, there seem to be a problem with nixpkgs/nixos/modules/system/boot/stage-1.nix Line 432 in ac8ded5
Not sure where it is set from, but its value should be relative to the chroot, e.g. It can be worked around by setting export TMPDIR=/tmp Or by preparing a directory with tmp="$(mktemp -d /mnt/tmp.XXXXXXXXXX)"
export TMPDIR="${tmp#/mnt}"
echo "${TMPDIR}" # /tmp.torvrvFbQ5 |
May be a duplicate of #73404 |
Duplicate of #73404 (comment) indeed. |
Describe the bug
Unfortunately I can not pinpoint the issue, but it seems that after a
nixos-rebuild switch --upgrade
on Feb 1st, boot.initrd.secrets starts to omit a key file out of 3 key files and completely fails with a fresh system installation.Steps To Reproduce
Steps to reproduce the behavior:
All three files exist on disk.
Expected behavior
All key files are included in generated initrd-secrets and
nixos-install --root=/mnt
does not fail.Additional context
This issue does not exist before system update.
Notify maintainers
This option is declared in <nixpkgs/nixos/modules/system/boot/stage-1.nix>.
@dasJ @grahamc
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: