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