diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-12-27 12:20:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-26 16:06:29 +0000 |
commit | 74f0fd144f73cf658f5018ab8f4140a4a2dc99b7 (patch) | |
tree | 7bc1be120cf08e1f438e370ecfb233a08ad3109f /meta/conf/distro | |
parent | 1e77bf05a103eeefcfc77537e4eae265e944ca93 (diff) | |
download | poky-74f0fd144f73cf658f5018ab8f4140a4a2dc99b7.tar.gz |
systemd: upgrade to 255.1
1. Patch changes:
0004-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch
is removed because it has no real effect now. The /lib is now
/usr/lib because 'usrmerge' is a required distro feature for systemd.
0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch is
refreshed for the new version to avoid patch-fuzz issue.
2. root user's home directory now defaults to "/root":
The sysuers.d/basic.conf is still modified to respect the ROOT_HOME
value, so if users set ROOT_HOME to "/home/root", the behavior is the
same as before. However, this is only for backward compatibility. With
this patch, The ROOT_HOME value is set to "/root" in init-manager-systemd.inc.
This is because systemd's source codes are hardcoding "/root", and other
values are not officially supported. See the list below.
$ grep -rl '"/root"' src/ | grep -v 'src/test'
src/core/namespace.c
src/basic/user-util.c
src/nss-systemd/nss-systemd.c
src/nspawn/nspawn.c
src/firstboot/firstboot.c
src/shared/userdb.c
src/shared/user-record.c
$ grep -rl /root network/ factory/ sysctl.d/ sysusers.d/ rules.d/ tmpfiles.d/ units/ xorg/ tools/
sysusers.d/basic.conf.in
tmpfiles.d/provision.conf
units/emergency.service.in
units/rescue.service.in
tools/list-discoverable-partitions.py
Previously, the recipe was just substituting sysusers.d/basic.conf.in,
which is not enough to be treated as 'fully support'. I deliberately put
a warning message in do_install to warn users about non "/root" ROOT_HOME
value. Don't remove it until all above places are handled.
3. cgroupv2 is now the default.
cgroupv2 is the default for systemd for many years and it's the default
for distros such as ubuntu and fedora. Let's also use it as the default.
(From OE-Core rev: ebafe463799b39025a0b24a0a14a2f02b6de9bac)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro')
-rw-r--r-- | meta/conf/distro/include/init-manager-systemd.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/conf/distro/include/init-manager-systemd.inc b/meta/conf/distro/include/init-manager-systemd.inc index 595d1f2644..0a76647459 100644 --- a/meta/conf/distro/include/init-manager-systemd.inc +++ b/meta/conf/distro/include/init-manager-systemd.inc | |||
@@ -5,3 +5,5 @@ VIRTUAL-RUNTIME_init_manager ??= "systemd" | |||
5 | VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" | 5 | VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" |
6 | VIRTUAL-RUNTIME_login_manager ??= "shadow-base" | 6 | VIRTUAL-RUNTIME_login_manager ??= "shadow-base" |
7 | VIRTUAL-RUNTIME_dev_manager ??= "systemd" | 7 | VIRTUAL-RUNTIME_dev_manager ??= "systemd" |
8 | # systemd hardcodes /root in its source codes, other values are not offically supported | ||
9 | ROOT_HOME ?= "/root" | ||