diff options
Diffstat (limited to 'scripts/postinst-intercepts')
-rw-r--r-- | scripts/postinst-intercepts/update_udev_hwdb | 16 |
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 | ||
6 | set -e | 6 | set -e |
7 | 7 | ||
8 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D | 8 | case "${PREFERRED_PROVIDER_udev}" in |
9 | chown 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 | ;; | ||
18 | esac | ||
19 | |||
20 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D ${UDEV_EXTRA_ARGS} | ||
21 | chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin | ||