Comment 5 for bug 1667470

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

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