nixpkgs/nixos/modules/system/activation
aszlig f94ea04805
nixos/activation: Avoid remounting non-existing FS
Regression introduced by 79d4636d50.

The mentioned commit moves /run/keys from stage 2 to
boot.specialFileSystems, the latter being remounted during system
activation.

Unfortunately, the specialMount function in the activation script does
this unconditionally and thus will fail if it can't be remounted because
the mount point simply doesn't exist.

We now check the mount point for existance and only remount if it exists
but mkdir + mount it if it doesn't.

Tested against the "simple" NixOS installer test.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-09-26 02:04:54 +02:00
..
activation-script.nix nixos/activation: Avoid remounting non-existing FS 2016-09-26 02:04:54 +02:00
no-clone.nix Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
switch-to-configuration.pl switch-to-configuration: use absolute path to systemd-escape 2016-07-01 08:35:38 +02:00
top-level.nix nixos copySystemConfiguration: fix when chrooted 2016-02-28 10:08:42 +01:00