We should fix this in snap-confine by bind mounting distro's /etc/os-release (after resolving the symlink) on top of /etc/os-release in the core snap.
/home/zyga # mount --bind /var/lib/snapd/hostfs/usr/lib/os-release /etc/os-release /home/zyga # cat /etc/os-release NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.2 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial
We should fix this in snap-confine by bind mounting distro's /etc/os-release (after resolving the symlink) on top of /etc/os-release in the core snap.
/home/zyga # mount --bind /var/lib/ snapd/hostfs/ usr/lib/ os-release /etc/os-release www.ubuntu. com/" help.ubuntu. com/" bugs.launchpad. net/ubuntu/" CODENAME= xenial CODENAME= xenial
/home/zyga # cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://
SUPPORT_URL="http://
BUG_REPORT_URL="http://
VERSION_
UBUNTU_