From 09e90ceb4780fff2666bd62e5d6a9fce2660940f Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 12 Feb 2025 23:07:22 -0800 Subject: Fix infinitely mounted nfs bind mounts on nixos-rebuild --- hosts/arrakis/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hosts/arrakis') diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index 6a5324e..6bd802b 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -280,9 +280,10 @@ after = [ "zfs-import-data.service" ]; description = "Bind NFS exports to ZFS paths"; script = '' - ${pkgs.util-linux}/bin/mount /srv/nfs/keepers - ${pkgs.util-linux}/bin/mount /srv/nfs/movies - ${pkgs.util-linux}/bin/mount /srv/nfs/tv + ${pkgs.util-linux}/bin/mount --onlyonce /srv/nfs/keepers + ${pkgs.util-linux}/bin/mount --onlyonce /srv/nfs/movies + ${pkgs.util-linux}/bin/mount --onlyonce /srv/nfs/tv + exit 0 ''; wantedBy = [ "local-fs.target" ]; }; -- cgit v1.2.3