mkosi: Find hostname command on Arch Linux
authorKevin Kuehler <keur@xcf.berkeley.edu>
Thu, 31 Oct 2019 22:41:32 +0000 (15:41 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Nov 2019 09:39:00 +0000 (10:39 +0100)
commit4fefc493541e322185b0e669fb4f38a948e5cf8f
treee679f56098444206da0b7354a5c2fa7bc48355c9
parentc430e8affba4566c0d2edf0a412d3a5d6cc35d6b
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.

(cherry picked from commit b9dc511954b080d8b05a44f1758be6dbb4078852)
.mkosi/mkosi.arch