summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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