From 9756532b6fdd94ba7ab3b85bbc720785f781c52d Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Thu, 16 Jul 2009 11:21:16 -0400 Subject: Try to auto-find the CD even if stage2= is specified 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 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader/loader.c') diff --git a/loader/loader.c b/loader/loader.c index 8d92ed461..b48b0a0df 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. -- cgit