Changeset 3254 in MondoRescue
- Timestamp:
- Feb 27, 2014, 3:48:29 AM (11 years ago)
- Location:
- branches/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/MondoRescue/lib/MondoRescue/Kernel.pm
r3250 r3254 83 83 my %modlist; 84 84 my $void = ""; 85 my @alllivemodules; 85 86 my @allmodpaths; 86 87 my $modulepath = ""; … … 88 89 #print Dumper(@allmodules); 89 90 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 92 open(LSMOD, "cat /proc/modules |") or die "Unable to launch lsmod"; 93 while (<LSMOD>) { 94 next if (/^Module/); 95 ($module, $void) = split(/ /); 96 print "***$module***|***$void***\n"; 97 push @alllivemodules,$module; 98 } 99 close(LSMOD); 100 101 # If no module name list passed as parameter, then work on all modules of the system 91 102 if (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; 100 104 } 101 105 #print Dumper(@allmodules); 102 106 107 # Now computes the dependencies of each module and store them in %modlist 103 108 open(DEPMOD, "/sbin/depmod -n $ver |") or die "Unable to launch depmod"; 104 109 while (<DEPMOD>) { … … 119 124 my $modpath; 120 125 126 # Analyze each module to find its full path name 121 127 foreach my $m (@allmodules) { 122 128 pb_log(1,"Analyzing $m\n"); -
branches/3.2/mindi/mindi
r3253 r3254 3007 3007 MODULES="$MODULES `/usr/sbin/esxcfg-module -l | $AWK '{print $1}'`" 3008 3008 fi 3009 LogFile "Liste of extra modules is:"3010 LogFile "-------------"3011 LogFile "$EXTRA_MODS"3012 3009 LogFile "-------------" 3013 3010 LogFile "FORCE_MODS:"
Note:
See TracChangeset
for help on using the changeset viewer.