git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62966 from bjornfor/nixos-generate-config-bcache

nixos-generate-config: add support for bcache

commit734b3e7758d988b88b77fc2f3d3aed7a3d79cf2d authorEelco Dolstra <edolstra@gmail.com> dateWed 12 Jun 2019, 10:06 (7 years ago) parentca099914755811
1 file changed+5
nixos/modules/installer/tools/nixos-generate-config.pl+5
nixos/modules/installer/tools/nixos-generate-config.pl+5
@@ -258,6 +258,11 @@ foreach my $path (glob "/sys/class/{block,mmc_host}/*") {
258258 }
259259}
260260
261+# Add bcache module, if needed.
262+my @bcacheDevices = glob("/dev/bcache*");
263+if (scalar @bcacheDevices > 0) {
264+ push @initrdAvailableKernelModules, "bcache";
265+}
261266
262267my $virt = `systemd-detect-virt`;
263268chomp $virt;