diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-11 22:56:23 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-11 22:56:23 +0000 |
commit | a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6 (patch) | |
tree | 1957114167179c19bceaf48fc8dbe85f97218190 /images/make_boot_img | |
parent | 2aa8b9f731046e099b595bedfbc33c540c330d3d (diff) | |
download | drakx-backup-do-not-use-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar drakx-backup-do-not-use-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar.gz drakx-backup-do-not-use-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar.bz2 drakx-backup-do-not-use-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.tar.xz drakx-backup-do-not-use-a8e8a75745601a1cd9a4a0c8d0b8eb0f42ca2af6.zip |
add modules in /modules/`uname -r` and use depmod to build modules.{dep,alias}
Diffstat (limited to 'images/make_boot_img')
-rwxr-xr-x | images/make_boot_img | 5 |
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 |