* Add the modules for all block devices.

svn path=/nixos/trunk/; revision=19271
This commit is contained in:
Eelco Dolstra 2010-01-06 20:09:53 +00:00
parent bb236f99de
commit 8ebde1ea8a

View File

@ -176,6 +176,19 @@ foreach my $path (glob "/sys/bus/usb/devices/*") {
}
# Add the modules for all block devices.
foreach my $path (glob "/sys/class/block/*") {
my $module;
print STDERR "$path\n";
if (-e "$path/device/driver/module") {
$module = basename `readlink -f $path/device/driver/module`;
chomp $module;
push @initrdKernelModules, $module;
}
}
# Generate the configuration file.
sub removeDups {