hook/systemd-udev: unbreak

tested on arch linux and ubuntu
This commit is contained in:
illiliti 2021-08-13 13:38:59 +03:00
parent 2e91b2f6eb
commit 3c7b763f60

View File

@ -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