Fresh install of livepatch doesn't recognize ubuntu xenial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch Client |
Fix Released
|
Critical
|
Chad Smith | ||
snap-confine |
Fix Released
|
Undecided
|
Zygmunt Krynicki |
Bug Description
A fresh install of livepatch on an updated xenial ubuntu machine doesn't recognize it and refuses to start:
Feb 23 20:01:09 node-6 /usr/bin/
Feb 23 20:01:09 node-6 snap[25852]: 2017/02/23 20:01:09 Only Ubuntu 16.04 LTS is supported, exiting.
Some debugging showed that /usr/bin/
Existing systems that upgraded to that core snap are not affected unless they reboot. If they reboot, they can "snap revert core" and reboot one more time to restore livepatch functionality by using the old core snap. Probably not a very useful workaround since the goal of livepatch is to prevent reboots, but hey :)
description: | updated |
description: | updated |
Changed in canonical-livepatch-client: | |
assignee: | nobody → Chad Smith (chad.smith) |
Changed in canonical-livepatch-client: | |
status: | Confirmed → In Progress |
information type: | Proprietary → Public |
Changed in canonical-livepatch-client: | |
status: | In Progress → Fix Committed |
Changed in snap-confine: | |
status: | In Progress → Fix Released |
Confirmed that we can't use /etc/os-release directly from a snap as it posts snap-related information only. We instead need to parse /etc/lsb-release
dash-shell.dash www.snapcraft. io/" bugs.launchpad. net/snappy/"
$ cat /etc/os-release
NAME="Ubuntu Core"
VERSION="16"
ID=ubuntu-core
PRETTY_NAME="Ubuntu Core 16"
VERSION_ID="16"
HOME_URL="http://
BUG_REPORT_URL="http://
$ cat /etc/lsb-release RELEASE= 16.04 CODENAME= xenial DESCRIPTION= "Ubuntu 16.04.1 LTS"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_