fix(nfs-mounts): add network and systemd mount options
CI / check (push) Successful in 8m3s
CI / Build & Push OpenClaw Image (push) Successful in 36m2s
CI / build-and-cache (push) Failing after 1h4m39s

Add _netdev, x-systemd.requires/after network-online.target,
x-systemd.automatic-mount=force, and x-systemd.mount-timeout=90
to improve NFS mount reliability on boot and network changes.
This commit is contained in:
2026-05-11 18:10:11 -07:00
parent f5e78b4d1a
commit 1ecc3302b1
+6 -2
View File
@@ -31,8 +31,7 @@ in
}; };
}; };
config = mkIf cfg.enable config = mkIf cfg.enable {
{
fileSystems.${cfg.mountPoint} = { fileSystems.${cfg.mountPoint} = {
device = "${cfg.server}:${cfg.remotePath}"; device = "${cfg.server}:${cfg.remotePath}";
fsType = "nfs"; fsType = "nfs";
@@ -40,6 +39,11 @@ in
"defaults" "defaults"
"nofail" "nofail"
"softreval" "softreval"
"_netdev"
"x-systemd.requires=network-online.target"
"x-systemd.after=network-online.target"
"x-systemd.automatic-mount=force"
"x-systemd.mount-timeout=90"
]; ];
}; };
}; };