* Add the modules for all block devices.
svn path=/nixos/trunk/; revision=19271
This commit is contained in:
parent
bb236f99de
commit
8ebde1ea8a
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user