nixos/activation: remove specialfs activationScript

The stage-2-init.sh script has the same functionality hardcoded so we do
not need it in the activationScript again.

nikstur a8f50f99 59e37267

Changed files
+1 -19
nixos
modules
system
+1 -19
nixos/modules/system/activation/activation-script.nix
···
system.activationScripts.stdio = ""; # obsolete
system.activationScripts.var = ""; # obsolete
+
system.activationScripts.specialfs = ""; # obsolete
systemd.tmpfiles.rules = [
"D /var/empty 0555 root root -"
···
else ''
rm -f /usr/bin/env
rmdir --ignore-fail-on-non-empty /usr/bin /usr
-
'';
-
-
system.activationScripts.specialfs =
-
''
-
specialMount() {
-
local device="$1"
-
local mountPoint="$2"
-
local options="$3"
-
local fsType="$4"
-
-
if mountpoint -q "$mountPoint"; then
-
local options="remount,$options"
-
else
-
mkdir -p "$mountPoint"
-
chmod 0755 "$mountPoint"
-
fi
-
mount -t "$fsType" -o "$options" "$device" "$mountPoint"
-
}
-
source ${config.system.build.earlyMountScript}
'';
systemd.user = {