nixpkgs-suyu/nixos/modules/system/boot
Domen Kožar a6670c1a0b Fixes #18124: atomically replace /var/setuid-wrappers/ (#18186)
Before this commit updating /var/setuid-wrappers/ folder introduced
a small window where NixOS activation scripts could be terminated
and resulted into empty /var/setuid-wrappers/ folder.

That's very unfortunate because one might lose sudo binary.

Instead we use two atomic operations mv and ln (as described in
https://axialcorps.com/2013/07/03/atomically-replacing-files-and-directories/)
to achieve atomicity.

Since /var/setuid-wrappers is not a directory anymore, tmpfs mountpoints
were removed in installation scripts and in boot process.

Tested:

- upgrade /var/setuid-wrappers/ from folder to a symlink
- make sure /run/setuid-wrappers-dirs/ legacy symlink is really deleted
2016-09-01 20:57:51 +02:00
..
loader Fixes #14831 by using full path for binaries used in install-grub.pl 2016-09-01 10:36:38 +02:00
coredump.nix systemd-coredump: Add systemd service and fix sysctl pattern. 2016-07-10 18:07:37 +10:00
emergency-mode.nix
initrd-network.nix initrd-network: call postCommands only if network is up 2016-02-03 16:35:21 +03:00
initrd-ssh.nix initrd-ssh service: ensure that keys got copied into initrd 2016-08-23 16:20:26 +03:00
kernel.nix nixos treewide: don't set MODULE_DIR 2016-08-19 17:56:54 +03:00
kexec.nix
luksroot.nix nixos/luksroot: Reference correct output of openssl 2016-08-04 23:12:39 +03:00
modprobe.nix nixos treewide: don't set MODULE_DIR 2016-08-19 17:56:54 +03:00
networkd.nix networkd: add DHCPServer config section 2015-12-23 06:04:39 +01:00
pbkdf2-sha512.c
plymouth.nix plymouth service: stop splash screen before a failure prompt 2016-07-18 13:45:37 +03:00
readonly-mountpoint.c
resolved.nix modules.resolved: Enhance by upstream options (#15897) 2016-06-26 22:58:04 +02:00
shutdown.nix
stage-1-init.sh nixos filesystems: unify early filesystems handling 2016-08-27 13:38:20 +03:00
stage-1.nix nixos filesystems: unify early filesystems handling 2016-08-27 13:38:20 +03:00
stage-2-init.sh Fixes #18124: atomically replace /var/setuid-wrappers/ (#18186) 2016-09-01 20:57:51 +02:00
stage-2.nix nixos filesystems: unify early filesystems handling 2016-08-27 13:38:20 +03:00
systemd-lib.nix systemd: make ctrl-alt-del target configurable. (#16911) 2016-07-19 09:42:53 +02:00
systemd-unit-options.nix systemd-unit-options: startAt can be a list 2016-09-01 00:39:36 +02:00
systemd.nix systemd: make ctrl-alt-del target configurable. (#16911) 2016-07-19 09:42:53 +02:00
timesyncd.nix
tmp.nix