Dear all,
we’re running an automatic CentOS 8.1 installation with configured NVIDIA CUDA 11 repository (http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64
) and the package nvidia-driver
(nvidia-driver-450.36.06-1.el8.x86_64.rpm
) to be installed.
We see the following error during kickstart installation (Performing an automated installation using Kickstart):
Installing nvidia-driver.x86_64 (508/611)
Installing nvidia-kmod-common.noarch (509/611)
The installation was stopped due to an error which occurred while running in non-interactive cmdline mode. Since there cannot be any questions in cmdline mode,
edit your kickstart file and retry installation.
The exact error message is:
Non interactive installation failed: DNF error: Error in POSTIN scriptlet in rpm package nvidia-kmod-common.
The installer will now terminate.
In /tmp/anaconda.log in the crashed installer we see:
07:07:15,589 DBG exception: running handleException
07:07:15,590 CRT exception: Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 286, in run
threading.Thread.run(self)
File "/usr/lib64/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 388, in doInstall
installation_queue.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
item.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
item.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 472, in start
self.run_task()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
self._task(*self._task_args, **self._task_kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/payload/dnfpayload.py", line 1092, in install
if errors.errorHandler.cb(exc) == errors.ERROR_RAISE:
File "/usr/lib64/python3.6/site-packages/pyanaconda/errors.py", line 329, in cb
raise NonInteractiveError("Non interactive installation failed: %s" % exn)
pyanaconda.errors.NonInteractiveError: Non interactive installation failed: DNF error: Error in POSTIN scriptlet in rpm package nvidia-kmod-common
Manual re-install in the /mnt/sysimage/
environment reveals:
[anaconda root@casc-150 ~]# chroot /mnt/sysimage/
[anaconda root@casc-150 /]# rpm --reinstall /tmp/nvidia-kmod-common-450.36.06-1.el8.noarch.rpm
warning: /tmp/nvidia-kmod-common-450.36.06-1.el8.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY
/var/tmp/rpm-tmp.jmxmLy: line 2: /etc/default/grub: No such file or directory
/etc/default/grub
is provided by grub2-tools
:
[anaconda root@casc-150 /]# rpm -qf /etc/default/grub
grub2-tools-2.02-78.el8_1.1.x86_64
grub2-tools
may not yet be installed or configured during anaconda kickstart installation and the file is still missing resulting in the error.
The solution might be to require either grub2-tools
or the /etc/default/grub
in the nvidia-kmod-common
RPM or to check for the existince of the /etc/default/grub
file in the postinst script.
Many thanks in advance!