]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
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

index ce0c1ae38ef19373b4614ce0a1f642d9dec2851e..350d7cd2b8241e588dc1d803bd6ff095ea5765bc 100644 (file)
@@ -27,11 +27,11 @@ BuildPackages=
         docbook-xsl
         elfutils
         gcc
-        gettext
         git
         gnu-efi-libs
         gnutls
         gperf
+        inetutils
         iptables
         kmod
         libcap