Skip to content
Unverified Commit f94ea048 authored by aszlig's avatar aszlig
Browse files

nixos/activation: Avoid remounting non-existing FS

Regression introduced by 79d4636d

.

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: default avataraszlig <aszlig@redmoonstudios.org>
parent 8967a3f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment