PATCH: fix intel isw raid 0 and 1 in Fedora

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

 



Hi All,

This is a forward port of a RHEL-5 patch by Joel, with a pyblock compiled with this patch in an updates.img I can successfully install F-10 on an intel isw dmraid 0 system.

Regards,

Hans
--- pyblock-0.32-new/dmraid.c	2006-07-26 16:58:22.000000000 +0200
+++ pyblock-0.32/dmraid.c	2008-10-17 19:32:30.000000000 +0200
@@ -1245,10 +1245,18 @@
 		}
 
 		Py_DECREF(name);
-		if (!group_set(ctx->lc, &rd->name)) {
-			pyblock_PyErr_Format(GroupingError, "%s", rd->name);
-			Py_DECREF(dict);
-			return NULL;
+		if (!group_set(ctx->lc, &rd->name)) {
+			/*
+			 * This means that whatever was in name did not
+			 * play well with current context.  lest try
+			 * a NULL list.
+			 */
+			char *temp[] = {NULL};
+			if (!group_set(ctx->lc, temp)){
+				pyblock_PyErr_Format(GroupingError, "%s", rd->name);
+				Py_DECREF(dict);
+				return NULL;
+			}
 		}
 		Py_DECREF(dict);
 	}
_______________________________________________
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