blob: 844a9e4a6da033235c875f9093de875840d6a763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------
FILESEXTRAPATHS:prepend:feature-mentor-staging := "${THISDIR}/${PN}:"
SRC_URI:append:feature-mentor-staging = " file://0001-udev-extraconf-mount.sh-add-LABELs-to-mountpoints.patch \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://systemd-udevd.service', '', d)} \
file://0002-udev-extraconf-mount.sh-save-mount-name-in-our-tmp-f.patch \
file://0003-udev-extraconf-mount.sh-only-mount-devices-on-hotplu.patch \
file://0001-udev-extraconf-mount.sh-ignore-lvm-in-automount.patch"
RDEPENDS:${PN}:append:feature-mentor-staging = " util-linux-blkid"
FILES:${PN}:append:feature-mentor-staging = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${sysconfdir}/systemd/system/systemd-udevd.service', '', d)}"
do_install:append:feature-mentor-staging () {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/systemd/system
install ${WORKDIR}/systemd-udevd.service ${D}${sysconfdir}/systemd/system/systemd-udevd.service
sed -i 's|@systemd_unitdir@|${systemd_unitdir}|g' ${D}${sysconfdir}/systemd/system/systemd-udevd.service
fi
}
|