kamilion / customizer

Ubuntu Live CD remastering tool
GNU General Public License v2.0
305 stars 95 forks source link

how to install graphics drivers #188

Open dlarue opened 6 years ago

dlarue commented 6 years ago

Does anyone know how to install Nvidia drivers? I'm looking more to get CUDA support working in a bootable ISO.

dlarue commented 6 years ago

it looks like when it builds the init ramdisk it wants to use modules for a kernel not part of the chroot. What's worst, I went and rebooted my host so that it was running the same kernel as in the chroot( linux-image-4.10.0-42-generic) and it still wants to build modules from 4.10.0-43-generic into the ramdisk.

I tried setting the KERNEL option in the customizer.conf to linux-image-4.10.0-42-generic but that had no effect.

dlarue commented 6 years ago

`vidia_304: Running module version sanity check.

depmod...

DKMS: install completed. Setting up nvidia-current (304.135-0ubuntu1) ... Processing triggers for libc-bin (2.24-9ubuntu2.2) ... Processing triggers for initramfs-tools (0.125ubuntu9) ... update-initramfs: Generating /boot/initrd.img-4.10.0-43-generic WARNING: missing /lib/modules/4.10.0-43-generic Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/4.10.0-43-generic: No such file or directory depmod: FATAL: could not search modules: No such file or directory cryptsetup: WARNING: could not determine root device from /etc/fstab depmod: WARNING: could not open /var/tmp/mkinitramfs_SSF0Qn/lib/modules/4.10.0-43-generic/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_SSF0Qn/lib/modules/4.10.0-43-generic/modules.builtin: No such file or directory `

dlarue commented 6 years ago

I got past the kernel issue by booting the host in the same updated kernel the chroot upgrades to - 4.10.0-42 and also had to rebuild the chroot filesystem since there were lingering 4.10.0-43 references.

Now my problem is that driver install sees the driver already installed in the host kernel and won't install into the chroot environment.

kamilion commented 6 years ago

Were you able to make any progress? I've gotten DKMS to build for ISOs before, but not for the nvidia stuff. I'll give it a shot with my 18.04 testing.