diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/udev/udev-extraconf/systemd-udevd.service | 3 | ||||
| -rw-r--r-- | meta/recipes-core/udev/udev-extraconf_1.1.bb | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/systemd-udevd.service b/meta/recipes-core/udev/udev-extraconf/systemd-udevd.service new file mode 100644 index 0000000000..a9b86eb6e4 --- /dev/null +++ b/meta/recipes-core/udev/udev-extraconf/systemd-udevd.service | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | .include @systemd_unitdir@/system/systemd-udevd.service | ||
| 2 | [Service] | ||
| 3 | MountFlags=shared | ||
diff --git a/meta/recipes-core/udev/udev-extraconf_1.1.bb b/meta/recipes-core/udev/udev-extraconf_1.1.bb index 8213c1a930..ef6019259e 100644 --- a/meta/recipes-core/udev/udev-extraconf_1.1.bb +++ b/meta/recipes-core/udev/udev-extraconf_1.1.bb | |||
| @@ -11,6 +11,7 @@ SRC_URI = " \ | |||
| 11 | file://autonet.rules \ | 11 | file://autonet.rules \ |
| 12 | file://network.sh \ | 12 | file://network.sh \ |
| 13 | file://localextra.rules \ | 13 | file://localextra.rules \ |
| 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://systemd-udevd.service', '', d)} \ | ||
| 14 | " | 15 | " |
| 15 | 16 | ||
| 16 | S = "${WORKDIR}" | 17 | S = "${WORKDIR}" |
| @@ -35,9 +36,15 @@ do_install() { | |||
| 35 | sed -i 's|@MOUNT_BASE@|${MOUNT_BASE}|g' ${D}${sysconfdir}/udev/scripts/mount.sh | 36 | sed -i 's|@MOUNT_BASE@|${MOUNT_BASE}|g' ${D}${sysconfdir}/udev/scripts/mount.sh |
| 36 | 37 | ||
| 37 | install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts | 38 | install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts |
| 39 | |||
| 40 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 41 | install -d ${D}${sysconfdir}/systemd/system | ||
| 42 | install ${WORKDIR}/systemd-udevd.service ${D}${sysconfdir}/systemd/system/systemd-udevd.service | ||
| 43 | sed -i 's|@systemd_unitdir@|${systemd_unitdir}|g' ${D}${sysconfdir}/systemd/system/systemd-udevd.service | ||
| 44 | fi | ||
| 38 | } | 45 | } |
| 39 | 46 | ||
| 40 | FILES:${PN} = "${sysconfdir}/udev" | 47 | FILES:${PN} = "${sysconfdir}/udev ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${sysconfdir}/systemd/system/systemd-udevd.service', '', d)}" |
| 41 | RDEPENDS:${PN} = "udev util-linux-blkid" | 48 | RDEPENDS:${PN} = "udev util-linux-blkid" |
| 42 | CONFFILES:${PN} = "${sysconfdir}/udev/mount.ignorelist" | 49 | CONFFILES:${PN} = "${sysconfdir}/udev/mount.ignorelist" |
| 43 | 50 | ||
