prime-select fails without grub

Bug #1766366 reported by OlegKrikun
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-prime (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If grub isn't installed in system prime-select fails =(

sudo prime-select nvidia
-------------------------
Info: selecting the nvidia profile
Traceback (most recent call last):
  File "/usr/bin/prime-select", line 298, in <module>
    switcher.enable_profile(arg)
  File "/usr/bin/prime-select", line 114, in enable_profile
    self._enable_nvidia()
  File "/usr/bin/prime-select", line 147, in _enable_nvidia
    self._grub_path, ['nouveau.runpm', 'video=VGA'])
  File "/usr/bin/prime-select", line 214, in _remove_boot_params
    with open(path, 'r+') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/default/grub'

Ubuntu 18.04
nvidia-prime 0.8.8

imho, prime-select should show warning about kernel options in case without grub and keep working

OlegKrikun (krikun)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-prime (Ubuntu):
status: New → Confirmed
Revision history for this message
Elvis Stansvik (elvstone) wrote :

This is a problem for us as well. We're using Docker as part of our toolchain for creating a file system for a disk image for our product, and need to be able to run "prime-select intel" during the Docker image build, at a time when grub has not been installed yet.

Revision history for this message
Vasyl (exposight) wrote :

Related GRUB interaction code was removed as part of https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1778011 fix, released in 0.8.8.1

Changed in nvidia-prime (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.