git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10413 from puffnfresh/nixos/mmc_host

nixos-generate-config: look at mmc_host for device drivers

commit2568806696d8e3b1b5479bc3d819f8f280323a52 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateSat 17 Oct 2015, 03:42 (11 years ago) parent1bd49033ef956e
1 file changed+2−2
nixos/modules/installer/tools/nixos-generate-config.pl+2−2
nixos/modules/installer/tools/nixos-generate-config.pl+2−2
@@ -233,8 +233,8 @@ foreach my $path (glob "/sys/bus/usb/devices/*") {
233233}
234234
235235
236−# Add the modules for all block devices.
237−foreach my $path (glob "/sys/class/block/*") {
236+# Add the modules for all block and MMC devices.
237+foreach my $path (glob "/sys/class/{block,mmc_host}/*") {
238238 my $module;
239239 if (-e "$path/device/driver/module") {
240240 $module = basename `readlink -f $path/device/driver/module`;