summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/postinst-intercepts')
-rw-r--r--scripts/postinst-intercepts/update_udev_hwdb16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb
index c4fb2bffcb..102e99b947 100644
--- a/scripts/postinst-intercepts/update_udev_hwdb
+++ b/scripts/postinst-intercepts/update_udev_hwdb
@@ -5,5 +5,17 @@
5 5
6set -e 6set -e
7 7
8PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D 8case "${PREFERRED_PROVIDER_udev}" in
9chown root:root $D${sysconfdir}/udev/hwdb.bin 9 systemd)
10 UDEV_EXTRA_ARGS="--usr"
11 UDEVLIBDIR="${rootlibexecdir}"
12 ;;
13
14 *)
15 UDEV_EXTRA_ARGS=""
16 UDEVLIBDIR="${sysconfdir}"
17 ;;
18esac
19
20PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D ${UDEV_EXTRA_ARGS}
21chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin