about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2023-04-19 18:51:05 +0100
committerGitHub <noreply@github.com>2023-04-19 18:51:05 +0100
commit9ae46a7cf4fdd5eef5e75b9d4c4144ad878714d0 (patch)
treeb4ff09c6ee192c7660fd82b4c8d21158536fa878
parentf9c79b1eff288fd995471639b380b42beed6bb21 (diff)
parent3078cdb78027e1b84a610a9d13ec2dfa52ce3233 (diff)
Merge pull request #123357 from R-VdP/virtio_scsi_vendor
nixos/nixos-generate-config: include new device ID for virtio_scsi
-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 74972c0994bed..a082ed3450e96 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";
     }