Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upneedrestart reports 'Failed to retrieve available kernel versions.' #1442
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 20, 2015
Member
On R3.1, the VM may have a control over its kernel (PV GRUB #1354 ), so a standard way to check the kernel may work in this case.
I know some perl basics, can look at it. In a few days...
|
On R3.1, the VM may have a control over its kernel (PV GRUB #1354 ), so a standard way to check the kernel may work in this case. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 20, 2015
Member
Okay.
Please consider merging https://github.com/marmarek/qubes-core-agent-linux/pull/51 before you start working on this, because then you could append to misc/50_qubes.conf (/etc/needrestart/conf.d/50_qubes.conf).
|
Okay. Please consider merging https://github.com/marmarek/qubes-core-agent-linux/pull/51 before you start working on this, because then you could append to |
adrelanos commentedNov 20, 2015
(To install needrestart:
sudo apt-get install needrestart)sudo needrestartcontains the output.This is because no kernel is installed within Qubes templates.
That could be fixed.
/etc/needrestart/conf.d/50_qubes.confThis alone is not an ideal solution. It would cause less confusion for most users, but falsely inform users that are installing custom kernels inside their templates, that no new kernel is available if there is.
An ideal solution would be some if/else code within the config file. I guess it should be possible. As I understand, needrestart config files are essentially perl files being evaluated. So "if using custom kernel, do nothing, otherwise
$nrconf{kernelhints} = '0';could do.@marmarek do you or anyone speak perl?
@liske (needrestart developer) any idea?