config-files: remvoe the -f option for rpc.mountd 02/4602/1
authorJackie Huang <jackie.huang@windriver.com>
Thu, 18 Jun 2020 15:06:23 +0000 (23:06 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Tue, 25 Aug 2020 13:23:15 +0000 (21:23 +0800)
The -f option is not supported any more on newer version of nfs-utils.

Issue-ID: INF-167
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Id7a7ad795b50467147556827ed051e9394436e2d

meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb
meta-stx/recipes-core/stx-config-files/files/nfsserver-remvoe-the-f-option-for-rpc.mountd.patch [new file with mode: 0644]

index 875649d..626e932 100644 (file)
@@ -51,6 +51,7 @@ SRC_URI = " \
        file://syslog-ng-config-systemd-service.patch \
        file://syslog-ng-conf-replace-match-with-message.patch \
        file://lighttpd-init-script-chroot.patch \
+       file://nfsserver-remvoe-the-f-option-for-rpc.mountd.patch \
        "
 
 do_configure () {
diff --git a/meta-stx/recipes-core/stx-config-files/files/nfsserver-remvoe-the-f-option-for-rpc.mountd.patch b/meta-stx/recipes-core/stx-config-files/files/nfsserver-remvoe-the-f-option-for-rpc.mountd.patch
new file mode 100644 (file)
index 0000000..9a581e6
--- /dev/null
@@ -0,0 +1,28 @@
+From 20359d646c6003b6056aea6cbe81d8b393084de1 Mon Sep 17 00:00:00 2001
+From: Jackie Huang <jackie.huang@windriver.com>
+Date: Thu, 18 Jun 2020 21:42:03 +0800
+Subject: [PATCH] nfsserver: remvoe the -f option for rpc.mountd
+
+The -f option is not supported any more on newer version of nfs-utils.
+
+Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
+---
+ nfs-utils-config/files/nfsserver | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/nfs-utils-config/files/nfsserver b/nfs-utils-config/files/nfsserver
+index 6449537..58642f1 100644
+--- a/nfs-utils-config/files/nfsserver
++++ b/nfs-utils-config/files/nfsserver
+@@ -46,7 +46,7 @@ test "$NFS_SERVERS" != "" && test "$NFS_SERVERS" -gt 0 && test "$NFS_SERVERS" -l
+ #mountd
+ start_mountd(){
+       echo -n 'starting mountd: '
+-      start-stop-daemon --start --exec "$NFS_MOUNTD" -- "-f /etc/exports $@"
++      start-stop-daemon --start --exec "$NFS_MOUNTD"
+       echo done
+ }
+ stop_mountd(){
+-- 
+2.7.4
+