[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Would be possible to have a ".treeinfo" file added to the installers' page?



On Fri, Dec 07, 2018 at 10:45:31AM +0100, Fabiano Fidêncio wrote:
> Howdy!
> 
> Firstly, sorry if I'm sending the message to the wrong mailing list.
> If that's the case, please, point me to the right one.
> 
> Although the subject says it all, let me explain the background of the
> change so you all can get the idea of why it'd help a few projects
> and/or even come up with a better solution than adding a  ".treeinfo"
> file.
> 
> I'm one of the maintainers of libosinfo[0], which is a project that,
> basically, keeps info about OSes as such: the hardware they support,
> the location for downloading ISOs, the location of online installation
> trees, the minimum/recommended/maximum resources for an OS, scripts
> for automating "JEOS"/"Desktop" installations and so on.
> 
> One of the APIs provided by libosinfo is to guess an OS from its
> online installation tree and it's easily done by a treeinfo file like
> the ones that can seen here[1], here[2] and here[3]. For the Debian
> case however, as the ".treeinfo" file is not used, we're struggling
> about having a reliable way to guess the OS from its tree because we
> didn't find a specific file that we could try to inspect in order to
> decide whether the installation tree is for debian7, debian8, debian9,
> debian-testing ...

Does this work for you?

on Debian 9:

$ 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/";

and on Debian unstable:

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux buster/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";

Attachment: signature.asc
Description: PGP signature


Reply to: