diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2016-11-30 23:43:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-08 10:31:30 +0000 |
commit | 44ed428c10cc4591868c198fac55c04e3c2e0758 (patch) | |
tree | 9e44ec8113683175a2554ec16f5d822026378196 | |
parent | b4da2b0040543f55cd9a2908d77d9d79a387a539 (diff) | |
download | poky-44ed428c10cc4591868c198fac55c04e3c2e0758.tar.gz |
nfs-utils: systemd fixes
- Start daemons by default like the initscripts do, but only if
/etc/exports exists.
- Inform systemd.bbclass about nfs-utils-client package.
(From OE-Core rev: 94602d8ced3a8fd033de93b47320c94db6de8755)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service index 613ddc003a..28b7388f67 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service | |||
@@ -2,6 +2,7 @@ | |||
2 | Description=NFS Mount Daemon | 2 | Description=NFS Mount Daemon |
3 | After=rpcbind.service nfs-server.service | 3 | After=rpcbind.service nfs-server.service |
4 | Requires=rpcbind.service nfs-server.service | 4 | Requires=rpcbind.service nfs-server.service |
5 | ConditionPathExists=@SYSCONFDIR@/exports | ||
5 | 6 | ||
6 | [Service] | 7 | [Service] |
7 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | 8 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf |
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service index 147d7a7b5f..b9dfe74273 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service | |||
@@ -2,6 +2,7 @@ | |||
2 | Description=NFS Server | 2 | Description=NFS Server |
3 | Requires=rpcbind.service nfs-mountd.service | 3 | Requires=rpcbind.service nfs-mountd.service |
4 | After=rpcbind.service | 4 | After=rpcbind.service |
5 | ConditionPathExists=@SYSCONFDIR@/exports | ||
5 | 6 | ||
6 | [Service] | 7 | [Service] |
7 | Type=oneshot | 8 | Type=oneshot |
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb index 4d6d8080f4..d4b401efa0 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb | |||
@@ -48,9 +48,9 @@ INITSCRIPT_PARAMS_${PN}-client = "defaults 19 21" | |||
48 | 48 | ||
49 | inherit autotools-brokensep update-rc.d systemd pkgconfig | 49 | inherit autotools-brokensep update-rc.d systemd pkgconfig |
50 | 50 | ||
51 | SYSTEMD_PACKAGES = "${PN} ${PN}-client" | ||
51 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" | 52 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" |
52 | SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" | 53 | SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" |
53 | SYSTEMD_AUTO_ENABLE = "disable" | ||
54 | 54 | ||
55 | # --enable-uuid is need for cross-compiling | 55 | # --enable-uuid is need for cross-compiling |
56 | EXTRA_OECONF = "--with-statduser=rpcuser \ | 56 | EXTRA_OECONF = "--with-statduser=rpcuser \ |