nixpkgs/nixos/modules/installer
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
..
cd-dvd sd-image-armv7l-multiplatform.nix: Preliminary Raspberry Pi 2/3 support 2016-07-04 02:07:13 +03:00
netboot installer: simple PXE bootable NixOS installer 2016-04-29 10:42:39 +01:00
scan Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
tools Fixes #18124: atomically replace /var/setuid-wrappers/ (#18186) 2016-09-01 20:57:51 +02:00
virtualbox-demo.nix Revert "Revert "Merge pull request #2449 from wkennington/master.grub"" 2014-09-02 09:16:13 -07:00