[PATCH] Wait for scsi adapters to be done with scanning their busses (#583143)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 scripts/mk-images |    2 +-
 storage/udev.py   |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 0695f4e..c032811 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -101,7 +101,7 @@ USBMODS="$UMSMODS ohci-hcd uhci-hcd ehci-hcd usbhid mousedev usb-storage sd_mod
 FIREWIREMODS="ohci1394 sbp2 fw-ohci fw-sbp2 firewire-sbp2 firewire-ohci"
 SDMODS="mmc-block sdhci sdhci-pci"
 IDEMODS="ide-cd ide-cd_mod"
-SCSIMODS="sr_mod sg st sd_mod scsi_mod iscsi_tcp iscsi_ibft"
+SCSIMODS="sr_mod sg st sd_mod scsi_mod iscsi_tcp iscsi_ibft scsi_wait_scan"
 FSMODS="fat msdos vfat ext2 ext3 ext4 reiserfs jfs xfs gfs2 cifs fuse btrfs hfsplus"
 LVMMODS="dm-mod dm-zero dm-snapshot dm-mirror dm-multipath dm-round-robin dm-crypt"
 RAIDMODS="raid0 raid1 raid5 raid6 raid456 raid10 linear"
diff --git a/storage/udev.py b/storage/udev.py
index 483cd69..e3a270a 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -77,6 +77,11 @@ def udev_resolve_glob(glob):
     return ret
 
 def udev_get_block_devices():
+    # Wait for scsi adapters to be done with scanning their busses (#583143)
+    iutil.execWithRedirect("modprobe", [ "scsi_wait_scan" ],
+                               stdout = "/dev/tty5", stderr="/dev/tty5")
+    iutil.execWithRedirect("rmmod", [ "scsi_wait_scan" ],
+                               stdout = "/dev/tty5", stderr="/dev/tty5")
     udev_settle()
     entries = []
     for path in udev_enumerate_block_devices():
-- 
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux