How to install dkms drivers into ostree?

asked 2016-12-23 22:25:07 +0000

We're trying to add nvidia gpu drivers into ostree, the drivers are expected to be built during installation time by dkms. Although the related packages include kernel headers are specified in the treefile, compilation failed during composing.

Output: Installing packages: [========================================================================================================================================================================================== ] 82%Error in GnuTLS initialization: Failed to acquire random data. grep: /proc/cpuinfo: No such file or directory awk: fatal: cannot open file `/proc/20995/status' for reading (No such file or directory)

Creating symlink /var/lib/dkms/nvidia/367.48/source -> /usr/src/nvidia-367.48

DKMS: add completed. grep: /proc/cpuinfo: No such file or directory Error! echo Your kernel headers for kernel 3.10.0-514.2.2.el7.x8664 cannot be found at /lib/modules/3.10.0-514.2.2.el7.x8664/build or /lib/modules/3.10.0-514.2.2.el7.x8664/source. grep: /proc/cpuinfo: No such file or directory Error! echo Your kernel headers for kernel 3.10.0-514.2.2.el7.x8664 cannot be found at /lib/modules/3.10.0-514.2.2.el7.x8664/build or /lib/modules/3.10.0-514.2.2.el7.x8664/source. warning: %post(nvidia-kmod-1:367.48-2.el7.x86_64) scriptlet failed, exit status 1

edit retag flag offensive close merge delete