[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH bz 442098
- From: Jerry Vonau <jvonau shaw ca>
- To: ", Discussion of Development and Customization of the Red Hat Linux Installer" <anaconda-devel-list redhat com>
- Subject: PATCH bz 442098
- Date: Sat, 12 Apr 2008 10:27:29 -0500
The boot.iso of 080411 does not have the .discinfo file in the root of
the cdrom. The check for .discinfo has been removed for urlinstall,
mountStage2 is going to validate .buildstamp anyway, so here is a patch
to remove it from cdinstall.
Jerry
--- cdinstall.c.orig 2008-04-12 09:35:58.000000000 -0500
+++ cdinstall.c 2008-04-12 10:08:32.000000000 -0500
@@ -234,7 +234,7 @@
int i, r, rc;
int foundinvalid = 0;
int stage2inram = 0;
- char *buf, *stage2loc, *discinfoloc, *imageDir;
+ char *buf, *stage2loc, *imageDir;
char *stage2img;
struct device ** devices;
char *cddev = NULL;
@@ -248,11 +248,9 @@
if (loaderData && FL_STAGE2(flags)) {
stage2loc = strdup(location);
r = asprintf(&imageDir, "%.*s", (int) (strrchr(location, '/') - location), location);
- r = asprintf(&discinfoloc, "%s/.discinfo", imageDir);
} else {
r = asprintf(&stage2loc, "%s/images/stage2.img", location);
r = asprintf(&imageDir, "%s/images", location);
- r = asprintf(&discinfoloc, "%s/.discinfo", location);
}
/* JKFIXME: ASSERT -- we have a cdrom device when we get here */
@@ -273,9 +271,8 @@
if (!(rc=doPwMount(devices[i]->device, location, "iso9660", "ro"))) {
cddev = devices[i]->device;
- if (!access(stage2loc, R_OK) &&
- (!requirepkgs || !access(discinfoloc, R_OK))) {
-
+ if (!access(stage2loc, R_OK) && (!requirepkgs)){
+
/* if in rescue mode lets copy stage 2 into RAM so we can */
/* free up the CD drive and user can have it avaiable to */
/* aid system recovery. */
@@ -317,7 +314,6 @@
free(stage2loc);
free(imageDir);
- free(discinfoloc);
if (r == -1)
return NULL;
@@ -361,7 +357,6 @@
err:
free(stage2loc);
free(imageDir);
- free(discinfoloc);
return NULL;
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]