From 446c45c8e54ddcf1a233cd36c889cb4fc6ee6468 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 1 Jul 2011 14:07:06 -0400 Subject: [PATCH] fix path for module-info (should be /lib/modules/module-info) --- src/pylorax/treebuilder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 7da26258..66b15af2 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -114,7 +114,8 @@ class TreeBuilder(object): ksyms = joinpaths(inroot, "boot/System.map-%s" % kver) logger.info("doing depmod and module-info for %s", kver) check_call(["depmod", "-a", "-F", ksyms, "-b", inroot, kver]) - generate_module_info(joinpaths(inroot, "modules", kver)) + moddir = joinpaths(inroot, "lib/modules/") + generate_module_info(moddir+kver, outfile=moddir+"module-info") def rebuild_initrds(self, add_args=[], backup=""): '''Rebuild all the initrds in the tree. If backup is specified, each