From 3c7b763f60a520b31f2d086eab642f016992e4b7 Mon Sep 17 00:00:00 2001 From: illiliti Date: Fri, 13 Aug 2021 13:38:59 +0300 Subject: [PATCH] hook/systemd-udev: unbreak tested on arch linux and ubuntu --- hook/systemd-udev/systemd-udev | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/hook/systemd-udev/systemd-udev b/hook/systemd-udev/systemd-udev index 3ce38ae..7c15d6d 100644 --- a/hook/systemd-udev/systemd-udev +++ b/hook/systemd-udev/systemd-udev @@ -4,9 +4,14 @@ # https://shellcheck.net/wiki/SC2154 # shellcheck disable=2154 -for _bin in /lib/systemd/systemd-udevd udevadm; do - copy_exec "$_bin" -done +copy_exec udevadm + +# FIXME +if [ -h /lib/systemd/systemd-udevd ]; then + ln -s udevadm "${tmpdir}/bin/systemd-udevd" +else + copy_exec /lib/systemd/systemd-udevd +fi mkdir -p "${tmpdir}/lib/udev/rules.d" cat > "${tmpdir}/lib/udev/rules.d/device.rules" << EOF