summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/proc-fs-nfsd.mount8
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb10
2 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/proc-fs-nfsd.mount b/meta/recipes-connectivity/nfs-utils/nfs-utils/proc-fs-nfsd.mount
new file mode 100644
index 0000000000..630801b375
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/proc-fs-nfsd.mount
@@ -0,0 +1,8 @@
1[Unit]
2Description=NFSD configuration filesystem
3After=systemd-modules-load.service
4
5[Mount]
6What=nfsd
7Where=/proc/fs/nfsd
8Type=nfsd
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
index 6f64e9d001..f7b4551c96 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.1.bb
@@ -28,6 +28,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
28 file://nfs-server.service \ 28 file://nfs-server.service \
29 file://nfs-mountd.service \ 29 file://nfs-mountd.service \
30 file://nfs-statd.service \ 30 file://nfs-statd.service \
31 file://proc-fs-nfsd.mount \
31 file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \ 32 file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
32" 33"
33 34
@@ -86,6 +87,8 @@ FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \
86FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" 87FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat"
87RDEPENDS_${PN}-stats = "python" 88RDEPENDS_${PN}-stats = "python"
88 89
90FILES_${PN} += "${systemd_unitdir}"
91
89# Make clean needed because the package comes with 92# Make clean needed because the package comes with
90# precompiled 64-bit objects that break the build 93# precompiled 64-bit objects that break the build
91do_compile_prepend() { 94do_compile_prepend() {
@@ -107,6 +110,13 @@ do_install_append () {
107 sed -i -e 's,@SBINDIR@,${sbindir},g' \ 110 sed -i -e 's,@SBINDIR@,${sbindir},g' \
108 -e 's,@SYSCONFDIR@,${sysconfdir},g' \ 111 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
109 ${D}${systemd_unitdir}/system/*.service 112 ${D}${systemd_unitdir}/system/*.service
113 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
114 install -d ${D}${sysconfdir}/modules-load.d
115 echo "nfsd" > ${D}${sysconfdir}/modules-load.d/nfsd.conf
116 install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/
117 install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/
118 ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount
119 fi
110 120
111 # kernel code as of 3.8 hard-codes this path as a default 121 # kernel code as of 3.8 hard-codes this path as a default
112 install -d ${D}/var/lib/nfs/v4recovery 122 install -d ${D}/var/lib/nfs/v4recovery