New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

needrestart reports 'Failed to retrieve available kernel versions.' #1442

Open
adrelanos opened this Issue Nov 20, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@adrelanos
Member

adrelanos commented Nov 20, 2015

(To install needrestart: sudo apt-get install needrestart)

sudo needrestart contains the output.

Failed to retrieve available kernel versions.

This is because no kernel is installed within Qubes templates.

That could be fixed. /etc/needrestart/conf.d/50_qubes.conf

$nrconf{kernelhints} = '0';

This 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?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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...

Member

marmarek commented Nov 20, 2015

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...

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

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).

Member

adrelanos commented Nov 20, 2015

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).

@marmarek marmarek added this to the Far in the future milestone Jan 6, 2016

andrewdavidwong added a commit that referenced this issue Jun 7, 2016

@rootkovska rootkovska removed the C: label Jun 30, 2016

@marmarek marmarek added the C: Debian label Mar 31, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment