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

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