[PATCH 1/2] Try to auto-find the CD even if stage2= is specified

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

 



Try to auto-find the CD even if stage2= is specified; this lets us
add stage2= and then the isohybrid'd images can be dd'd to a usb
stick and stage2 gets find there as well as on the CD.

Next step is to be able to get rid of the auto CD finding by
always explicitly specifying stage2=
---
 loader/loader.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 8d92ed4..b48b0a0 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1247,7 +1247,7 @@ static char *doLoaderMain(struct loaderData_s *loaderData,
      * it.  However if stage2= was given, use that value as an override here.
      * That will also then bypass any method selection UI in loader.
      */
-    if (!FL_ASKMETHOD(flags) && !loaderData->stage2Data) {
+    if (!FL_ASKMETHOD(flags)) {
         url = findAnacondaCD("/mnt/stage2");
         if (url) {
             setStage2LocFromCmdline(url, loaderData);
@@ -1261,7 +1261,7 @@ static char *doLoaderMain(struct loaderData_s *loaderData,
 
             skipLangKbd = 1;
             flags |= LOADER_FLAGS_NOPASS;
-        } else if (loaderData->instRepo) {
+        } else if (!loaderData->stage2Data && loaderData->instRepo) {
             /* If no CD/DVD with a stage2 image was found and we were given a
              * repo=/method= parameter, try to piece together a valid setting
              * for the stage2= parameter based on that.
-- 
1.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