[PATCH] Fix driver disk loading from partitionless media (#575129).

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

 



If part_list is NULL in loadDriverFromMedia() in the DEV_PART state, we
want the user to go to DEV_INSERT rather than back to DEV_DEVICE.  If
the user goes back to DEV_DEVICE, we run the risk of entering an
infinite loop as well as no longer handling loading from devices that
lack partitions (floppy disks, CD and DVD media, USB media without a
partition, and so on).
---
 loader2/driverdisk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader2/driverdisk.c b/loader2/driverdisk.c
index 0a53b93..40d9901 100644
--- a/loader2/driverdisk.c
+++ b/loader2/driverdisk.c
@@ -291,7 +291,7 @@ int loadDriverFromMedia(int class, struct loaderData_s *loaderData,
 	    /* if somebody removed the drive, partition list is NULL */
 	    /* rhbz#521189 */
 	    if (!part_list){
-              stage = DEV_DEVICE;
+	       stage = DEV_INSERT;
 	      break;
 	    }
 
-- 
1.6.6.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