diff --git a/internal/distro/rhel9/distro.go b/internal/distro/rhel9/distro.go index e4bfdc0c7..95f033e0d 100644 --- a/internal/distro/rhel9/distro.go +++ b/internal/distro/rhel9/distro.go @@ -1041,6 +1041,13 @@ func newDistro(distroName string) distro.Distro { osbuild.NewModprobeConfigCmdBlacklist("nouveau"), }, }, + // COMPOSER-1807 + { + Filename: "blacklist-amdgpu.conf", + Commands: osbuild.ModprobeConfigCmdList{ + osbuild.NewModprobeConfigCmdBlacklist("amdgpu"), + }, + }, }, DracutConf: []*osbuild.DracutConfStageOptions{ { diff --git a/test/data/manifests/centos_9-aarch64-ami-boot.json b/test/data/manifests/centos_9-aarch64-ami-boot.json index b9235572a..88e32efa2 100644 --- a/test/data/manifests/centos_9-aarch64-ami-boot.json +++ b/test/data/manifests/centos_9-aarch64-ami-boot.json @@ -5048,6 +5048,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/centos_9-x86_64-ami-boot.json b/test/data/manifests/centos_9-x86_64-ami-boot.json index bfd3268fe..d52808f1a 100644 --- a/test/data/manifests/centos_9-x86_64-ami-boot.json +++ b/test/data/manifests/centos_9-x86_64-ami-boot.json @@ -4888,6 +4888,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_90-aarch64-ami-boot.json b/test/data/manifests/rhel_90-aarch64-ami-boot.json index 24699e720..e14bad7da 100644 --- a/test/data/manifests/rhel_90-aarch64-ami-boot.json +++ b/test/data/manifests/rhel_90-aarch64-ami-boot.json @@ -2079,6 +2079,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_90-aarch64-ec2-boot.json b/test/data/manifests/rhel_90-aarch64-ec2-boot.json index e4ab9f00f..2ed8ded4a 100644 --- a/test/data/manifests/rhel_90-aarch64-ec2-boot.json +++ b/test/data/manifests/rhel_90-aarch64-ec2-boot.json @@ -2098,6 +2098,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_90-x86_64-ami-boot.json b/test/data/manifests/rhel_90-x86_64-ami-boot.json index f47ecd0f9..ee32aadb8 100644 --- a/test/data/manifests/rhel_90-x86_64-ami-boot.json +++ b/test/data/manifests/rhel_90-x86_64-ami-boot.json @@ -2025,6 +2025,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_90-x86_64-ec2-boot.json b/test/data/manifests/rhel_90-x86_64-ec2-boot.json index 2098ffa0a..8d47a773c 100644 --- a/test/data/manifests/rhel_90-x86_64-ec2-boot.json +++ b/test/data/manifests/rhel_90-x86_64-ec2-boot.json @@ -2046,6 +2046,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_90-x86_64-ec2_ha-boot.json b/test/data/manifests/rhel_90-x86_64-ec2_ha-boot.json index 4d7025886..64f262dec 100644 --- a/test/data/manifests/rhel_90-x86_64-ec2_ha-boot.json +++ b/test/data/manifests/rhel_90-x86_64-ec2_ha-boot.json @@ -2618,6 +2618,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_90-x86_64-ec2_sap-boot.json b/test/data/manifests/rhel_90-x86_64-ec2_sap-boot.json index e5ddbe5a1..3b500dfd2 100644 --- a/test/data/manifests/rhel_90-x86_64-ec2_sap-boot.json +++ b/test/data/manifests/rhel_90-x86_64-ec2_sap-boot.json @@ -3484,6 +3484,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_91-aarch64-ami-boot.json b/test/data/manifests/rhel_91-aarch64-ami-boot.json index 0dae73cff..8f68face8 100644 --- a/test/data/manifests/rhel_91-aarch64-ami-boot.json +++ b/test/data/manifests/rhel_91-aarch64-ami-boot.json @@ -5218,6 +5218,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_91-aarch64-ec2-boot.json b/test/data/manifests/rhel_91-aarch64-ec2-boot.json index a41d9dd22..5dd6068f9 100644 --- a/test/data/manifests/rhel_91-aarch64-ec2-boot.json +++ b/test/data/manifests/rhel_91-aarch64-ec2-boot.json @@ -5267,6 +5267,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_91-x86_64-ami-boot.json b/test/data/manifests/rhel_91-x86_64-ami-boot.json index ab025d36f..ac81d1fe6 100644 --- a/test/data/manifests/rhel_91-x86_64-ami-boot.json +++ b/test/data/manifests/rhel_91-x86_64-ami-boot.json @@ -5050,6 +5050,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_91-x86_64-ec2-boot.json b/test/data/manifests/rhel_91-x86_64-ec2-boot.json index 3a756a4c5..8b0782c8f 100644 --- a/test/data/manifests/rhel_91-x86_64-ec2-boot.json +++ b/test/data/manifests/rhel_91-x86_64-ec2-boot.json @@ -5101,6 +5101,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_91-x86_64-ec2_ha-boot.json b/test/data/manifests/rhel_91-x86_64-ec2_ha-boot.json index 4144a520b..6d310e475 100644 --- a/test/data/manifests/rhel_91-x86_64-ec2_ha-boot.json +++ b/test/data/manifests/rhel_91-x86_64-ec2_ha-boot.json @@ -6545,6 +6545,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_91-x86_64-ec2_sap-boot.json b/test/data/manifests/rhel_91-x86_64-ec2_sap-boot.json index 4c7812fdd..aff84ece7 100644 --- a/test/data/manifests/rhel_91-x86_64-ec2_sap-boot.json +++ b/test/data/manifests/rhel_91-x86_64-ec2_sap-boot.json @@ -9135,6 +9135,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_92-aarch64-ami-boot.json b/test/data/manifests/rhel_92-aarch64-ami-boot.json index 04cb1643b..571622c02 100644 --- a/test/data/manifests/rhel_92-aarch64-ami-boot.json +++ b/test/data/manifests/rhel_92-aarch64-ami-boot.json @@ -5218,6 +5218,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_92-aarch64-ec2-boot.json b/test/data/manifests/rhel_92-aarch64-ec2-boot.json index f8540e56c..f55be299d 100644 --- a/test/data/manifests/rhel_92-aarch64-ec2-boot.json +++ b/test/data/manifests/rhel_92-aarch64-ec2-boot.json @@ -5267,6 +5267,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_92-x86_64-ami-boot.json b/test/data/manifests/rhel_92-x86_64-ami-boot.json index 421d6fb90..1d9632dc6 100644 --- a/test/data/manifests/rhel_92-x86_64-ami-boot.json +++ b/test/data/manifests/rhel_92-x86_64-ami-boot.json @@ -5050,6 +5050,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_92-x86_64-ec2-boot.json b/test/data/manifests/rhel_92-x86_64-ec2-boot.json index 4992ae80c..368b0c5f3 100644 --- a/test/data/manifests/rhel_92-x86_64-ec2-boot.json +++ b/test/data/manifests/rhel_92-x86_64-ec2-boot.json @@ -5101,6 +5101,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_92-x86_64-ec2_ha-boot.json b/test/data/manifests/rhel_92-x86_64-ec2_ha-boot.json index 84e49e454..522cafeae 100644 --- a/test/data/manifests/rhel_92-x86_64-ec2_ha-boot.json +++ b/test/data/manifests/rhel_92-x86_64-ec2_ha-boot.json @@ -6545,6 +6545,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": { diff --git a/test/data/manifests/rhel_92-x86_64-ec2_sap-boot.json b/test/data/manifests/rhel_92-x86_64-ec2_sap-boot.json index cae3ca0a4..16630f06a 100644 --- a/test/data/manifests/rhel_92-x86_64-ec2_sap-boot.json +++ b/test/data/manifests/rhel_92-x86_64-ec2_sap-boot.json @@ -9135,6 +9135,18 @@ ] } }, + { + "type": "org.osbuild.modprobe", + "options": { + "filename": "blacklist-amdgpu.conf", + "commands": [ + { + "command": "blacklist", + "modulename": "amdgpu" + } + ] + } + }, { "type": "org.osbuild.dracut.conf", "options": {