[Bug 1943816] [NEW] "ubuntu-drivers install" needs to be used when installing nvidia-driver if enabling "third-party packages"

jeremyszu 1943816 at bugs.launchpad.net
Thu Sep 16 09:26:06 UTC 2021


Public bug reported:

ubiquity calls
```
ubuntu-drivers install $FREEONLY $NOOEM --package-list /run/ubuntu-drivers.autoinstall
```
to generate package list during live system but "ubuntu-drivers install" not only install packages but also create some config files for switching nvidia mode (e.g. on-demand) and change the runtime config as well (e.g. modify the iniramfs).

---

In ubuntu-drivers-common, which read the "/run/ubuntu-drivers.autoinstall" to install package. It also skipping the nvidia-mode changing (made by ubuntu-drivers install).
```
$ cat ubiquity/target-config/31ubuntu_driver_packages
#!/bin/sh
set -e

# install all packages that "ubuntu-drivers autoinstall" installed into the
# live system. Ubiquity calls this with --package-list /run/ubuntu-drivers.autoinstall

PKGLIST=/run/ubuntu-drivers.autoinstall
[ -e $PKGLIST ] || exit 0

for p in `cat $PKGLIST`; do
    apt-install $p
done
```

---

We need to use a same approach to make sure the nvidia mode is same on a
same system (either all handing by ubuntu-drivers install or change the
logic to maintainer script in each package).

** Affects: oem-priority
     Importance: Critical
     Assignee: jeremyszu (os369510)
         Status: Confirmed

** Affects: ubiquity (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: ubuntu-drivers-common (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- "ubuntu-drivers install" needs to be used to install nvidia-driver if enabling "third-party packages"
+ "ubuntu-drivers install" needs to be used when installing nvidia-driver if enabling "third-party packages"

** Also affects: oem-priority
   Importance: Undecided
       Status: New

** Changed in: oem-priority
     Assignee: (unassigned) => jeremyszu (os369510)

** Changed in: oem-priority
   Importance: Undecided => Critical

** Changed in: oem-priority
       Status: New => In Progress

** Changed in: oem-priority
       Status: In Progress => Confirmed

** Also affects: ubuntu-drivers-common (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1943816

Title:
  "ubuntu-drivers install" needs to be used when installing nvidia-
  driver if enabling "third-party packages"

Status in OEM Priority Project:
  Confirmed
Status in ubiquity package in Ubuntu:
  New
Status in ubuntu-drivers-common package in Ubuntu:
  New

Bug description:
  ubiquity calls
  ```
  ubuntu-drivers install $FREEONLY $NOOEM --package-list /run/ubuntu-drivers.autoinstall
  ```
  to generate package list during live system but "ubuntu-drivers install" not only install packages but also create some config files for switching nvidia mode (e.g. on-demand) and change the runtime config as well (e.g. modify the iniramfs).

  ---

  In ubuntu-drivers-common, which read the "/run/ubuntu-drivers.autoinstall" to install package. It also skipping the nvidia-mode changing (made by ubuntu-drivers install).
  ```
  $ cat ubiquity/target-config/31ubuntu_driver_packages
  #!/bin/sh
  set -e

  # install all packages that "ubuntu-drivers autoinstall" installed into the
  # live system. Ubiquity calls this with --package-list /run/ubuntu-drivers.autoinstall

  PKGLIST=/run/ubuntu-drivers.autoinstall
  [ -e $PKGLIST ] || exit 0

  for p in `cat $PKGLIST`; do
      apt-install $p
  done
  ```

  ---

  We need to use a same approach to make sure the nvidia mode is same on
  a same system (either all handing by ubuntu-drivers install or change
  the logic to maintainer script in each package).

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1943816/+subscriptions




More information about the foundations-bugs mailing list