summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-18 21:07:15 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-18 21:07:15 +0000
commitee67c3fa110848a0e44f903b32929f0406a3b00f (patch)
tree20b1a9ca3f0dafd41a970b5b34559c61e975d491 /perl-install/modules.pm
parent77cc98bddde7b3ebcfcb8cb02e6fe642b1cce4d9 (diff)
downloaddrakx-ee67c3fa110848a0e44f903b32929f0406a3b00f.tar
drakx-ee67c3fa110848a0e44f903b32929f0406a3b00f.tar.gz
drakx-ee67c3fa110848a0e44f903b32929f0406a3b00f.tar.bz2
drakx-ee67c3fa110848a0e44f903b32929f0406a3b00f.tar.xz
drakx-ee67c3fa110848a0e44f903b32929f0406a3b00f.zip
use modprobe instead of insmod (mga#8676)
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm49
1 files changed, 0 insertions, 49 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 3cbe942b0..76343578c 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -90,8 +90,6 @@ sub load_raw {
if ($::testing || $::local_install) {
log::l("i would load module $_ ($h_options->{$_})") foreach @$l;
- } elsif ($::isInstall) {
- load_raw_install($l, $h_options);
} else {
run_program::run('/sbin/modprobe', $_, split(' ', $h_options->{$_}))
or !run_program::run('/sbin/modprobe', '-n', $_) #- ignore missing modules
@@ -305,51 +303,4 @@ sub when_load_category {
}
}
-#-###############################################################################
-#- isInstall functions
-#-###############################################################################
-sub module_extension() { ".ko" }
-
-sub extract_modules {
- my ($dir, @modules) = @_;
- map {
- my $modname = $_;
- my $path = list_modules::modname2path($modname);
- my $f = $modname . module_extension();
- if (-e $path) {
- system("gzip -dc $path > $dir/$f 2>/dev/null") == 0
- or system("xz -d < $path > $dir/$f") == 0
- or unlink "$dir/$f";
- } else {
- log::l("warning: unable to get module filename for $modname (path: $path)");
- }
- "$dir/$f";
- } @modules;
-}
-
-sub load_raw_install {
- my ($l, $options) = @_;
-
- extract_modules('/tmp', @$l);
- my @failed = grep {
- my $m = '/tmp/' . $_ . module_extension();
- if (-e $m) {
- my $stdout;
- my $rc = run_program::run('/sbin/insmod', '2>', \$stdout, $m, split(' ', $options->{$_}));
- log::l(chomp_($stdout)) if $stdout;
- # if whether we succeeded or module is already loaded:
- if ($rc || $stdout =~ /: -1 File exists/) {
- unlink $m;
- '';
- }
- } else {
- log::l("missing module $_");
- 'error';
- }
- } @$l;
-
- die "insmod'ing module " . join(", ", @failed) . " failed" if @failed;
-
-}
-
1;
* Added locale->fonts-* dependenciesPablo Saratxaga2003-08-011-5/+8 | * updated pot filePablo Saratxaga2003-07-312-634/+219 | * Add vera font by defaultFrederic Crozat2003-07-291-1/+1 | * updated pot filePablo Saratxaga2003-07-292-90/+67 | * moved mkfs.xfsFrancois Pons2003-07-281-1/+1 | * updated pot filePablo Saratxaga2003-07-252-787/+757 | * removed ncompress (contrib)Frederic Lepied2003-07-241-1/+1 | * Added Uzbek cyrillic filePablo Saratxaga2003-07-231-0/+18251 | * updated pot filePablo Saratxaga2003-07-211-51/+117 | * updated pot filePablo Saratxaga2003-07-141-138/+418 | * changed "Country" . " / Region" to "Country / Region" and fixed Chinese po'sPablo Saratxaga2003-07-121-12/+7 | * updated pot filePablo Saratxaga2003-07-101-95/+129 | * updated pot filePablo Saratxaga2003-07-092-10998/+11474 | * install netprofile on laptopsFrederic Lepied2003-07-081-0/+1 | * iAdded various new keyboard layoutsPablo Saratxaga2003-07-011-0/+0 | * Moved Bokmaal file to nb.poPablo Saratxaga2003-06-281-21449/+0 | * Fixed typos; updated Ukrainian po filePablo Saratxaga2003-06-272-33/+33 | * updated pot filePablo Saratxaga2003-06-272-498/+721 | * use the mkswap commandPascal Rigaux2003-06-181-0/+1 | | | | | | | => simpler code and mkswap is not big => rely on mkswap for choosing the swap version (note that kernel 2.5 doesn't handle v0 swap anymore) * updated pot filePablo Saratxaga2003-06-162-458/+572 | * change a bit how strings are passed to advertising systemGuillaume Cottenceau2003-06-1216-1252/+1632 | | | | | | so that we don't specify absolute x,y positions for each paragraph, ending with overwritten text in some localizations * cookerGuillaume Cottenceau2003-06-061-0/+0 | * updated Estonien, Japanese, Albanian and Vietnamese po filesPablo Saratxaga2003-06-033-3301/+3539 | * UpdateArkadiusz Lipiec2003-06-021-195/+308 | * updated Spanish translationsFabián Mandelbaum2003-06-021-154/+271 | * changed the name of the russian phonetic layoutPablo Saratxaga2003-05-3147-6454/+11245 | * updated Vietnamese filePablo Saratxaga2003-05-302-67/+68 | * updated Albanian filePablo Saratxaga2003-05-281-5/+46 | * updated pot filePablo Saratxaga2003-05-261-3/+43 | * updated pot filePablo Saratxaga2003-05-222-75/+134 | * updated pot filePablo Saratxaga2003-05-202-98/+147 | * updated German, Estonian and Finnish filesPablo Saratxaga2003-05-203-1420/+1964 | * update french translationThierry Vignaud2003-05-201-67/+54 | * updated Spanish translationsFabián Mandelbaum2003-05-191-221/+176 | * updated pot filePablo Saratxaga2003-05-16