Changeset 3254 for branches/3.2


Ignore:
Timestamp:
Feb 27, 2014, 3:48:29 AM (5 years ago)
Author:
bruno
Message:
  • Removes duplicate log in mindi
  • Plan for a log of live modules vs extra modules
Location:
branches/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/MondoRescue/lib/MondoRescue/Kernel.pm

    r3250 r3254  
    8383my %modlist;
    8484my $void = "";
     85my @alllivemodules;
    8586my @allmodpaths;
    8687my $modulepath = "";
     
    8889#print Dumper(@allmodules);
    8990
    90 # If no module names list passed as parameter, the work on all modules of the system
     91# First compute the list of "live" modules - run on the system
     92open(LSMOD, "cat /proc/modules |") or die "Unable to launch lsmod";
     93while (<LSMOD>) {
     94    next if (/^Module/);
     95    ($module, $void) = split(/ /);
     96    print "***$module***|***$void***\n";
     97    push @alllivemodules,$module;
     98}
     99close(LSMOD);
     100
     101# If no module name list passed as parameter, then work on all modules of the system
    91102if (not defined $allmodules[0]) {
    92     open(LSMOD, "/sbin/lsmod |") or die "Unable to launch lsmod";
    93     while (<LSMOD>) {
    94         next if (/^Module/);
    95         ($module, $void) = split(/ /);
    96         print "***$module***|***$void***\n";
    97         push @allmodules,$module;
    98     }
    99     close(LSMOD);
     103    @allmodules = @alllivemodules;
    100104}
    101105#print Dumper(@allmodules);
    102106
     107# Now computes the dependencies of each module and store them in %modlist
    103108open(DEPMOD, "/sbin/depmod -n $ver |") or die "Unable to launch depmod";
    104109while (<DEPMOD>) {
     
    119124my $modpath;
    120125
     126# Analyze each module to find its full path name
    121127foreach my $m (@allmodules) {
    122128    pb_log(1,"Analyzing $m\n");
  • branches/3.2/mindi/mindi

    r3253 r3254  
    30073007    MODULES="$MODULES `/usr/sbin/esxcfg-module -l | $AWK '{print $1}'`"
    30083008fi
    3009 LogFile "Liste of extra modules is:"
    3010 LogFile "-------------"
    3011 LogFile "$EXTRA_MODS"
    30123009LogFile "-------------"
    30133010LogFile "FORCE_MODS:"
Note: See TracChangeset for help on using the changeset viewer.