From b2634a812a5982bab78eb2d1d0ed4c4a453785a8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 20 Jan 2012 19:12:24 +0000 Subject: (extract_installed_rpm,recompress_modules) recompress gz modules as XZ (make_modules_per_image) adapt --- kernel/modules.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/modules.pl b/kernel/modules.pl index a47b272f9..a939f7605 100644 --- a/kernel/modules.pl +++ b/kernel/modules.pl @@ -65,12 +65,20 @@ sub remove_unneeded_modules { } } +sub recompress_modules { + my ($kern_ver) = @_; + + my $dir = "all.kernels/$kern_ver/modules"; + + system("cd $dir ; xzme *.ko.gz") == 0 or die "xzme failed\n"; +} + sub make_modules_per_image { my ($kern_ver) = @_; my $dir = "all.kernels/$kern_ver/modules"; - system("cd $dir ; tar cf ../all_modules.tar *.ko.gz") == 0 or die "tar failed\n"; + system("cd $dir ; tar cf ../all_modules.tar *.ko.*") == 0 or die "tar failed\n"; } sub get_main_modules() { -- cgit v1.2.1