Am I missing something or should hostnamectl not have a --user mode similar to systemctl? (It doesn’t currently.)
@paul I’m thinking for inside a container that has its own /etc/hostname…
@paul Indeed. Thankfully I only need to read it, not set it. My intuition was that hostnamectl would support that.