diff options
author | nikstur <nikstur@outlook.com> | 2023-10-17 17:41:29 +0200 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2023-10-25 00:48:37 +0200 |
commit | a8f50f991948b91d1a191d1348bfff860a39b5a2 (patch) | |
tree | 83c6699208bd64d91c0247ab1b7733da4872f95c | |
parent | 59e37267556eb917146ca3110ab7c96905b9ffbd (diff) |
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.
-rw-r--r-- | nixos/modules/system/activation/activation-script.nix | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/nixos/modules/system/activation/activation-script.nix b/nixos/modules/system/activation/activation-script.nix index c62e3933405d3..424a9d179998a 100644 --- a/nixos/modules/system/activation/activation-script.nix +++ b/nixos/modules/system/activation/activation-script.nix @@ -234,6 +234,7 @@ in system.activationScripts.stdio = ""; # obsolete system.activationScripts.var = ""; # obsolete + system.activationScripts.specialfs = ""; # obsolete systemd.tmpfiles.rules = [ "D /var/empty 0555 root root -" @@ -252,25 +253,6 @@ in 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 = { services.nixos-activation = { description = "Run user-specific NixOS activation"; |