summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd_250.4.bb5
-rw-r--r--meta/recipes-core/udev/eudev_3.2.10.bb4
-rw-r--r--scripts/postinst-intercepts/update_udev_hwdb5
3 files changed, 4 insertions, 10 deletions
diff --git a/meta/recipes-core/systemd/systemd_250.4.bb b/meta/recipes-core/systemd/systemd_250.4.bb
index 2b346113b5..15e2185dff 100644
--- a/meta/recipes-core/systemd/systemd_250.4.bb
+++ b/meta/recipes-core/systemd/systemd_250.4.bb
@@ -337,10 +337,6 @@ do_install() {
337 # create link for existing udev rules 337 # create link for existing udev rules
338 ln -s ${base_bindir}/udevadm ${D}${base_sbindir}/udevadm 338 ln -s ${base_bindir}/udevadm ${D}${base_sbindir}/udevadm
339 339
340 # duplicate udevadm for postinst script
341 install -d ${D}${libexecdir}
342 ln ${D}${base_bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm
343
344 # install default policy for presets 340 # install default policy for presets
345 # https://www.freedesktop.org/wiki/Software/systemd/Preset/#howto 341 # https://www.freedesktop.org/wiki/Software/systemd/Preset/#howto
346 install -Dm 0644 ${WORKDIR}/99-default.preset ${D}${systemd_unitdir}/system-preset/99-default.preset 342 install -Dm 0644 ${WORKDIR}/99-default.preset ${D}${systemd_unitdir}/system-preset/99-default.preset
@@ -718,7 +714,6 @@ FILES:udev += "${base_sbindir}/udevd \
718 ${base_bindir}/systemd-hwdb \ 714 ${base_bindir}/systemd-hwdb \
719 ${base_bindir}/udevadm \ 715 ${base_bindir}/udevadm \
720 ${base_sbindir}/udevadm \ 716 ${base_sbindir}/udevadm \
721 ${libexecdir}/${MLPREFIX}udevadm \
722 ${datadir}/bash-completion/completions/udevadm \ 717 ${datadir}/bash-completion/completions/udevadm \
723 ${systemd_system_unitdir}/systemd-hwdb-update.service \ 718 ${systemd_system_unitdir}/systemd-hwdb-update.service \
724 " 719 "
diff --git a/meta/recipes-core/udev/eudev_3.2.10.bb b/meta/recipes-core/udev/eudev_3.2.10.bb
index dec16be046..ccc66ae131 100644
--- a/meta/recipes-core/udev/eudev_3.2.10.bb
+++ b/meta/recipes-core/udev/eudev_3.2.10.bb
@@ -51,10 +51,6 @@ do_install:append() {
51 51
52 # hid2hci has moved to bluez4. removed in udev as of version 169 52 # hid2hci has moved to bluez4. removed in udev as of version 169
53 rm -f ${D}${base_libdir}/udev/hid2hci 53 rm -f ${D}${base_libdir}/udev/hid2hci
54
55 # duplicate udevadm for postinst script
56 install -d ${D}${libexecdir}
57 ln ${D}${bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm
58} 54}
59 55
60do_install:prepend:class-target () { 56do_install:prepend:class-target () {
diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb
index 8076b8ae6f..8b3f5de791 100644
--- a/scripts/postinst-intercepts/update_udev_hwdb
+++ b/scripts/postinst-intercepts/update_udev_hwdb
@@ -9,14 +9,17 @@ case "${PREFERRED_PROVIDER_udev}" in
9 systemd) 9 systemd)
10 UDEV_EXTRA_ARGS="--usr" 10 UDEV_EXTRA_ARGS="--usr"
11 UDEVLIBDIR="${rootlibexecdir}" 11 UDEVLIBDIR="${rootlibexecdir}"
12 UDEVADM="${base_bindir}/udevadm"
12 ;; 13 ;;
13 14
14 *) 15 *)
15 UDEV_EXTRA_ARGS="" 16 UDEV_EXTRA_ARGS=""
16 UDEVLIBDIR="${sysconfdir}" 17 UDEVLIBDIR="${sysconfdir}"
18 UDEVADM="${bindir}/udevadm"
17 ;; 19 ;;
18esac 20esac
19 21
20rm -f $D${UDEVLIBDIR}/udev/hwdb.bin 22rm -f $D${UDEVLIBDIR}/udev/hwdb.bin
21PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D ${UDEV_EXTRA_ARGS} 23PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${UDEVADM} hwdb --update --root $D ${UDEV_EXTRA_ARGS} ||
24 PSEUDO_UNLOAD=1 qemuwrapper -L $D $D${UDEVADM} hwdb --update --root $D ${UDEV_EXTRA_ARGS}
22chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin 25chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin