1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-12 21:57:27 +03:00

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)
This commit is contained in:
Kevin Kuehler 2019-10-31 15:41:32 -07:00 committed by Zbigniew Jędrzejewski-Szmek
parent c430e8affb
commit 4fefc49354

View File

@ -27,11 +27,11 @@ BuildPackages=
docbook-xsl
elfutils
gcc
gettext
git
gnu-efi-libs
gnutls
gperf
inetutils
iptables
kmod
libcap