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
+15 -11
View File
@@ -31,16 +31,20 @@ 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"; options = [
options = [ "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"
];
}; };
};
} }