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