mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Merge pull request #62966 from bjornfor/nixos-generate-config-bcache
nixos-generate-config: add support for bcache
This commit is contained in:
commit
734b3e7758
@ -258,6 +258,11 @@ foreach my $path (glob "/sys/class/{block,mmc_host}/*") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Add bcache module, if needed.
|
||||||
|
my @bcacheDevices = glob("/dev/bcache*");
|
||||||
|
if (scalar @bcacheDevices > 0) {
|
||||||
|
push @initrdAvailableKernelModules, "bcache";
|
||||||
|
}
|
||||||
|
|
||||||
my $virt = `systemd-detect-virt`;
|
my $virt = `systemd-detect-virt`;
|
||||||
chomp $virt;
|
chomp $virt;
|
||||||
|
Loading…
Reference in New Issue
Block a user