fix systemd-udevd

This commit is contained in:
illiliti 2020-07-15 21:34:27 +03:00
parent cfe0184eb4
commit 451d68f9f2

View File

@ -392,11 +392,15 @@ copy_devmgr()
;;
udev)
# why systemd violates FHS and places daemon in /lib ?
udevd=$(command -v /lib/systemd/systemd-udevd) || udevd=udevd
if [ -e /lib/systemd/systemd-udevd ]; then
copy_binary /lib/systemd/systemd-udevd
mv "${tmpdir}/lib/systemd/systemd-udevd" "${tmpdir}/bin/udevd"
rmdir "${tmpdir}/lib/systemd"
else
copy_binary udevd
fi
for _binary in "$udevd" udevadm; do
copy_binary "$_binary"
done
copy_binary udevadm
mkdir -p "${tmpdir}/lib/udev/rules.d"