RHEL 8.8 Creating Iso with image-builder failed due to issue in cuda-toolkit and cuda-drivers package

I am trying to create a RHEL 8.8 Image which have gpu drivers included, I am using ImageBuilder tool provided by Redhat.
[[packages]]
name = “kmod-nvidia-525.147.05-4.18.0-477.27.1”

[[packages]]
name = “nvidia-driver”

[[packages]]
name = “nvidia-driver-NVML”

[[packages]]
name = “nvidia-driver-NvFBCOpenGL”

[[packages]]
name = “nvidia-driver-cuda”

[[packages]]
name = “nvidia-driver-cuda-libs”

[[packages]]
name = “nvidia-driver-devel”

[[packages]]
name = “nvidia-driver-libs”

[[packages]]
name = “nvidia-kmod-common”

[[packages]]
name = “nvidia-libXNVCtrl”

[[packages]]
name = “nvidia-libXNVCtrl-devel”

[[packages]]
name = “nvidia-modprobe”

[[packages]]
name = “nvidia-persistenced”

[[packages]]
name = “nvidia-settings”

[[packages]]
name = “nvidia-xconfig”

[[packages]]
name = “cuda-toolkit”

[[packages]]
name = “cuda-drivers”

[/usr/lib/tmpfiles.d/journal-nocow.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
Failed to create file /sys/fs/selinux/checkreqprot: Read-only file system

if I remove cuda-drivers and cuda-toolkit build will succeed . I saw one github issue having similar error
after manifest creation, rpm install seems to bomb when a package requires /bin/sh · Issue #3197 · osbuild/osbuild-composer · GitHub

They contain a %%pretrans section which is empty. Still, that creates a dependency on /bin/sh to execute the empty section. However, in an empty build root it does not exist. Removing the %%pretrans and rebuilding the package makes the osbuild-compose blueprint build succeed.

do cuda-drivers or cuda-toolkit also have jdk spec files whhich have an empty %%pretrans section, meaning there isn’t anything to be run in it, but that doesn’t mean rpm would not try to process that section when starting the install transaction ;( This is because in an empty build root there is absolutely nothing yet installed.
package version :
cuda-drivers-550.54.15-1.x86_64
cuda-toolkit-12.4.0-1.x86_64

The %pretrans Scriptlet

Note that the %pretrans scriptlet will, in the particular case of system installation, run before anything at all has been installed. This implies that it cannot have any dependencies at all. For this reason, %pretrans is best avoided, but if used it MUST (by necessity) be written in Lua