Blame 0018-udevd-moved-to-lib-systemd-systemd-udevd.patch

Harald Hoyer 953eb6
From 2369f8aa7684df0b1b0dbd1fd24823ea8d78ad13 Mon Sep 17 00:00:00 2001
Harald Hoyer 953eb6
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 953eb6
Date: Wed, 18 Apr 2012 12:42:39 +0200
Harald Hoyer 953eb6
Subject: [PATCH] udevd moved to /lib/systemd/systemd-udevd
Harald Hoyer 953eb6
Harald Hoyer 953eb6
---
Harald Hoyer 953eb6
 dracut.conf.d/fedora.conf.example      |    1 +
Harald Hoyer 953eb6
 modules.d/95udev-rules/module-setup.sh |   10 +++++++++-
Harald Hoyer 953eb6
 modules.d/99base/init.sh               |    2 +-
Harald Hoyer 953eb6
 3 files changed, 11 insertions(+), 2 deletions(-)
Harald Hoyer 953eb6
Harald Hoyer 953eb6
diff --git a/dracut.conf.d/fedora.conf.example b/dracut.conf.d/fedora.conf.example
Harald Hoyer 953eb6
index 02a530e..617d967 100644
Harald Hoyer 953eb6
--- a/dracut.conf.d/fedora.conf.example
Harald Hoyer 953eb6
+++ b/dracut.conf.d/fedora.conf.example
Harald Hoyer 953eb6
@@ -8,3 +8,4 @@ omit_drivers+=" .*/fs/ocfs/.* "
Harald Hoyer 953eb6
 stdloglvl=3
Harald Hoyer 953eb6
 realinitpath="/usr/lib/systemd/systemd"
Harald Hoyer 953eb6
 install_items+=" vi /etc/virc ps grep cat rm "
Harald Hoyer 953eb6
+prefix="/"
Harald Hoyer 953eb6
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
Harald Hoyer 953eb6
index b17232f..cc42eb7 100755
Harald Hoyer 953eb6
--- a/modules.d/95udev-rules/module-setup.sh
Harald Hoyer 953eb6
+++ b/modules.d/95udev-rules/module-setup.sh
Harald Hoyer 953eb6
@@ -8,12 +8,20 @@ install() {
Harald Hoyer 953eb6
     # ultimately, /lib/initramfs/rules.d or somesuch which includes links/copies
Harald Hoyer 953eb6
     # of the rules we want so that we just copy those in would be best
Harald Hoyer 953eb6
     dracut_install udevadm
Harald Hoyer 953eb6
-    [ -x /sbin/udevd ] && dracut_install udevd
Harald Hoyer 953eb6
+    if [ -x /sbin/udevd ]; then
Harald Hoyer 953eb6
+        dracut_install udevd
Harald Hoyer 953eb6
+        mkdir -p ${initdir}/lib/systemd
Harald Hoyer 953eb6
+        ln -s /sbin/udevd ${initdir}/lib/systemd/systemd-udevd
Harald Hoyer 953eb6
+    elif [ -x /lib/systemd/systemd-udevd ]; then
Harald Hoyer 953eb6
+        inst /lib/systemd/systemd-udevd
Harald Hoyer 953eb6
+    fi
Harald Hoyer 953eb6
 
Harald Hoyer 953eb6
     for i in /etc/udev/udev.conf /etc/group; do
Harald Hoyer 953eb6
         inst_simple $i
Harald Hoyer 953eb6
     done
Harald Hoyer 953eb6
+
Harald Hoyer 953eb6
     dracut_install basename
Harald Hoyer 953eb6
+
Harald Hoyer 953eb6
     inst_rules 50-udev-default.rules 60-persistent-storage.rules \
Harald Hoyer 953eb6
         61-persistent-storage-edd.rules 80-drivers.rules 95-udev-late.rules \
Harald Hoyer 953eb6
         60-pcmcia.rules
Harald Hoyer 953eb6
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
Harald Hoyer 953eb6
index 2f87a20..0ea72e8 100755
Harald Hoyer 953eb6
--- a/modules.d/99base/init.sh
Harald Hoyer 953eb6
+++ b/modules.d/99base/init.sh
Harald Hoyer 953eb6
@@ -110,7 +110,7 @@ getarg 'rd.break=pre-udev' 'rdbreak=pre-udev' && emergency_shell -n pre-udev "Br
Harald Hoyer 953eb6
 source_hook pre-udev
Harald Hoyer 953eb6
 
Harald Hoyer 953eb6
 # start up udev and trigger cold plugs
Harald Hoyer 953eb6
-udevd --daemon --resolve-names=never
Harald Hoyer 953eb6
+/lib/systemd/systemd-udevd --daemon --resolve-names=never
Harald Hoyer 953eb6
 
Harald Hoyer 953eb6
 UDEV_LOG_PRIO_ARG=--log-priority
Harald Hoyer 953eb6
 UDEV_QUEUE_EMPTY="udevadm settle --timeout=0"