nixpkgs/nixos/modules
rnhmjoj 9fc47e6db3
nixos-install: fix missing initrd.secrets paths
When installing NixOS in the target filesystem /mnt, paths relative to
configuration.nix in `initrd.secrets` are turned by Nix into absolute
paths that reference /mnt. While building the system derivation works,
installing the bootloader fails because the latter process takes place
inside the chroot environment where /mnt does not exist.

Ideally, we would also build the system within chroot, but this greatly
complicates the matter as it requires  manually copying over Nix, its
runtime dependencies and all channels. Possibly, this would also break
several assumptions users have about how nixos-install works.

A simpler and safer (but less neat) solution is to temporarily bind
mount all mount points in /mnt under /mnt/mnt to keep the paths
functional while the bootloader is being installed.
This is essentially the workaround described in issue #73404.
2023-01-16 02:31:01 +01:00
..
config Merge remote-tracking branch 'origin/master' into staging-next 2023-01-11 03:51:33 +01:00
hardware Merge master into staging-next 2023-01-06 00:02:28 +00:00
i18n/input-method nixos/manual: move "edit the MD file" comments to generated XML 2023-01-10 12:34:37 +01:00
installer nixos-install: fix missing initrd.secrets paths 2023-01-16 02:31:01 +01:00
misc nixos/version: add config.system.nixos.distroName and config.system.nixos.distroId 2023-01-14 16:19:06 -05:00
profiles services.openssh: support freeform settings (#193757) 2023-01-15 16:32:46 +01:00
programs Merge pull request #209538 from voidzero/zsh-syntax-hl.regexp 2023-01-15 00:26:10 +01:00
security Merge master into staging-next 2023-01-13 18:01:34 +00:00
services Merge pull request #204342 from anpandey/znc 2023-01-16 02:07:30 +01:00
system install-grub.pl: improve initrd-secrets error messages 2023-01-16 02:30:39 +01:00
tasks nixos/version: add config.system.nixos.distroName and config.system.nixos.distroId 2023-01-14 16:19:06 -05:00
testing Merge pull request #207801 from ElvishJerricco/systemd-stage-1-test-instrumentation 2022-12-28 01:43:03 +01:00
virtualisation Merge pull request #206655 from vlinkz/distroname 2023-01-15 17:39:55 +01:00
module-list.nix nixos/photoprism: init module 2023-01-15 18:02:43 +01:00
rename.nix modules: add mkAliasOptionModuleMD 2023-01-05 02:33:13 +01:00