Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Latest 'hostname' fails with syntax error (Read 268 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Latest 'hostname' fails with syntax error

The latest hostname script, that uses envfile is broken and fails with invalid syntax. Well, it's not the script itself, but envfile expects the file to contain key/value pairs, while /etc/hostname contains a single value.

Re: Latest 'hostname' fails with syntax error

Reply #1
Oh duh. Arch uses just a single value and not the key=value convention. Better follow what Arch does.

Re: Latest 'hostname' fails with syntax error

Reply #2
I'm curious; which distro doesn't? I've never seen any other variants of the hostname file...

Re: Latest 'hostname' fails with syntax error

Reply #3
I think pre-systemd Red Hat did that. Maybe some others. I'm way outdated here.

Re: Latest 'hostname' fails with syntax error

Reply #4
Should be fixed in s6-rc now. It's has the same number/version so you'll have to reinstall it from goblins. Be sure to resync the mirror (so pacman -Sy s6-rc). Not sure when the next mirror sync is, but it should update so you'll know it's the rebuilt s6-rc version.