Ubuntu – Provide driver on removable media during installation

driversinstallationubiquity

During installation if the installer is unable to detect any disks it will present you a list of all the available drivers to select or you can select none of these. Once you select that it gives you a couple of options. One of them is to scan removable media for a driver.

Does anyone know what it's looking for? I've tried just putting the proper .ko file on a floppy in / as well as putting it in /lib/modules/<kernel version>/kernel/extras/ and a few other places but in the end I have to manually mount the removable media and load the module using insmod.

Best Answer

If you're using the desktop CD installer, you can load additional drivers programmatically by following the instructions here.

If you're using the alternate CD installer, you can accomplish this by creating a driver injection disk. First create a USB disk with a label of OEMDRV, then put a Debian package on it containing your kernel module. Finally, preseed driver-injection-disk/load to true and start the install.

The definitive reference for this format is the hw-detect code, bzr branch lp:hw-detect , specifically driver-injection-disk.sh

Alternatively, if you want a quick and dirty solution and assuming this is a disk driver, put the kernel module in one of the following directories:

  • /lib/modules/*/kernel/drivers/ide
  • /lib/modules/*/kernel/drivers/scsi
  • /lib/modules/*/kernel/drivers/block