aboutsummaryrefslogtreecommitdiffstats
path: root/tests/machine-name.sh
AgeCommit message (Collapse)AuthorFilesLines
3 daysfeat(bin): udt-machine-name writes PRETTY_HOSTNAME to /etc/machine-infoDanilo M.1-0/+28
The GRUB theme titles its panel with the machine's pretty name, and on Slackware nothing writes /etc/machine-info: hostnamectl is systemd's. This sets the one key, keeping any others, and with no argument prints it. The value is double-quoted with only \ and " escaped, the escapes systemd's reader and the GRUB build's shlex agree on; control characters are refused. It needs root and is never run by install.sh, which only suggests it in the GRUB output while no name is set. tests/machine-name.sh checks the quoting round-trip against shlex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>