summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
Diffstat (limited to 'images')
-rw-r--r--images/NEWS1
-rwxr-xr-ximages/update_kernel3
2 files changed, 3 insertions, 1 deletions
diff --git a/images/NEWS b/images/NEWS
index 3d4b7636d..9e2252706 100644
--- a/images/NEWS
+++ b/images/NEWS
@@ -1,5 +1,6 @@
- smaller stage1:
o compress initrd with XZ instead of gzip
+ o recompress gz modules as XZ
Version 1.61 - 19 January 2012 by Thierry Vignaud
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");