From 8b52cccc024cd305563718c07b7eb71eca69a268 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 16 Jan 2011 15:09:36 +0100 Subject: [PATCH] Do not wait for iscsi if we have not started it --- defaults/initrd.scripts | 3 +++ defaults/linuxrc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 25defb7..76a41bd 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -716,6 +716,9 @@ startiscsi() { fi iscsistart -i "${ISCSI_INITIATORNAME}" -t "${ISCSI_TARGET}" -a "${ISCSI_ADDRESS}" ${ADDITIONAL} + + # let iscsid settle - otherwise mounting the iSCSI-disk will fail (very rarely, though) + sleep 1 fi } diff --git a/defaults/linuxrc b/defaults/linuxrc index e9213ac..9e40b31 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -301,9 +301,6 @@ start_dev_mgr # Start iSCSI startiscsi -# let iscsid settle - otherwise mounting the iSCSI-disk will fail (very rarely, though) -sleep 1 - # Setup btrfs, see bug 303529 setup_btrfsctl -- 2.26.2