Blame 0047-systemd-dracut-pre-pivot.sh-stop-old-udev-services.patch
|
Harald Hoyer |
e3ef57 |
From edcbd379d50218695681e9bb13288f9603da04f6 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
e3ef57 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
e3ef57 |
Date: Thu, 21 Jun 2012 01:04:15 +0200
|
|
Harald Hoyer |
e3ef57 |
Subject: [PATCH] systemd/dracut-pre-pivot.sh: stop old udev services
|
|
Harald Hoyer |
e3ef57 |
|
|
Harald Hoyer |
e3ef57 |
---
|
|
Harald Hoyer |
e3ef57 |
modules.d/98systemd/dracut-pre-pivot.sh | 6 +++++-
|
|
Harald Hoyer |
e3ef57 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
e3ef57 |
|
|
Harald Hoyer |
e3ef57 |
diff --git a/modules.d/98systemd/dracut-pre-pivot.sh b/modules.d/98systemd/dracut-pre-pivot.sh
|
|
Harald Hoyer |
e3ef57 |
index eb7e932..6685210 100755
|
|
Harald Hoyer |
e3ef57 |
--- a/modules.d/98systemd/dracut-pre-pivot.sh
|
|
Harald Hoyer |
e3ef57 |
+++ b/modules.d/98systemd/dracut-pre-pivot.sh
|
|
Harald Hoyer |
e3ef57 |
@@ -34,7 +34,11 @@ done
|
|
Harald Hoyer |
e3ef57 |
echo "NEWROOT=\"$NEWROOT\"" >> /run/initramfs/switch-root.conf
|
|
Harald Hoyer |
e3ef57 |
|
|
Harald Hoyer |
e3ef57 |
udevadm control --stop-exec-queue
|
|
Harald Hoyer |
e3ef57 |
-systemctl stop systemd-udev.service
|
|
Harald Hoyer |
e3ef57 |
+
|
|
Harald Hoyer |
e3ef57 |
+for i in systemd-udev.service udev.service; do
|
|
Harald Hoyer |
e3ef57 |
+ systemctl is-active $i >/dev/null 2>&1 && systemctl stop $i
|
|
Harald Hoyer |
e3ef57 |
+done
|
|
Harald Hoyer |
e3ef57 |
+
|
|
Harald Hoyer |
e3ef57 |
udevadm info --cleanup-db
|
|
Harald Hoyer |
e3ef57 |
|
|
Harald Hoyer |
e3ef57 |
# remove helper symlink
|