|
|
a56a5e |
From 32c431bb48601a699d8da0b2ff22299ab3888183 Mon Sep 17 00:00:00 2001
|
|
|
966cef |
From: Harald Hoyer <harald@redhat.com>
|
|
|
966cef |
Date: Mon, 2 Dec 2013 10:39:36 +0100
|
|
|
966cef |
Subject: [PATCH] base/dracut-lib.sh:wait_for_dev() relax requirement
|
|
|
966cef |
|
|
|
966cef |
Do not "require" the devices, but "want" them. This might boot more
|
|
|
966cef |
systems, where:
|
|
|
966cef |
- the UUID changed
|
|
|
966cef |
- swap devices do not show up
|
|
|
966cef |
---
|
|
|
966cef |
modules.d/99base/dracut-lib.sh | 8 ++++----
|
|
|
966cef |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
966cef |
|
|
|
966cef |
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
|
|
|
966cef |
index 74d7d35..7249c58 100755
|
|
|
966cef |
--- a/modules.d/99base/dracut-lib.sh
|
|
|
966cef |
+++ b/modules.d/99base/dracut-lib.sh
|
|
|
966cef |
@@ -856,9 +856,9 @@ wait_for_dev()
|
|
|
966cef |
|
|
|
966cef |
if [ -n "$DRACUT_SYSTEMD" ]; then
|
|
|
966cef |
_name=$(dev_unit_name "$1")
|
|
|
966cef |
- if ! [ -L ${PREFIX}/etc/systemd/system/initrd.target.requires/${_name}.device ]; then
|
|
|
966cef |
- [ -d ${PREFIX}/etc/systemd/system/initrd.target.requires ] || mkdir -p ${PREFIX}/etc/systemd/system/initrd.target.requires
|
|
|
966cef |
- ln -s ../${_name}.device ${PREFIX}/etc/systemd/system/initrd.target.requires/${_name}.device
|
|
|
966cef |
+ if ! [ -L ${PREFIX}/etc/systemd/system/initrd.target.wants/${_name}.device ]; then
|
|
|
966cef |
+ [ -d ${PREFIX}/etc/systemd/system/initrd.target.wants ] || mkdir -p ${PREFIX}/etc/systemd/system/initrd.target.wants
|
|
|
966cef |
+ ln -s ../${_name}.device ${PREFIX}/etc/systemd/system/initrd.target.wants/${_name}.device
|
|
|
966cef |
fi
|
|
|
966cef |
|
|
|
966cef |
mkdir -p ${PREFIX}/etc/systemd/system/${_name}.device.d
|
|
|
966cef |
@@ -878,7 +878,7 @@ cancel_wait_for_dev()
|
|
|
966cef |
rm -f -- "$hookdir/emergency/80-${_name}.sh"
|
|
|
966cef |
if [ -n "$DRACUT_SYSTEMD" ]; then
|
|
|
966cef |
_name=$(dev_unit_name "$1")
|
|
|
966cef |
- rm -f -- ${PREFIX}/etc/systemd/system/initrd.target.requires/${_name}.device
|
|
|
966cef |
+ rm -f -- ${PREFIX}/etc/systemd/system/initrd.target.wants/${_name}.device
|
|
|
966cef |
rm -f -- ${PREFIX}/etc/systemd/system/${_name}.device.d/timeout.conf
|
|
|
966cef |
/sbin/initqueue --onetime --unique --name daemon-reload systemctl daemon-reload
|
|
|
966cef |
fi
|