git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit3ef956eb5077fed94aad2883811cd510449a69c3 authorBrian McKenna <brian@brianmckenna.org> dateFri 16 Oct 2015, 17:38 (11 years ago) parenta7f09b2
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`;