Cope with unsupported kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-script |
Fix Released
|
Unknown
|
|||
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
Trusty |
New
|
Undecided
|
Unassigned | ||
Xenial |
New
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
Livepatch now checks for the running kernel and let's the user know if it's unsupported. For example:
```
ubuntu@
2018/05/04 19:55:05 cannot use livepatch: your kernel "4.15.0-1008-kvm" is not eligible for livepatch updates
```
`ua status`, however, doesn't interpret that yet and just says that livepatch is disabled:
```
ubuntu@
esm: disabled (not available)
fips: disabled (not available)
livepatch: disabled
```
Furthermore the MOTD component says that livepatch is available for installation, likely because the status output does not say "not available":
```
* Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https:/
```
`ua enable-livepatch <foo>` also doesn't check and tries to enable it, but it eventually fails:
```
ubuntu@
Enabling Livepatch with the given token, stand by...
2018/05/04 19:57:17 cannot use livepatch: your kernel "4.15.0-1008-kvm" is not eligible for livepatch updates
```
We should:
- fix the MOTD when running an unsupported kernel. I suggest to output nothing.
- don't even try to enable livepatch if we are running an unsupported kernel
Changed in ubuntu-advantage-script: | |
status: | Unknown → New |
Changed in ubuntu-advantage-tools (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
Changed in ubuntu-advantage-tools (Ubuntu): | |
milestone: | none → ubuntu-16.04.5 |
Changed in ubuntu-advantage-script: | |
status: | New → Fix Released |
Changed in ubuntu-advantage-tools (Ubuntu): | |
assignee: | Andreas Hasenack (ahasenack) → nobody |
status: | In Progress → Triaged |
milestone: | ubuntu-16.04.5 → none |
This is fixed in eoan.