Commit Graph

84955 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
f436664881 tmpfiles: improve error message for missing user/group
From a boot with a dracut initrd:
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:2: Failed to resolve user 'tss': No such process
systemd-tmpfiles[242]: Failed to parse ACL "default:group:tss:rwx", ignoring: Invalid argument
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:4: Failed to resolve user 'tss': No such process
systemd-tmpfiles[242]: Failed to parse ACL "default:group:tss:rwx", ignoring: Invalid argument
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:6: Failed to resolve group 'tss': No such process
systemd-tmpfiles[242]: /usr/lib/tmpfiles.d/tpm2-tss-fapi.conf:7: Failed to resolve group 'tss': No such process
2025-11-18 16:23:29 +01:00
Zbigniew Jędrzejewski-Szmek
6e6e96f628 udev: define a generic helper to print messages about unknown users and groups
We cannot just use %m, because strerror returns a confusing error message
for ESRCH or ENOEXEC. udev code was doing a good job, but the error handling
was very verbose. Let's encapsulate the customized error messages in a
helper.

No functional change, except that the error messages have a slightly different
form now. The old messages were a bit better, but we don't have as much
flexibility in the new scheme. "Failed to resolve user 'foo': Unknown user"
should be good enough.
2025-11-18 16:23:29 +01:00
Luca Boccassi
00ed239a7b repart: prefix LUKS superblock label with "luks-" by default, and add explicit VolumeLabel= setting to control it (#39713)
Alternative-to: #39536
2025-11-17 17:46:39 +00:00
Yu Watanabe
1b9f3473c1 NEWS: menton future removal of SysV support and requirement bump 2025-11-18 02:40:22 +09:00
Yu Watanabe
43a1690e45 Split out script for musl builds (#39758) 2025-11-18 02:17:05 +09:00
Philip Withnall
69f1a1d5ed docs: Update MEMORY_PRESSURE to mention recent improvements in GLib
See https://gitlab.gnome.org/GNOME/glib/-/issues/2931 for the changes in
GLib upstream. Using `GMemoryMonitor` is now more compliant with the
systemd recommended approach, but it needs further work to read the
recommended environment variables rather than unconditionally accessing
the per-cgroup PSI kernel file directly.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-11-17 18:05:41 +01:00
Lennart Poettering
0712316e8e fs-util: enable automatic access mode logic in xopenat() 2025-11-18 01:31:49 +09:00
Yu Watanabe
07910c73b0 test: modernize test-log and add test cases for log_format_iovec() (#39750) 2025-11-18 01:31:02 +09:00
Zbigniew Jędrzejewski-Szmek
18dcc08c65 ci: whitespace fix 2025-11-17 17:02:23 +01:00
Zbigniew Jędrzejewski-Szmek
31d3b96293 musl: split out script to setup build
This makes it easier to set up a local build with musl:
$ tools/setup-musl-build.sh build-meson
$ ninja -C build-meson
2025-11-17 17:02:23 +01:00
Zbigniew Jędrzejewski-Szmek
6edbf6a2c7 musl: drop unused temporary pkgonfig directory 2025-11-17 16:56:51 +01:00
Lennart Poettering
1daf7b56bb tmpfile-util: make sure errno is left untouched by CLEANUP_TMPFILE_AT()
This mimics how rm_rf_physical_and_free() operate, and we should do the
same here, and make clean-up error paths not touch errno needlessly.
2025-11-17 16:53:31 +01:00
Lennart Poettering
a5023c7a4b nspawn: move oci code to use json_dispatch_strv_environment() 2025-11-17 16:53:13 +01:00
Zbigniew Jędrzejewski-Szmek
93470f0451 Various comment and whitespace cleanups (#39740) 2025-11-17 16:52:38 +01:00
Zbigniew Jędrzejewski-Szmek
01100f15ad tree-wide: drop space after shell redirection ops
Those are all unary operators.
2025-11-17 16:50:50 +01:00
Zbigniew Jędrzejewski-Szmek
3a5e748f6b core/namespace: tidy up comments and debug logs
Saying "table" everywhere is not needed. Everybody can see that the table
is a table is a table. Also tweak the grammar in various places to make
reading nicer.
2025-11-17 16:50:50 +01:00
Lennart Poettering
0d24626631 test: add testcase for VolumeLabel= 2025-11-17 16:43:21 +01:00
Lennart Poettering
e30738c20c dissect-tool: accept encryption password via $PASSWORD 2025-11-17 16:42:58 +01:00
Lennart Poettering
28fd2a66f4 nspawn: fix flags type for chase() 2025-11-18 00:36:58 +09:00
Lennart Poettering
d3c6a172a0 discover-image: support reading metadata from verity enabled DDI images, too 2025-11-18 00:35:49 +09:00
Pranay Pawar
7e8f6ece84 hwdb: Fix keyboard backlight keys on Acer Nitro 5 AN515-58 (#39769)
Pressing Fn+F10 on Acer Nitro 5 AN515-58 incorrectly triggers display
brightness down (scancode 0xef) instead of keyboard backlight control,
causing the screen to go completely dark. Similarly, Fn+F9 (scancode
0xf0) has no function explictily stated in hwdb causing unknown keycode
debug messages.

Both keys should control the keyboard backlight as labeled on the
keyboard. Map scancodes 0xef and 0xf0 to kbdillumup and kbdillumdown
respectively to enable proper keyboard backlight control.
2025-11-18 00:33:42 +09:00
Yu Watanabe
d42db35a7c Drop remaining CGroup v1 specific code (#38969) 2025-11-17 23:48:29 +09:00
Lennart Poettering
d343a044a2 NEWS: mention the LUKS superblock default labelling change.
This is a (weak) compat break, hence document it in NEWS.
2025-11-17 15:38:01 +01:00
Yu Watanabe
0bb71aea62 NEWS: insert hyphen 2025-11-17 23:37:19 +09:00
Lennart Poettering
0a03092cb5 repart: avoid label string clashes between LUKS superblocks and the filesystems on them
Let's make sure that by default /dev/disk/by-label/ symlinks avoid
ambiguities, and the LUKS volume carries a different one than the file
system inside it.

Alternative-to: #39536
2025-11-17 15:37:14 +01:00
Yu Watanabe
c1568778d1 repart: fix typo
Follow-up for cfb6c54324.
2025-11-17 23:34:42 +09:00
Zbigniew Jędrzejewski-Szmek
652dc1125a NEWS: cleanups and rewordings, extend the section about musl
I think we should make it clear that the "incomplete musl support" does not
mean that it'll for certain be completed later. The feedback from users will be
an important consideration.
2025-11-17 15:21:54 +01:00
Yu Watanabe
f10444319e test-log: add test cases for log_format_iovec() 2025-11-17 23:07:05 +09:00
Yu Watanabe
c1792c2005 test-log: migrate to use ASSERT_OK() and friends 2025-11-17 23:07:05 +09:00
Yu Watanabe
d753c0c658 log: replace format string in LOG_ITEM() to a dummy one when analyzed by Coverity
Hopefully silence many false-positives.
2025-11-17 23:06:53 +09:00
Yu Watanabe
1f546ab779 log: make each string generated in log_format_iovec() NUL terminated
Nowadays, we append an extra NUL for each data if possible for safety.
We already do the same for example at write_to_kmsg(), log_do_context(),
write_to_journal(), log_struct_iovec_internal(), and so on.
This does not change any behavior, as the iov_len field is unchanged.
2025-11-17 22:38:38 +09:00
Zbigniew Jędrzejewski-Szmek
cfb6c54324 repart: adjust "partno" column
In a typical output from systemd-repart, the output is very wide any any wasted
space is bad because it pushes the interesting information even further to the
right. We usually need at most one or two digits to express the partition
numbers, so let's shorten the title of the column to effectively remove two
columns in the output.

In JSON output, the old field name is retained. This follows the pattern
already used for field "drop-in_files".

Also right-align the columns with numbers always to the right. I doesn't make
sense to align the columns which are only used for JSON output, so stop setting
alignment for those.
2025-11-17 22:36:27 +09:00
Lennart Poettering
1006b7e5ba coredumpctl: remove unnecessary line break 2025-11-17 22:35:03 +09:00
Charlie Le
7e337327e9 hwdb: Add Elecom IST Pro trackball (#39762)
Added entries for the Elecom IST Pro via its three connection methods- a
USB cable, the included G1000 USB receiver, and Bluetooth.

The G1000 USB receiver _may_ have to be removed in the future depending
on the input devices that can connect to it. According to Elecom, the
receiver can have up to three different input devices connected such as
trackballs, mice, keyboards, etc. That said, as far as I can tell, the
IST Pro is the only released Elecom device that uses the receiver. The
non-pro model and the upcoming Elecom Huge Plus might use the same
receiver, but that should not matter as both devices are trackballs.
2025-11-17 22:34:03 +09:00
Jörg Behrmann
ba50b57e65 NEWS: fix typos 2025-11-17 13:25:39 +00:00
Luca Boccassi
355dd4b098 NEWS: more adjustments for v259~rc1 2025-11-17 12:38:05 +00:00
Yu Watanabe
d32ec01223 shell-completion: drop deprecated cgroup controller suggestion 2025-11-17 21:31:51 +09:00
Yu Watanabe
44440ea658 cgroup-util: drop outdated comments 2025-11-17 21:31:51 +09:00
Yu Watanabe
4434fd76f1 cgroup-util: drop unused SYSTEMD_CGROUP_CONTROLLER_{LEGACY,HYBRID} 2025-11-17 21:31:51 +09:00
Yu Watanabe
b9e612e070 cgroup-util: do not check validity of controller in cg_split_spec()
Now the controller part is always ignored, hence let's skip check for
the controller part of the spec. This also make it acceppt unnormalized
path. Previously paths were checked by path_is_normalized(), but now
checked by path_is_safe(). Also, now this mapps an empty path to NULL.
2025-11-17 21:31:51 +09:00
Yu Watanabe
6a8ab5f062 cgroup-show: drop unnecessary call of cg_mangle_path()
As the caller already dropped controller part.
2025-11-17 21:31:51 +09:00
Yu Watanabe
a8156588fa cgroup-util: drop 'controller' argument from cg_get_path()
The argument is not used anymore. Let's drop it.
2025-11-17 21:31:50 +09:00
Yu Watanabe
5d397dc7f4 cgroup-util: drop 'controller' argument from cg_get_keyed_attribute() and cg_is_empty()
The argument is completely unused. Let's drop it.
2025-11-17 21:31:50 +09:00
Yu Watanabe
3454b160e4 cgroup-util: drop unused cg_unified() and friends 2025-11-17 21:31:50 +09:00
Yu Watanabe
90ee92b073 cgls: drop cgroup v1 support and warn when cgroup v1 controller is specified 2025-11-17 21:31:44 +09:00
Yu Watanabe
2fe89e3b0f limits-util: drop cgroup v1 support from physical_memory() 2025-11-17 21:30:29 +09:00
Yu Watanabe
2d6dd692be cgroup-util: drop cgroup v1 support in cg_get_path()
We have dropped cgroup v1 support in v258. Let's assume we are running
on cgroup v2 and drop unused legacy code.
2025-11-17 21:30:29 +09:00
Yu Watanabe
f5a48af34b cgroup-util: use cg_is_available() in cg_kill_supported() 2025-11-17 21:30:29 +09:00
Yu Watanabe
57c16d344b cgroup-util: drop cgroup v1 support from cg_mask_supported_subtree()
We have dropped cgroup v1 support in v258. Let's drop unused legacy code.
2025-11-17 21:30:29 +09:00
Yu Watanabe
0ab90015e0 tree-wide: replace cg_get_path_and_check() with cg_get_path()
We have dropped cgroup v1 support in v258. When running on cgroup v2,
cg_get_path_and_check() with SYSTEMD_CGROUP_CONTROLLER as controller is
equivalent with checking if we are running on cgroup v2 and then
cg_get_path(). As we can assume we are running on cgroup v2, then the
check is not necessary anymore, thus we can replace
cg_get_path_and_check() with cg_get_path().
2025-11-17 21:30:29 +09:00