From e5fe68dd34dce0b0aa44bb060fb7a2b6785fcfd1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Jul 2014 23:33:40 +0200 Subject: [PATCH] Don't restart systemd-remount-fs It's only needed during early boot (in fact, it's probably not needed at all on NixOS). Restarting it is expensive because it does a sync() of the root file system. (cherry picked from commit 3b2609deec84ec71ced729f128aa9d549dcfa4f6) --- nixos/modules/system/boot/systemd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 761600f9e551..1622e95722bd 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -814,5 +814,7 @@ in systemd.services."user@".restartIfChanged = false; + systemd.services.systemd-remount-fs.restartIfChanged = false; + }; }