[systemd-devel] Configuring systemd to build systemd-tempfiles in Yocto

Dave Glenton Dave.Glenton at amulethotkey.com
Mon May 23 13:24:44 UTC 2022


Sorry if this question is covered elsewhere, but a couple of days of googling and experimentation has failed to find a solution and hopefully someone in this list can give me some pointers.

I am trying to configure an Open Embedded Yocto Linux build based round systemd version 249.7, however the resulting image is missing a number of binaries in the /usr/bin directory, specifically systemd-tmpfiles which is present on my Ubuntu 20.04 build machine.

I believe there should be parameters you can pass at build to configure what is generated, but I am struggling to find any documentation as to what they are and how you pass them to Meson / Ninja.

If I run systemd --version I get the following on Ubuntu

systemd --version
systemd 245 (245.4-4ubuntu3.15)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS
+ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2
default-hierarchy=hybrid

on this on Yocto

systemd 249 (249.7+)
-PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS
-OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD
-LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2
-LZ4 -XZ -ZLIB +ZSTD +XKBCOMMON +UTMP +SYSVINIT
default-hierarchy=hybrid

$ ls -la /usr/bin | grep systemd
10-rwxr-xr-x  1 root root       14384 Mar  9  2018 psplash-systemd
11-rwxr-xr-x  1 root root       18552 Mar  9  2018 systemd-cat
12-rwxr-xr-x  1 root root       18656 Mar  9  2018 systemd-cgls
13-rwxr-xr-x  1 root root       39048 Mar  9  2018 systemd-cgtop
14-rwxr-xr-x  1 root root       26744 Mar  9  2018 systemd-delta
15-rwxr-xr-x  1 root root       18552 Mar  9  2018 systemd-detect-virt
16-rwxr-xr-x  1 root root       35112 Mar  9  2018 systemd-dissect
17-rwxr-xr-x  1 root root       22640 Mar  9  2018 systemd-id128
18-rwxr-xr-x  1 root root       51544 Mar  9  2018 systemd-mount
19-rwxr-xr-x  1 root root       18544 Mar  9  2018 systemd-path
20lrwxrwxrwx  1 root root          10 Mar  9  2018 systemd-resolve -> resolvectl
21-rwxr-xr-x  1 root root       59712 Mar  9  2018 systemd-run
22-rwxr-xr-x  1 root root       26752 Mar  9  2018 systemd-socket-activate
23-rwxr-xr-x  1 root root       18560 Mar  9  2018 systemd-stdio-bridge
24lrwxrwxrwx  1 root root          13 Mar  9  2018 systemd-umount -> systemd-mount

Regards

Dave Glenton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220523/23423e15/attachment.htm>


More information about the systemd-devel mailing list