summary refs log tree commit diff
path: root/nixos/modules/installer/tools
diff options
context:
space:
mode:
authorR-VdP <141248+R-VdP@users.noreply.github.com>2021-05-17 14:11:37 +0200
committerLuke Granger-Brown <git@lukegb.com>2023-04-18 18:05:53 +0000
commit3078cdb78027e1b84a610a9d13ec2dfa52ce3233 (patch)
tree2dc594f2696acc80c62eebb08829d10abadd29ec /nixos/modules/installer/tools
parent7d9a498788cfbbb793bcacb8eb894a7bc44ceb92 (diff)
downloadnixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.tar
nixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.tar.gz
nixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.tar.bz2
nixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.tar.lz
nixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.tar.xz
nixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.tar.zst
nixpkgs-3078cdb78027e1b84a610a9d13ec2dfa52ce3233.zip
nixos/nixos-generate-config: include new device ID for virtio_scsi
Device IDs found here:
https://devicehunt.com/view/type/pci/vendor/1AF4/device/1048
Diffstat (limited to 'nixos/modules/installer/tools')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index 74972c0994b..a082ed3450e 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -200,7 +200,7 @@ sub pciCheck {
     }
 
     # In case this is a virtio scsi device, we need to explicitly make this available.
-    if ($vendor eq "0x1af4" && $device eq "0x1004") {
+    if ($vendor eq "0x1af4" && ($device eq "0x1004" || $device eq "0x1048") ) {
         push @initrdAvailableKernelModules, "virtio_scsi";
     }