mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
appliance: Find udevd a bit faster.
Rearrange the paths that we check for udevd so that the systemd paths are first. Break from the loop as soon as we find udevd.
This commit is contained in:
@@ -89,13 +89,13 @@ echo "${machine_id// /}" > /etc/machine-id
|
||||
systemd-tmpfiles --prefix=/dev --create --boot
|
||||
|
||||
# Find udevd and run it directly.
|
||||
for f in /sbin/udevd /lib/udev/udevd \
|
||||
/lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd \
|
||||
for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd \
|
||||
/sbin/udevd /lib/udev/udevd \
|
||||
/usr/lib/udev/udevd; do
|
||||
if [ -x "$f" ]; then UDEVD="$f"; fi
|
||||
if [ -x "$f" ]; then UDEVD="$f"; break; fi
|
||||
done
|
||||
if [ -z "$UDEVD" ]; then
|
||||
echo "udev not found! Things will probably not work ..."
|
||||
echo "error: udev not found! Things will probably not work ..."
|
||||
fi
|
||||
|
||||
$UDEVD --daemon #--debug
|
||||
|
||||
Reference in New Issue
Block a user