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.
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-prime in Ubuntu. https://bugs.launchpad.net/bugs/1766366 Title: prime-select fails without grub Status in nvidia-prime package in Ubuntu: Confirmed 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1766366/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

