From 3ef956eb5077fed94aad2883811cd510449a69c3 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Fri, 16 Oct 2015 17:38:41 +1100 Subject: [PATCH] nixos-generate-config: look at mmc_host for device drivers I needed to add sdhci_acpi and mmc_block to my initrd modules in order to boot my Chromebook. Looking under /sys/class/mmc_host/*/device/driver/module will give us the sdhci_acpi dependency. --- nixos/modules/installer/tools/nixos-generate-config.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 19656c9b9eae..c590c4cde3f0 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -233,8 +233,8 @@ foreach my $path (glob "/sys/bus/usb/devices/*") { } -# Add the modules for all block devices. -foreach my $path (glob "/sys/class/block/*") { +# Add the modules for all block and MMC devices. +foreach my $path (glob "/sys/class/{block,mmc_host}/*") { my $module; if (-e "$path/device/driver/module") { $module = basename `readlink -f $path/device/driver/module`;