Closed Phoul closed 7 years ago
Other methods that also fail:
sid$ cat /etc/issue Debian GNU/Linux 9
sid$ cat /etc/debian_version 9.0
sid$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Checking what is present in sources.list should work. If we encounter mixed sources, we can fail with a useful message to the user.
Mixed sources should not be encountered on a fresh install for a set-and-forget Debian Tor relay.
lsb_release -cs now displays "sid" on Sid, need to verify with test / Buster.
buster displays accurately now as well, closing!
Currently Debian releases are detected by running 'lsb_release -cs'.
On both Sid and Stretch, this results in "Stretch" being returned.