summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img8
1 files changed, 6 insertions, 2 deletions
diff --git a/make_boot_img b/make_boot_img
index 7f77a5536..f612235c7 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -136,7 +136,7 @@ sub initrd {
my $tar = "$instdir/stage1-data/stage1$o_raw_stage1_tree_kind.tar.bz2";
__ "$sudo umount $tmp $mnt 2>/dev/null";
- _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($arch =~ /ia64/ ? ($type eq "all" ? 16386 : 16384) : ($type eq "all" ? 5000 : 2000));
+ _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($arch =~ /ia64/ || $type eq "all" ? 16384 : 2000);
mke2fs($tmp);
_ "$sudo mount -t ext2 $tmp $mnt -o loop";
@@ -168,7 +168,11 @@ sub initrd {
}
my ($ext) = $img =~ /rdz-(.*)/ or die "bad initrd name ($img)";
my $modz = "kernel/all.modules$I/$ext";
- _ "$sudo cp -f $modz/${type}_modules.mar $mnt/modules/modules$I.mar";
+ if ($type eq 'all') {
+ __ "cd $modz ; $sudo cp -f `cat ${type}_modules.list` $mnt/modules";
+ } else {
+ _ "$sudo cp -f $modz/${type}_modules.mar $mnt/modules/modules$I.mar";
+ }
_ "$sudo cp -f $modz/modules.dep $mnt/modules/";
_ "$sudo cp -f /sbin/sash $mnt/tmp/sh" if $ENV{DEBUGSTAGE1};
_ "$sudo umount $mnt";