This is useful for debugging (but we can't print it unconditionally
since we cannot run grep etc yet). It also allows us to identify
when udevd is invoked so we can time it for boot analysis.
---
appliance/init | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/appliance/init b/appliance/init
index f6fe9b9..657943c 100755
--- a/appliance/init
+++ b/appliance/init
@@ -65,10 +65,12 @@ systemd-tmpfiles --prefix=/dev --create --boot
for f in /sbin/udevd /lib/udev/udevd \
/lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd \
/usr/lib/udev/udevd; do
- if [ -x "$f" ]; then UDEVD="$f"; fi
+ if [ -x "$f" ]; then UDEVD="$f"; fi
done
-if [ -z "$UDEVD" ]; then
- echo "udev not found! Things will probably not work ..."
+if [ -n "$UDEVD" ]; then
+ echo "UDEVD=$UDEVD"
+else
+ echo "WARNING: udev not found! Things will probably not work ..."
fi
$UDEVD --daemon #--debug
--
2.5.0