summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-20 19:12:24 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-20 19:12:24 +0000
commitc376b09d3e692f40f1e98d9d1cf2df81ba74eddb (patch)
tree7513813a56d5f63e178141f994251fe0632f36ac /kernel
parent50f121e7372566753e3af73bada2c85bc57d0eb7 (diff)
downloaddrakx-c376b09d3e692f40f1e98d9d1cf2df81ba74eddb.tar
drakx-c376b09d3e692f40f1e98d9d1cf2df81ba74eddb.tar.gz
drakx-c376b09d3e692f40f1e98d9d1cf2df81ba74eddb.tar.bz2
drakx-c376b09d3e692f40f1e98d9d1cf2df81ba74eddb.tar.xz
drakx-c376b09d3e692f40f1e98d9d1cf2df81ba74eddb.zip
(extract_installed_rpm,recompress_modules) recompress gz modules as XZ
(make_modules_per_image) adapt
Diffstat (limited to 'kernel')
-rw-r--r--kernel/modules.pl10
1 files changed, 9 insertions, 1 deletions
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() {