On Sat, Sep 12, 2026 at 12:27:36PM +0100, Thomas Dreibholz wrote:

> On Debian GNU/Hurd architectures (hurd-i386 / hurd-amd64), /etc/os-release
> correctly sets PRETTY_NAME to "Debian GNU/Hurd...", but NAME remains set to
> "Debian GNU/Linux".
> 
> Expected value:
> NAME="Debian GNU/Hurd"
> 
> Actual value:
> NAME="Debian GNU/Linux"

That's simply not possible... Both PRETTY_NAME and NAME come from the
etc/os-release template in the source code (which you can get by doing
"apt-get source base-files"), and the template reads like this:

PRETTY_NAME="#OSNAME# forky/sid"
NAME="#OSNAME#"

So, unless you changed the file by hand, or allowed a program to change the 
file,
those two fields should be the same.

Moreover, you can see how the latest version of the package was built here:

https://buildd.debian.org/status/fetch.php?pkg=base-files&arch=hurd-amd64&ver=14.2&stamp=1780222272&raw=0

Quote:

sed -e "s&#OSNAME#&Debian GNU/Hurd&g" etc/os-release > 
debian/base-files/etc/os-release

Can you "apt-get download base-files" and examine the actual .deb package 
distributed
by Debian, not the file /etc/os-release in your system?

Thanks.

Reply via email to