summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-17 20:40:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-17 20:40:03 +0000
commite863a16c5313fa6711ca3b48d5f17dc4d5d4a8c0 (patch)
tree01a22414040f4ff3494a591f722c54458d837ab0 /perl-install
parentf5a429dfab1af81bd8d6989825383cb8d94d7fc9 (diff)
downloaddrakx-backup-do-not-use-e863a16c5313fa6711ca3b48d5f17dc4d5d4a8c0.tar
drakx-backup-do-not-use-e863a16c5313fa6711ca3b48d5f17dc4d5d4a8c0.tar.gz
drakx-backup-do-not-use-e863a16c5313fa6711ca3b48d5f17dc4d5d4a8c0.tar.bz2
drakx-backup-do-not-use-e863a16c5313fa6711ca3b48d5f17dc4d5d4a8c0.tar.xz
drakx-backup-do-not-use-e863a16c5313fa6711ca3b48d5f17dc4d5d4a8c0.zip
give ability to tell in which list_modules category is a module
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index caedbcdf3..333ff3525 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -625,6 +625,22 @@ sub updateModulesFromFloppy {
run_program::run("cd /floppy/$kernel_version ; find -type f | cpio -pdu $::prefix/lib/modules/$kernel_version");
run_program::rooted($::prefix, 'depmod', '-a', '-F', "/boot/System.map-$kernel_version", $kernel_version);
}
+
+ my $category;
+ foreach (cat_('/floppy/to_load')) {
+ chomp;
+ if (/^#/) {
+ ($category) = $1 if /\[list_modules: (.*?)\]/;
+ } elsif ($category) {
+ log::l("adding $_ to $category\n");
+ my $r = \%list_modules::l;
+ $r = $r->{$_} foreach split('/', $category);
+ push @$r, $_;
+
+ $category = '';
+ }
+ }
+
fs::umount("/floppy");
}