summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-11 22:56:23 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-11 22:56:23 +0000
commita8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6 (patch)
tree1957114167179c19bceaf48fc8dbe85f97218190 /images
parent2aa8b9f731046e099b595bedfbc33c540c330d3d (diff)
downloaddrakx-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar
drakx-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar.gz
drakx-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar.bz2
drakx-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar.xz
drakx-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.zip
add modules in /modules/`uname -r` and use depmod to build modules.{dep,alias}
Diffstat (limited to 'images')
-rwxr-xr-ximages/make_boot_img5
1 files changed, 3 insertions, 2 deletions
diff --git a/images/make_boot_img b/images/make_boot_img
index b2c953fea..75b6fa584 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -170,8 +170,9 @@ sub initrd {
my ($ext) = $img =~ /rdz-(.*)/ or die "bad initrd name ($img)";
my $modz = "all.kernels$I/$ext";
mkdir_p("$tmp_initrd/modules/$ext");
- __ "tar xC $tmp_initrd/modules -f $modz/${type}_modules.tar";
- _ "cp -f $modz/modules.dep $modz/modules.alias modules.description $tmp_initrd/modules/$ext";
+ __ "tar xC $tmp_initrd/modules/$ext -f $modz/${type}_modules.tar";
+ _ "depmod -b $tmp_initrd $ext";
+ _ "cp -f $modz/modules.description $tmp_initrd/modules/$ext";
symlink "$ext/$_", "$tmp_initrd/modules/$_" foreach qw(modules.dep modules.description);
}
# ka deploy need some files in all.rdz