diff options
author | Chris Lumens <clumens@redhat.com> | 2006-09-28 19:48:14 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-09-28 19:48:14 +0000 |
commit | a4e882ea142acd373363a947e8fb58c4e3fc840d (patch) | |
tree | e0b4a6d1e264c5fd89745f99a115331c9892d369 /loader2 | |
parent | 4e4254319e49757cd87298b61ca108df527c62f4 (diff) | |
download | anaconda-a4e882ea142acd373363a947e8fb58c4e3fc840d.tar.gz anaconda-a4e882ea142acd373363a947e8fb58c4e3fc840d.tar.xz anaconda-a4e882ea142acd373363a947e8fb58c4e3fc840d.zip |
Pass the updates image location to anaconda.
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/loader.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/loader2/loader.c b/loader2/loader.c index 6faaf9a5f..1dd55d907 100644 --- a/loader2/loader.c +++ b/loader2/loader.c @@ -312,7 +312,7 @@ static void spawnShell(void) { return; } -void loadUpdates(void) { +void loadUpdates(struct loaderData_s *loaderData) { int done = 0; int rc; char * device = NULL, ** devNames = NULL; @@ -341,20 +341,20 @@ void loadUpdates(void) { free(devNames); return; } - device = strdup(devNames[num]); + loaderData->updatessrc = strdup(devNames[num]); free(devNames); } buf = sdupprintf(_("Insert your updates disk into /dev/%s and press " - "\"OK\" to continue."), device); + "\"OK\" to continue."), loaderData->updatessrc); rc = newtWinChoice(_("Updates Disk"), _("OK"), _("Cancel"), buf); if (rc == 2) return; - logMessage(INFO, "UPDATES device is %s", device); + logMessage(INFO, "UPDATES device is %s", loaderData->updatessrc); - devMakeInode(device, "/tmp/upd.disk"); + devMakeInode(loaderData->updatessrc, "/tmp/upd.disk"); if (doPwMount("/tmp/upd.disk", "/tmp/update-disk", "ext2", IMOUNT_RDONLY, NULL) && doPwMount("/tmp/upd.disk", "/tmp/update-disk", "iso9660", @@ -1554,7 +1554,7 @@ int main(int argc, char ** argv) { if (loaderData.updatessrc) loadUpdatesFromRemote(loaderData.updatessrc, &loaderData); else if (FL_UPDATES(flags)) - loadUpdates(); + loadUpdates(&loaderData); mlLoadModuleSet("md:raid0:raid1:raid5:raid6:raid456:fat:msdos:jbd:ext3:lock_nolock:gfs2:reiserfs:jfs:xfs:dm-mod:dm-zero:dm-mirror:dm-snapshot:dm-multipath:dm-round-robin:dm-emc", modLoaded, modDeps, modInfo); @@ -1680,6 +1680,11 @@ int main(int argc, char ** argv) { *argptr++ = virtpcon; } + if (loaderData.updatessrc && FL_UPDATES(flags)) { + *argptr++ = "--updates"; + *argptr++ = loaderData.updatessrc; + } + if ((loaderData.lang) && !FL_NOPASS(flags)) { *argptr++ = "--lang"; *argptr++ = loaderData.lang; |