cloud-init cc_ubuntu_drivers does not set up /etc/default/linux-modules-nvidia

Bug #1840080 reported by Steve Langasek on 2019-08-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Chad Smith

Bug Description

As of version 18.5-61-gb76714c3-0ubuntu1, cloud-init includes an ubuntu_drivers module which detects drivers: nvidia: license-accept: true and uses this as a key for automatically installing the nvidia drivers packages via the `ubuntu-drivers install --gpgpu` command.

However, because the ubuntu-drivers command can also be invoked manually, the invocation of this command is NOT an indication to the system that the EULA has been accepted; and in non-interactive mode, this means the nvidia kernel module does not undergo final linking at install time.

Therefore, in addition to (and prior to) calling ubuntu-drivers, we need the cloud-init module to set up latelink=true in the file /etc/default/linux-modules-nvidia on disk in order for this to work as intended.

Related branches

Joshua Powers (powersj) on 2019-08-13
Changed in cloud-init (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Chad Smith (chad.smith)
Scott Moser (smoser) wrote :

This is just a comment from a mostly uninterested third party, so take it for what you will.

It sure seems to me that it makes more sense to make 'ubuntu-drivers' take a '--accept-license' flag than to make cloud-init know some seemingly arbitrary wizardry about writing "latelink=true" to a file in /etc/default/linux-modules/nvidia.

This bug is fixed with commit 85878703 to cloud-init on branch master.
To view that commit see the following URL:

Dan Watkins (oddbloke) on 2019-08-20
Changed in cloud-init (Ubuntu):
status: Confirmed → In Progress

This bug is fixed with commit e6383719 to cloud-init on branch master.
To view that commit see the following URL:

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 19.2-21-ge6383719-0ubuntu1

cloud-init (19.2-21-ge6383719-0ubuntu1) eoan; urgency=medium

  * New upstream snapshot.
    - ubuntu-drivers: call db_x_loadtemplatefile to accept NVIDIA EULA
      (LP: #1840080)
    - Add missing #cloud-config comment on first example in documentation.
      [Florian Müller]
    - ubuntu-drivers: emit latelink=true debconf to accept nvidia eula
      (LP: #1840080)
    - DataSourceOracle: prefer DS network config over initramfs
    - format.rst: add text/jinja2 to list of content types (+ cleanups)
    - Add GitHub pull request template to point people at hacking doc
    - cloudinit/distros/parsers/sys_conf: add docstring to SysConf
    - pyflakes: remove unused variable [Joshua Powers]

 -- Chad Smith <email address hidden> Thu, 22 Aug 2019 11:15:08 -0600

Changed in cloud-init (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers