]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: Find hostname command on Arch Linux
authorKevin Kuehler <keur@xcf.berkeley.edu>
Thu, 31 Oct 2019 22:41:32 +0000 (15:41 -0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2019 12:34:41 +0000 (13:34 +0100)
commitb9dc511954b080d8b05a44f1758be6dbb4078852
tree4b7c7950e94a57bcac79940dd6ff1388b13df74f
parentf14c9bafa8b8cba89cabc22a10b1200eec9eb682
mkosi: Find hostname command on Arch Linux

exec-specifier.service: Executing: /usr/bin/sh -c 'test mkosi-7d5e81c7b81c42338d060a6b98edd44a = $(hostname)'
/usr/bin/sh: hostname: command not found
/usr/bin/sh: line 0: test: mkosi-7d5e81c7b81c42338d060a6b98edd44a: unary operator expected
Received SIGCHLD from PID 7389 (sh).
Child 7389 (sh) died (code=exited, status=2/INVALIDARGUMENT)

gettext provides the hostname binary, but puts it in
/usr/lib/gettext/hostname, which is not part of the default $PATH. Using
inetutils instead puts the binary in /usr/bin/hostname.
.mkosi/mkosi.arch