Test-case 1 - livepatch enabled
$ canonical-livepatch status
last check: 7 seconds ago
kernel: 5.4.0-121.137-generic
server check-in: succeeded
[...]
$ apt install linux-image-5.13.0-36-generic
[...]
$ ssh olivier@localhost
[...]
0 updates can be applied immediately
Test-case 2 - livepatch disabled
```
$ canonical-livepatch status
Machine is not enabled. Please run 'sudo canonical-livepatch enable' with the token obtained from https://ubuntu.com/livepatch.
$ apt install linux-image-5.13.0-36-generic
[...]
$ ssh olivier@localhost
[...]
*** System restart required ***
```
Tested successfully on a focal amd64 VM:
Test-case 1 - livepatch enabled 137-generic 5.13.0- 36-generic
$ canonical-livepatch status
last check: 7 seconds ago
kernel: 5.4.0-121.
server check-in: succeeded
[...]
$ apt install linux-image-
[...]
$ ssh olivier@localhost
[...]
0 updates can be applied immediately
Test-case 2 - livepatch disabled
``` /ubuntu. com/livepatch. 5.13.0- 36-generic
$ canonical-livepatch status
Machine is not enabled. Please run 'sudo canonical-livepatch enable' with the token obtained from https:/
$ apt install linux-image-
[...]
$ ssh olivier@localhost
[...]
*** System restart required ***
```