Commit Graph

84968 Commits

Author SHA1 Message Date
Yu Watanabe
031963fb16 core/unit: unit_process_job() tweaks (#39753) 2025-11-18 08:32:59 +09:00
Mike Yuan
bcf95c4116 labeler: match the whole tree of shell-completion/ 2025-11-18 08:26:16 +09:00
Luca Boccassi
d810cfcc5a meson: bump version to v259~rc1 2025-11-17 18:36:12 +00:00
Luca Boccassi
9ede3c125a meson: bump library sonames for v259~rc1 2025-11-17 18:36:12 +00:00
Luca Boccassi
c076689342 NEWS: finalize time and place 2025-11-17 18:36:12 +00:00
Luca Boccassi
2389784079 NEWS: update contributors list 2025-11-17 18:36:12 +00:00
Luca Boccassi
8ca3935118 NEWS: copy yet again sysvinit scripts removal announcement
Soon (TM)
2025-11-17 18:36:12 +00:00
Mike Yuan
aea6c4b53f core/unit: modernize unit_process_job() a bit
* Inline one condition
* Annotate boolean args with names
2025-11-17 19:30:00 +01:00
Yu Watanabe
92a224c9b4 musl: gracefully disable utmp support (#39775) 2025-11-18 03:29:34 +09:00
Mike Yuan
2334953a49 core/unit: always propagate reload_result as job result, even if state is unexpected
The end state of unit shouldn't have any impact on reload job, as
either way the reload operation has been aborted.
2025-11-17 19:26:11 +01:00
Mike Yuan
a5b1a79461 core/unit: mark running reload job as canceled if the unit deactivated
The semantics of reload is that the service updates its extrinsic state
and continues execution. If it actually deactivated we shouldn't
spuriously notify the caller that reload succeeded.
2025-11-17 19:26:11 +01:00
Mike Yuan
7cb0030f6c core/unit: no need to handle intermediate job types in unit_process_job()
Installed jobs are always collapsed, i.e. can only be of types
accepted by job_run_and_invalidate() modulo JOB_NOP which is
stored in Unit.nop_job (if any). Let's trim the unreachable
branches.
2025-11-17 19:25:41 +01:00
Yu Watanabe
bd3fc5c539 Revert "musl: utmpx: add several missing definitions"
This reverts commit 3ae7d8fd87.

Now utmp support is always disabled when building with musl,
and all definitions are unused in that case. Let's remove it.
2025-11-18 03:06:02 +09:00
Yu Watanabe
1a2ba82421 musl: meson: gracefully disable utmp support
musl only provides fake utmp functions, and these are not usable.
Let's disable the feature when building with musl.
2025-11-18 02:54:20 +09:00
Yu Watanabe
0ecff59065 Revert "musl: meson: add libutmps support"
This reverts commit bf9bc5beb0.

libutmps does not support utmpxname(), the function always fails
with ENOSYS, and always uses their own file.
However, our code relies on the funtion needs to succeed.

Let's revert the change now, and revisit later when musl users
request to support libutmps.
2025-11-18 02:54:20 +09: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