Egregoros

Signal feed

Timeline

Post

Remote status

Context

1
Because for some magical reason gnome control center depends on systemd-hostnamed to show the hostname, and also because I was kindly asked by someone who's working on getting GNOME into guix, Gardenhouse gained a new component (that im not too proud of lol)!

Gardenhostd, it's a super minimal python implementation of the systemd-hostnamed, that currently only implements SetHostname, SetStaticHostname and SetPrettyHostname which just write to/read from /etc/hostname
But it's easily extensible so if any extra interfaces are required at some point it can be added trivially

This isn't gonna get the same love as any other Gardenhouse component, I'm not gonna bother with a news page or docs, because quite frankly I think hostnamed is an awful solution to a problem that doesn't exist and it's stupid that gnome control center would hard depend on it

https://git.pinkro.se/Rose/gardenhouse/gardenhostd.git/about/

Replies

1
@karebu @rose

i mean gethostname and sethostname already existed, the things we really miss, imo, is a capability for it that isn't CAP_SYS_ADMIN, and a way to set it in disk

systemd decided to do the later thing, and throws in 5 other apis that i find... questionable

and honestly a lot of times with systemd that's always how i'm left feeling, they take a decent or good idea, but implement it in ways that are just ?????