Harald Hoyer 19aece
From 765b20333d9589e09b29dbe0d8304a56745623c6 Mon Sep 17 00:00:00 2001
Harald Hoyer 19aece
From: Dusty Mabe <dusty@dustymabe.com>
Harald Hoyer 19aece
Date: Mon, 22 Oct 2018 13:25:29 -0400
Harald Hoyer 19aece
Subject: [PATCH] 95iscsi: drop systemd dracut service dependencies for iscsid
Harald Hoyer 19aece
Harald Hoyer 19aece
These dependencies cause an odd issue where swap devices specified
Harald Hoyer 19aece
by resume= on the kernel command line will cause systemd device
Harald Hoyer 19aece
timeouts to occur on boot. According to @haraldh these lines aren't
Harald Hoyer 19aece
needed because the socket activiation will take care of it for us.
Harald Hoyer 19aece
Removing these lines now as it fixes the resume= device timeout issue.
Harald Hoyer 19aece
Harald Hoyer 19aece
Fixes #480
Harald Hoyer 19aece
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641268
Harald Hoyer 19aece
---
Harald Hoyer 19aece
 modules.d/95iscsi/module-setup.sh | 8 --------
Harald Hoyer 19aece
 1 file changed, 8 deletions(-)
Harald Hoyer 19aece
Harald Hoyer 19aece
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
Harald Hoyer 19aece
index 5c2073bb..3c791001 100755
Harald Hoyer 19aece
--- a/modules.d/95iscsi/module-setup.sh
Harald Hoyer 19aece
+++ b/modules.d/95iscsi/module-setup.sh
Harald Hoyer 19aece
@@ -257,14 +257,6 @@ install() {
Harald Hoyer 19aece
             ; do
Harald Hoyer 19aece
             ln_r "$systemdsystemunitdir/${i}" "$systemdsystemunitdir/basic.target.wants/${i}"
Harald Hoyer 19aece
         done
Harald Hoyer 19aece
-
Harald Hoyer 19aece
-        # Make sure iscsid is started after dracut-cmdline and ready for the initqueue
Harald Hoyer 19aece
-        mkdir -p "${initdir}/$systemdsystemunitdir/iscsid.service.d"
Harald Hoyer 19aece
-        (
Harald Hoyer 19aece
-            echo "[Unit]"
Harald Hoyer 19aece
-            echo "After=dracut-cmdline.service"
Harald Hoyer 19aece
-            echo "Before=dracut-initqueue.service"
Harald Hoyer 19aece
-        ) > "${initdir}/$systemdsystemunitdir/iscsid.service.d/dracut.conf"
Harald Hoyer 19aece
     fi
Harald Hoyer 19aece
     inst_dir /var/lib/iscsi
Harald Hoyer 19aece
     dracut_need_initqueue
Harald Hoyer 19aece