nixos/stage-2-init: Re-add creation of /etc

main
Janne Heß 2 years ago
parent 4e9f1e537e
commit 56b4653904
No known key found for this signature in database
GPG Key ID: 69165158F05265DF
  1. 5
      nixos/modules/system/boot/stage-2-init.sh
  2. 1
      nixos/modules/system/boot/systemd/tmpfiles.nix

@ -89,6 +89,11 @@ else
fi
# Required by the activation script
install -m 0755 -d /etc /etc/nixos
install -m 01777 -d /tmp
# Run the script that performs all configuration activation that does
# not have to be done at boot time.
echo "running activation script..."

@ -102,7 +102,6 @@ in
];
systemd.tmpfiles.rules = [
"d /etc/nixos 0755 root root - -"
"d /nix/var 0755 root root - -"
"L+ /nix/var/nix/gcroots/booted-system 0755 root root - /run/booted-system"
"d /run/lock 0755 root root - -"

Loading…
Cancel
Save