diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-20 19:12:24 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-20 19:12:24 +0000 |
commit | b2634a812a5982bab78eb2d1d0ed4c4a453785a8 (patch) | |
tree | 7513813a56d5f63e178141f994251fe0632f36ac /images/update_kernel | |
parent | f5ff42f11f74443d3d5ab1d168b8aa536f7d04d6 (diff) | |
download | drakx-backup-do-not-use-b2634a812a5982bab78eb2d1d0ed4c4a453785a8.tar drakx-backup-do-not-use-b2634a812a5982bab78eb2d1d0ed4c4a453785a8.tar.gz drakx-backup-do-not-use-b2634a812a5982bab78eb2d1d0ed4c4a453785a8.tar.bz2 drakx-backup-do-not-use-b2634a812a5982bab78eb2d1d0ed4c4a453785a8.tar.xz drakx-backup-do-not-use-b2634a812a5982bab78eb2d1d0ed4c4a453785a8.zip |
(extract_installed_rpm,recompress_modules) recompress gz modules as XZ
(make_modules_per_image) adapt
Diffstat (limited to 'images/update_kernel')
-rwxr-xr-x | images/update_kernel | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/images/update_kernel b/images/update_kernel index 37084b39f..867041cb9 100755 --- a/images/update_kernel +++ b/images/update_kernel @@ -65,7 +65,7 @@ sub extract_installed_rpm { sys('cp', "$installed_dir/boot/vmlinuz-$kern_ver", "$local_dir/vmlinuz"); sys("cp $installed_dir/lib/modules/$kern_ver/modules.* $local_dir"); - open(my $F, "find $installed_dir/lib/modules/$kern_ver -name '*.ko.gz' |"); + open(my $F, "find $installed_dir/lib/modules/$kern_ver -name '*.ko.?z' |"); my $file; while ($file = <$F>) { chomp($file); system('cp', $file, "$local_dir/modules/" . basename($file)) == 0 @@ -74,6 +74,7 @@ sub extract_installed_rpm { sys('perl', '../kernel/modules.pl', 'remove_unneeded_modules', $kern_ver); sys('perl', '../kernel/modules.pl', 'get_firmwares', $kern_ver); + sys('perl', '../kernel/modules.pl', 'recompress_modules', $kern_ver); sys('perl', '../kernel/modules.pl', 'make_modules_per_image', $kern_ver); rm_rf("$local_dir/modules"); |