Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > e00d5248fbe3dc3c4ed267a76609e6a3 > files > 4

drakx-installer-binaries-2.24.2-1.mga6.src.rpm

diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 2140692..f2c72ba 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -242,19 +242,25 @@ static enum insmod_return insmod_with_deps(const char * alias, char * options) {
 	kmod_load_resources(ctx);
 
 	err = kmod_module_new_from_lookup(ctx, alias, &list);
-	if (err < 0)
+	if (err < 0) {
+		fprintf(stderr, "Error: kmod_module_new_from_lookup(%s) failed!\n", alias);
 		goto exit;
+	}
 
 	// No module found...
-	if (list == NULL)
+	if (list == NULL) {
+		fputs("Error: no module list found!\n", stderr);
 		goto exit;
+	}
 
 	// filter through blacklist
 	struct kmod_list *filtered = NULL;
 	err =  kmod_module_apply_filter(ctx, KMOD_FILTER_BLACKLIST, list, &filtered);
 	kmod_module_unref_list(list);
-	if (err < 0)
+	if (err < 0) {
+		fputs("Error: applying blacklist failed!\n", stderr);
 		goto exit;
+	}
 	list = filtered;
 
 	kmod_list_foreach(l, list) {