diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-01-14 22:43:40 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-01-15 09:00:26 +0100 |
commit | 2a5a1fda5cf2c3bdfd4baf67c4de6344a7febdc0 (patch) | |
tree | a83db76f01ae769a34c42bdf957e75e81b64de86 /mdk-stage1 | |
parent | c7e8d56c7b89abc99a93a8ac8115d530974fa040 (diff) | |
download | drakx-2a5a1fda5cf2c3bdfd4baf67c4de6344a7febdc0.tar drakx-2a5a1fda5cf2c3bdfd4baf67c4de6344a7febdc0.tar.gz drakx-2a5a1fda5cf2c3bdfd4baf67c4de6344a7febdc0.tar.bz2 drakx-2a5a1fda5cf2c3bdfd4baf67c4de6344a7febdc0.tar.xz drakx-2a5a1fda5cf2c3bdfd4baf67c4de6344a7febdc0.zip |
Use 'nolock' option for NFS
Rationale:
when building in iurt, it looks like we are missing some bits (due to
missing deps?) and thus mounting fails because with:
mount.nfs: rpc.statd is not running but is required for remote locking
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: mounting 192.168.1.10:/mageia/unstable failed, reason given by server: No such file or directory
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/NEWS | 2 | ||||
-rw-r--r-- | mdk-stage1/mount.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS index e8fae6eaf..d14c23cbd 100644 --- a/mdk-stage1/NEWS +++ b/mdk-stage1/NEWS @@ -1,3 +1,5 @@ +- use 'nolock' option for NFS + 2.58 - fix 'disk' method after kernel-5.15 breakage diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index eb52780fa..14b2b2fc2 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -91,6 +91,8 @@ int my_mount(char *dev, char *location, char *fs, int force_rw) } #ifndef DISABLE_MEDIAS + if (!strcmp(fs, "nfs")) + opts = "nolock"; if (!strcmp(fs, "vfat")) opts = "check=relaxed"; #endif |