summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
Commit message (Collapse)AuthorAgeFilesLines
* systemd: fix wrong nobody-group assignmentPiotr Łobacz2023-03-171-1/+1
| | | | | | | | | | | | | | | The generated /etc/group file had a wrong group name for nobody-group which was nobody with same id as nogroup groupd. This was leading to duplcate groups, with same ids and different names. More can be read on this link: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11766 (From OE-Core rev: d69fccf2e5d108dd7c6059310924588d36a45865) Signed-off-by: Piotr Łobacz <p.lobacz@welotec.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "systemd-systemctl: Create machine-id with "uninitialized" text in it"Chen Qi2023-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 33d9b3a8ed186c2d212acb83f715367912010e7f. The reverted patch was forcing systemd to do preset-all at boot time (first boot) in a function that simuilates 'preset-all' at rootfs time. This is not right. To force a first boot, just do not run this function, as said in the comment: """ # If we populate the systemd links we also create /etc/machine-id, which # allows systemd to boot with the filesystem read-only before generating # a real value and then committing it back. # # For the stateless configuration, where /etc is generated at runtime # (for example on a tmpfs), this script shouldn't run at all and we # allow systemd to completely populate /etc. """ For example, removing 'systemd_preset_all;' from IMAGE_PREPROCESS_COMMAND in some distro conf file will achieve the same effect of the original patch. (From OE-Core rev: a2ac09c32acfc2e076a7778447919d97553d38a2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Fix musl fix patchKhem Raj2023-03-141-3/+2
| | | | | | | | | | | | | Current patch with fail when stdint.h is in include path before this typedef which can also happen with re-includes. Therefore shunt that by defining __DEFINED_wchar_t which helps musl builds of systemd-boot recipe (From OE-Core rev: 7fce95e47601f766b384bc0d5805986ad933681f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: update 252.5 -> 253.1Alexander Kanavin2023-03-115-3/+88
| | | | | | | | | | | | Add a musl compatibility patch to systemd-boot. Backport a patch to address systemctl fails on 32 bit targets. (From OE-Core rev: d92f0f3597acba6cfc55a8cf2e7249efc6573c6a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add ignore for CVE-2022-4415Ross Burton2023-03-111-0/+3
| | | | | | | | | | The relevant fix was also backported to 252.4. (From OE-Core rev: e7992076102de43b2201786c2da59455c54aaef4) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-systemctl: Create machine-id with "uninitialized" text in itMarek Vasut2023-02-281-1/+1
| | | | | | | | | | | Instead of creating empty /etc/machine-id file using touch, write text "uninitialized" into it. Systemd requires "uninitialized" in the /etc/machine-id file to trigger systemd-firstboot . (From OE-Core rev: 263c852269027b1bd311e116021ac49d9001e1b0) Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* VOLATILE_TMP_DIR: addTrevor Woerner2023-02-281-0/+7
| | | | | | | | | | | | | Provide a mechanism to allow users to choose whether the /tmp directory is on persistent storage (non-volatile) or a RAM-based tmpfs (volatile). The default is volatile. Works for both sysvinit-based and systemd-based systems. (From OE-Core rev: 8b76c0637eaeaf5bd5e696680cd74b7a642f4157) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add group sgx to udev packagePeter Marko2023-02-261-1/+1
| | | | | | | | | | | | | | | | | | | >From NEWS for v250: * Device nodes for the Software Guard eXtension enclaves (sgx_vepc) are now also owned by the system group "sgx". >From NEWS for v248: * Intel SGX enclave device nodes (which expose a security feature of newer Intel CPUs) will now be owned by a new system group "sgx". Fixes following journal error entry during startup: /lib/udev/rules.d/50-udev-default.rules:43 Unknown group 'sgx', ignoring This is seen already on kirkstone. (From OE-Core rev: bab455cd9b1b82e778f8523a767eb281edf6689e) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add user for systemd-oomd if enabledLuca Boccassi2023-02-261-0/+1
| | | | | | | | | | | | | | systemd-oomd.service has: User=systemd-oom So we need to create a static user for it, if its packageconfig is enabled. (From OE-Core rev: 1586edc919326cdbb412feafb9cde2cb15e419cb) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add PACKAGECONFIG for pstoreJan Luebbe2023-02-091-0/+1
| | | | | | | | | | | | pstore is used to collect crash logs in the journal after a crash. As it needs a correctly configured kernel, it's not always enabled. Add a PACKAGECONFIG to enable it when needed. (From OE-Core rev: 350d8677c4f7b6ff7604bff6b2f4ab7f1b9ec422) Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: update 252.4 -> 252.5Alexander Kanavin2023-02-093-1/+1
| | | | | | | | (From OE-Core rev: b44b7a0d7baa3ed5c71d2f873aa095cff6234c6b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Add another fix for using XSI strerror_rKhem Raj2023-01-262-0/+43
| | | | | | | | | | This makes systemd continue to work on musl (From OE-Core rev: c76dae4d937728e8687c03b58ec720a2d3d496ed) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add PACKAGECONFIG to select default compression formatLuca Boccassi2023-01-241-0/+6
| | | | | | | | | | | | | | If multiple compression libraries are enabled, the format to use for compression is chosen implicitly, so if you want to compress with e.g. lz4 you cannot enable zstd, so you cannot read zstd-compressed journal files. This PACKAGECONFIGs allow to enable all compression formats for reading, but to choose a specific one for writing. (From OE-Core rev: bec1e2628e7accf2eff07193ae5ea14eb443ae37) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: ship pcrphase/measure tools and units in systemd-extra-utilsLuca Boccassi2023-01-121-0/+8
| | | | | | | | | | New tooling related to signed TPM policies introduced in v252 (From OE-Core rev: 76f1e8c9f8306ed0f0db42dd7a3c7efce82108ce) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: refresh patch to remove fuzz introduced by rebase on v252Luca Boccassi2023-01-121-2/+2
| | | | | | | | (From OE-Core rev: 603f2768c00b8abd27056379fd941b99f88c4aab) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Fix 252 release build on muslKhem Raj2022-12-2814-376/+148
| | | | | | | | (From OE-Core rev: 38256b5d8caa54024df9df908cc7fa49ca5fac39) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: update 251.8 -> 252.4Alexander Kanavin2022-12-283-3/+5
| | | | | | | (From OE-Core rev: 42442730a8acc78c2bffec7b78f5d06cabeca3bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Make importd depend on glib-2.0 againMarek Vasut2022-12-181-1/+1
| | | | | | | | | It seems importd still requires glib-2.0, add the missing dependency. (From OE-Core rev: 224cd8ca540a2c9d7d407a44dccd63f808c1ea15) Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add group render to udev packagePeter Marko2022-11-151-0/+2
| | | | | | | | | | | | | | | | | | From NEWS for v236: * The "uaccess" udev tag has been dropped from /dev/kvm and /dev/dri/renderD*. These devices now have the 0666 permissions by default (but this may be changed at build-time). /dev/dri/renderD* will now be owned by the "render" group along with /dev/kfd. Without the group systemd-udevd startup logs: /lib/udev/rules.d/50-udev-default.rules:39 Unknown group 'render', ignoring /lib/udev/rules.d/50-udev-default.rules:40 Unknown group 'render', ignoring (From OE-Core rev: 84efd72d48616405dbe4d73ec95917077144ed09) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: update 251.4 -> 251.8Alexander Kanavin2022-11-113-1/+1
| | | | | | | | | | | This resolves systemd-boot fails with latest meson, while systemd -> 252 is being prepared. (From OE-Core rev: 1d96287906f66ad28e50c9686eaffc2fb7b874fe) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Consider PACKAGECONFIG in RRECOMMENDSNiko Mauno2022-11-071-2/+2
| | | | | | | | | | | | | Since RRECOMMENDS declaration implictly induces building the recipes that provide the runtime recommended packages, conditionalize adding such values according to associated PACKAGECONFIG settings in order to avoid redundant building. (From OE-Core rev: a1989add927f7805378fe4d5afbde780b747ba77) Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add systemd-creds and systemd-cryptenroll to systemd-extra-utilsLuca Boccassi2022-10-261-0/+2
| | | | | | | | | | | | ERROR: systemd-1_251.4-r0 do_package: QA Issue: systemd: Files/directories were installed but not shipped in any package: /usr/bin/systemd-creds /usr/bin/systemd-cryptenroll (From OE-Core rev: b3763dd26d324a7ce575586f306b8aec4b1103b3) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-systemctl: Fix WantedBy processingBob Henz2022-09-281-0/+11
| | | | | | | | | | | An empty string assignment to WantedBy should clear all prior WantedBy settings. This matches behavior of the current systemd implementation. (From OE-Core rev: 8ede0083c28fadf1e83c9256618190b931edd306) Signed-off-by: Bob Henz <robert_henz@jabil.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Fix unwritable /var/lock when no sysvinit handlingniko.mauno@vaisala.com2022-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 8089cefed8e83c0348037768c292058f1bcbbbe5 ("systemd: Add PACKAGECONFIG for sysvinit") decoupled enabling of systemd's sysvinit handling behavior behind a distinct PACKAGECONFIG feature. This new option affects among other things the installing of tmpfiles.d/legacy.conf, which is responsible for creating /run/lock directory, which is pointed to by /var/lock symlink provided by base-files package. In case the option is not enabled, then base-files provided /var/lock is a dangling symlink on resulting rootfs, causing problems with certain Linux userspace components that rely on existence of writable /var/lock directory. As an example: # fw_printenv Error opening lock file /var/lock/fw_printenv.lock Since Filesystem Hierarchy Standard Version 3.0 states in https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s09.html that Lock files should be stored within the /var/lock directory structure. Ensure the /run/lock directory is always created, so that lock files can be stored under /var/lock also when 'sysvinit' handling is disabled. (From OE-Core rev: 85e5ee2c35cf5778c3aefda45f526e8f6a511131) Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Add 'no-dns-fallback' PACKAGECONFIG optionniko.mauno@vaisala.com2022-09-071-0/+1
| | | | | | | | | | | | | | | | | systemd defines a default set of fallback DNS servers in https://github.com/systemd/systemd/blob/v251/meson_options.txt#L328-L330 By adding a PACKAGECONFIG knob providing a convenient way to opt out, and then adding that value to systemd's PACKAGECONFIG, the output from runtime 'resolvectl status' command no longer contains the following line: Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 8.8.8.8#dns.google 1.0.0.1#cloudflare-dns.com 8.8.4.4#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2001:4860:4860::8888#dns.google 2606:4700:4700::1001#cloudflare-dns.com 2001:4860:4860::8844#dns.google (From OE-Core rev: 2b300d6b9ec6288a99d9dacb24a86949caf99e55) Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Upgrade to 251.4 and fix build with binutils 2.39Khem Raj2022-08-174-99/+1
| | | | | | | | | | | | The mount.h conflict patch is now upstream so drop it. Additionally this version fixes build with binutils-2.39 [1] [1] https://github.com/systemd/systemd-stable/commit/8a6f966be404897b5333c218701965ac3b5a0806 (From OE-Core rev: d43ec090ceb2bf0016a065103a4c34d0c43cb906) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Fix conflict between glibc mount.h and kernel mount.hKhem Raj2022-07-282-0/+98
| | | | | | | | | | | | See glibc documentation [1] for details [1] https://sourceware.org/glibc/wiki/Release/2.36 (From OE-Core rev: 86a33f98a7c0d6f2c2b51d02ba9e01b63062cf98) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Drop backported patch applied in 251.3Khem Raj2022-07-252-79/+0
| | | | | | | | | This was added to musl specific backport patchset so it escaped testing (From OE-Core rev: dd5f7e87b5bbde02eb50c7da6a6d3f928e0fd2f2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-boot: update 251.2 -> 251.3Alexander Kanavin2022-07-236-87/+10
| | | | | | | | (From OE-Core rev: 470ae1362358a69491a9166167889fa27dd6cc73) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Added base_bindir into pkg_postinst:udev-hwdb.leimaohui2022-07-231-1/+1
| | | | | | | | | | Otherwise in sdk environment, the base_bindir is empty and the path of UDEVADM="${base_bindir}/udevadm" is not correct. (From OE-Core rev: 235b6fccd2a9ce4eb9bfb3be8ac271cff0ea5fea) Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: update upstream status of merged patchesPavel Zhukov2022-06-252-2/+2
| | | | | | | | (From OE-Core rev: 6370bce5b0e14c9384b61c215eb6a56ed65a3feb) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Rebase patches on v251Pavel Zhukov2022-06-2117-238/+133
| | | | | | | | | | | Drop patches which are not needed anymore. Rebase musl specific patches to aboid fuzz warnings (From OE-Core rev: 3275cc6c2ecfd70ba134b49363c9cecbb0c2c0b2) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Add missed sys/file.h includes for muslPavel Zhukov2022-06-212-0/+79
| | | | | | | | (From OE-Core rev: 526e0ab4275a130b354090ac42a6147f5660e169) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: add packageconfig for sysextPeter Bergin2022-06-211-1/+1
| | | | | | | | | | | | | | Currently the sysext binary is packaged in systemd-utils and the service systemd-sysext.service in systemd package. Add a PACKAGECONFIG for sysext to actively choose if it is going to be installed or not, default off. If installed it will be added to systemd package. (From OE-Core rev: 98cc5639d74dc71aa1352b50f97ed832245d3c3b) Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: systemd-systemctl: Support instance conf files during enableNick Potenski2022-06-171-3/+11
| | | | | | | | | | | Add ability to parse instance-specific conf files when enabling an instance of a templated unit during postinstall. (From OE-Core rev: baa0ecf3271008cf60cd830c54a71f191aebb81c) Signed-off-by: Nick Potenski <nick.potenski@garmin.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Fix build without utmpMartin Jansa2022-06-112-0/+33
| | | | | | | | | | * backport the fix for regression in v251.2 (From OE-Core rev: 4cf536b44a6f3fdd5f31e5ddb91184bce05651b9) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Correct 0001-pass-correct-parameters-to-getdents64.patchJiaqing Zhao2022-06-081-5/+8
| | | | | | | | | | | | | | | Current patch removes the uint8_t* cast in src/basic/recurse-dir.c:57 to fix musl build, but it changes the value here as pointer arithmetic is type-depended in C. This patch corrects the behavior by adding an extra cast to struct dirent*. Also changes the patch's Upstream-Status to Inappropriate as it's musl- specific. (From OE-Core rev: e9e43d7f7488c4da8598759c4882cceeda9d2095) Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: update 250.5 -> 251.2Alexander Kanavin2022-06-075-50/+46
| | | | | | | | (From OE-Core rev: 9403233b2f9e58dd8a416342a37024dc08164317) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Set RebootWatchdogSec to 60s as watchdogRobert Yang2022-05-311-0/+8
| | | | | | | | | | | | | | | | | The systemd-shutdown sets watchdog timeout to 10m (600 seconds) which is too large, and caused errors when reboot on boars such as rpi4: systemd-shutdown[1]: Failed to set timeout to 10min: Invalid argument The watchog's default value is 60s, so set RebootWatchdogSec to 60s to fix the errors. And <machin.conf> can set WATCHDOG_TIMEOUT when needed, for example, the max timeout of rpi4 is 15 seconds. (From OE-Core rev: 20a7ab9ff6ed777c6617a338d049ebe03fcc588c) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Correct path returned in sd_path_lookup()Jiaqing Zhao2022-05-233-43/+74
| | | | | | | | | | | | | | | In oe-core, sysusers.d/sysctl.d/binfmt.d/modules-load.d are still kept under /usr/lib instead of /lib changed in systemd v246. This patch corrects the SD_PATH_{SYSUSERS,SYSCTL,BINFMT,MODULES_LOAD} returned in sd_path_lookup() back to the /usr/lib ones. Also updates the patch description and upstream status. (From OE-Core rev: 8d913ab6db3ae4b2786a64a086d519a40dcb8c4d) Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Drop 0002-don-t-use-glibc-specific-qsort_r.patchJiaqing Zhao2022-05-232-164/+0
| | | | | | | | | | musl 1.2.3 implements qsort_r function. (From OE-Core rev: 0c2bbf66c7a00268457ac10fed4bef3714da8651) Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Remove __compare_fn_t type in musl-specific patchJiaqing Zhao2022-05-233-38/+22
| | | | | | | | | | | | Since systemd v250, commit d8f16737005e ("sort-util: avoid using glibc's internal __compar_d_fn_t type"), __compare_fn_t type is no longer used. This patch removes that type in the musl-specific patch. (From OE-Core rev: 89c8a3f96dfeb444213fd6c523e1495c49065ccc) Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Drop 0001-test-parse-argument-Include-signal.h.patchJiaqing Zhao2022-05-232-28/+0
| | | | | | | | | | | This patch has already been upstreamed in commit systemd/850f0008bff7 ("test-parse-argument: Include signal.h") since v249 stable release. (From OE-Core rev: 25d8defc806ed760d371423a7ef99bd872462d1e) Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Update patch statusKhem Raj2022-05-211-1/+1
| | | | | | | | (From OE-Core rev: 2cdfc505ce4e00ae9b4abd962c60c9fec6c3db6c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Drop 0016-Hide-__start_BUS_ERROR_MAP-and-__stop_BUS_ERROR_MAP.patchKhem Raj2022-05-212-34/+0
| | | | | | | | | | | | | | | | | This patch was effectively needed when usng gold linker but it has been fixed in binutils [1], it was seen in systemd as well [2] This however, should not happen with latest binutils and systemd has already reverted the fix since it was a tool error [1] https://sourceware.org/bugzilla/show_bug.cgi?id=18548 [2] https://github.com/systemd/systemd/issues/234 (From OE-Core rev: e57707e820f548b3ad940ee6de9e45b4de869565) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Document future actions needed for set of musl patchesKhem Raj2022-05-214-0/+13
| | | | | | | | (From OE-Core rev: 433d51c3840d03623509ce8e3a1b3679f8771164) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Drop redundant musl patchesKhem Raj2022-05-214-93/+0
| | | | | | | | | | | These patches are no longer needed in version 250, they have been dragged along rebasing over releases unnessarily. Lets remove them (From OE-Core rev: 216fe2b8e53640ae5794e9426de56cd87637dde4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Fix build regression with latest updateKhem Raj2022-05-072-0/+47
| | | | | | | | | | This happens when ptest is enabled with clang compiler (From OE-Core rev: a1f51bae8e4717da2375b9a476c368554a795487) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: upgrade 250.4 -> 250.5Alexander Kanavin2022-05-0530-457/+499
| | | | | | | | | | | Drop 0029-network-enable-KeepConfiguration-when-running-on-net.patch as patch merged upstream. (From OE-Core rev: e07ba76fc78b44f338e574644a8ae3b6cddc9f08) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* update_udev_hwdb: fix multilib issue with systemdKai Kang2022-04-191-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | It duplicates udevadm in systemd recipe to make it could run update_udev_hwdb with multilib enabled. Since systemd last update, it deploys a shared library libsystemd-shared-250.so in /lib/systemd/. The library will be overwritten when multilib enabled. Then if both udev-hwdb and lib32-udev-hwdb are installed, it fails to run the multilib version postinstall intercept update_udev_hwdb: | /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/rootfs/usr/libexec/lib32-udevadm: error while loading shared libraries: libsystemd-shared-250.so: wrong ELF class: ELFCLASS64 `udevadm hwdb --update` just concatenates .hwdb files in dirs /etc/udev/hwdb.d and /lib/udev/hwdb.d. The output file hwdb.bin is identical with the one created by lib32-udevadm. So do NOT duplicate lib32-udevadm in systemd and eudev. And update intercept script update_udev_hwdb that re-run udevadm with same arch qemuwrapper if run ${binprefix}qemuwrapper failed. (From OE-Core rev: 3dba872a42c2be7d0865a30118984ab013850292) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>