#!/usr/bin/perl use MDK::Common; my $mar = '../mdk-stage1/mar/mar'; -x $mar or die "ERROR: Sorry, need $mar binary\n"; my %sanity_check = ( hd => [ if_(arch() !~ /x86_64/, 'aic7xxx'), qw(sym53c8xx initio), if_(arch() !~ /ppc/, 'advansys'), ], network => [ qw(3c59x eepro100 tulip via-rhine ne2k-pci 8139too), if_(arch() !~ /ppc|x86_64/, 'e100'), if_(arch() !~ /ppc|ia64/, 'tlan'), ], ); my $main_version = chomp_(cat_("all.kernels/.main")); foreach (keys %sanity_check) { my $marfile = "all.modules/$main_version/${_}_modules.mar"; -e $marfile or die "ERROR: missing $marfile\n"; my @l = map { /(\S+)\.o/ } `$mar -l $marfile`; my @pbs = difference2($sanity_check{$_}, \@l); @pbs and die "ERROR: sanity check should prove that " . join(" ", @pbs) . " be part of $marfile\n"; } >
Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/modules/parameters.pm
blob: 2af5ce951a03a4e244f74ffa5d357c281489ecc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package modules::parameters; # $Id$

use diagnostics;
use strict;

#-######################################################################################
#- misc imports
#-######################################################################################
use common;
use modules;


sub parameters {
  my ($module) = @_;

  if (!$::isStandalone && !$::testing) {
      ($module) = modules::extract_modules('/tmp', $module);
  }

  map {
      chomp;
      (my $name, $_) = /(\w+):(.*)/s or warn "modules::parameters::parameters($module): unknown line\n";
      [ $name, $_ ];
  } common::join_lines(run_program::get_stdout('modinfo', '-p', $module));
}

1;