diff options
Diffstat (limited to 'scripts/postinst-intercepts')
-rw-r--r-- | scripts/postinst-intercepts/update_udev_hwdb | 5 |
1 files changed, 4 insertions, 1 deletions
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 | ;; |
18 | esac | 20 | esac |
19 | 21 | ||
20 | rm -f $D${UDEVLIBDIR}/udev/hwdb.bin | 22 | rm -f $D${UDEVLIBDIR}/udev/hwdb.bin |
21 | PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D ${UDEV_EXTRA_ARGS} | 23 | PSEUDO_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} | ||
22 | chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin | 25 | chown root:root $D${UDEVLIBDIR}/udev/hwdb.bin |