So, the reason this doesn't work is that in ubuntu /etc/os-release is a symlink to /usr/lib/os-release.
So even using the hostfs trick won't really work across distributions in a reliable way.
So, the reason this doesn't work is that in ubuntu /etc/os-release is a symlink to /usr/lib/ os-release.
So even using the hostfs trick won't really work across distributions in a reliable way.