]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
6 weeks agonetwork-generator: add missing return on error after the logging refactor
Antonio Alvarez Feijoo [Tue, 30 Apr 2024 12:35:01 +0000 (14:35 +0200)] 
network-generator: add missing return on error after the logging refactor

Fixes 3cb618084a1bd5c7cb42822b4ce3dbd048e6bd24

6 weeks agoMerge pull request #32523 from cgzones/inaccessible_label
Luca Boccassi [Tue, 30 Apr 2024 14:20:49 +0000 (16:20 +0200)] 
Merge pull request #32523 from cgzones/inaccessible_label

shared: create inaccessible files with correct security label

6 weeks agopo: add a false positive to POTFILES.skip
Piotr Drąg [Tue, 30 Apr 2024 12:36:16 +0000 (14:36 +0200)] 
po: add a false positive to POTFILES.skip

Scripts used to detect files that should be in POTFILES.in, like
intltool-update -m used on https://l10n.gnome.org/module/systemd/,
falsely detect this file as containing translations. Avoid this
behavior by putting the file in POTFILES.skip.

6 weeks agodocs: autopkgtest: refresh the docs with up-to-date information
Skia [Tue, 30 Apr 2024 13:46:11 +0000 (16:46 +0300)] 
docs: autopkgtest: refresh the docs with up-to-date information

@iainlane doesn't work on Ubuntu infrastructure anymore, and `bionic` is still ESM, but not really supported anymore either.
`noble`, which is the latest Ubuntu, probably is better for testing `systemd` in 2024, and pinging `qa-help` on IRC is the current official way to contact the team behind Ubuntu's infrastructure.

6 weeks agotest: exclude gperf files from captured coverage
Frantisek Sumsal [Tue, 30 Apr 2024 11:13:50 +0000 (13:13 +0200)] 
test: exclude gperf files from captured coverage

Recent lcov started complaining loudly about unknown lines in gperf
files:

...
Found gcov version: 13.2.1
Using intermediate gcov format
Recording 'internal' directories:
...
Finished processing 1634 GCNO files
Apply filtering..
Message summary:
  1 error message:
    range: 1
  28 warning messages:
    gcov: 27
    usage: 1
geninfo: ERROR: (range) unknown line '33' in /build/src/home/homed-gperf.gperf: there are only 22 lines in the file.
  Use 'geninfo --filter range' to remove out-of-range lines.
        (use "geninfo --ignore-errors range ..." to bypass this error)

Since we drop the coverage of built files from the final report anyway,
let's do it also when capturing both initial and real coverage to avoid
this error.

6 weeks agotest: Don't persist journal in mkosi image if we're not debugging tests
Daan De Meyer [Tue, 30 Apr 2024 12:29:14 +0000 (14:29 +0200)] 
test: Don't persist journal in mkosi image if we're not debugging tests

If we're not debugging tests, there's no point in persisting the journal,
so let's use the volatile journal storage mode in that case to avoid doing
unnecessary work.

We don't disable journal storage alltogether since various tests check
that stuff is written to the journal.

6 weeks agojournal: Add journal.storage credential
Daan De Meyer [Tue, 30 Apr 2024 10:26:27 +0000 (12:26 +0200)] 
journal: Add journal.storage credential

In mkosi CI, we want persistent journals when running interactively
and runtime journals when running in CI, so let's add a credential
that allows us to configure which one to use.

6 weeks agobuild(deps): bump pkg/debian from `640ff73` to `9a5adf2`
dependabot[bot] [Tue, 30 Apr 2024 09:24:18 +0000 (09:24 +0000)] 
build(deps): bump pkg/debian from `640ff73` to `9a5adf2`

Bumps pkg/debian from `640ff73` to `9a5adf2`.

---
updated-dependencies:
- dependency-name: pkg/debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
6 weeks agoMerge pull request #32575 from DaanDeMeyer/fix
Daan De Meyer [Tue, 30 Apr 2024 10:08:42 +0000 (12:08 +0200)] 
Merge pull request #32575 from DaanDeMeyer/fix

Various mkosi fixes

6 weeks agomkosi: Make sure we create an image without /var/log/journal 32575/head
Daan De Meyer [Tue, 30 Apr 2024 09:41:02 +0000 (11:41 +0200)] 
mkosi: Make sure we create an image without /var/log/journal

This allows journald to create the directory itself with the right
chattr settings on first boot.

6 weeks agomkosi: Simplify rpm build scripts
Daan De Meyer [Tue, 30 Apr 2024 09:39:36 +0000 (11:39 +0200)] 
mkosi: Simplify rpm build scripts

6 weeks agoMerge pull request #32567 from DaanDeMeyer/profile
Daan De Meyer [Tue, 30 Apr 2024 09:34:35 +0000 (11:34 +0200)] 
Merge pull request #32567 from DaanDeMeyer/profile

mkosi: Introduce particle profile

6 weeks agotest-journal-flush: use archived journal if possible
Yu Watanabe [Tue, 30 Apr 2024 05:20:11 +0000 (14:20 +0900)] 
test-journal-flush: use archived journal if possible

Workaround for #32436.

The test may fail if the journal is vacuumed or rotated during the test is running.
Let's use the newest archive file for safety.

6 weeks agomkosi: Introduce particle profile 32567/head
Daan De Meyer [Mon, 29 Apr 2024 20:13:11 +0000 (22:13 +0200)] 
mkosi: Introduce particle profile

Unfortunately the current mkosi partitioning setup is a bit too
avant-garde for the integration tests. Both in that distributions
aren't ready for it yet (some more than others), and that software
which we depend on in the integration tests isn't ready for it yet
(e.g. libselinux does not read its configuration from /usr).

Let's switch back to a more boring partioning setup by default but
keep the fancy stuff around as a mkosi profile. This means that it
can still be used for manually testing stuff by running
"mkosi --profile particle -f qemu".

6 weeks agoTEST-81-GENERATORS: Use SYSTEMD_PROC_CMDLINE more
Daan De Meyer [Tue, 30 Apr 2024 06:43:16 +0000 (08:43 +0200)] 
TEST-81-GENERATORS: Use SYSTEMD_PROC_CMDLINE more

Makes the test more robust as the command line the image is booted
won't influence the test result.

6 weeks agomeson: bump libbpf dependency to 1.4.0 when using gcc
Luca Boccassi [Mon, 29 Apr 2024 19:25:34 +0000 (20:25 +0100)] 
meson: bump libbpf dependency to 1.4.0 when using gcc

bpf_core_type_id_kernel() needs libbpf 1.4.0 when building with gcc
rather than clang, so bump the dependency accordingly.

More precisely, the following change is needed:

https://github.com/libbpf/libbpf/commit/b19fdbf1be21a28f88740375a575ebd9dfbea68f

Related to: https://github.com/systemd/systemd/issues/31869

Follow-up for 8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec

7 weeks agomachine: Add PIDFDs= fallback
Daan De Meyer [Mon, 29 Apr 2024 17:44:12 +0000 (19:44 +0200)] 
machine: Add PIDFDs= fallback

In some environments, systemd-machined might not be restarted on
downgrade. For safety, let's add the usual PIDFDs= fallback here
as well.

7 weeks agoresolved: always progress DS queries
Ronan Pigott [Mon, 29 Apr 2024 09:17:23 +0000 (02:17 -0700)] 
resolved: always progress DS queries

If we request a DS and the resolver offers an unsigned SOA, a new
auxiliary transaction for the DS will be rejected as a loop, and we
might not make any progress toward finding the DS we need. Let's ensure
that we at least always check the parent in this case.

Fixes: 47690634f157 ("resolved: don't request the SOA for every dns label")
7 weeks agomeson: copy prefix mapping CFLAGS when building BPF objects
Luca Boccassi [Sat, 27 Apr 2024 16:55:27 +0000 (17:55 +0100)] 
meson: copy prefix mapping CFLAGS when building BPF objects

Otherwise the filenames will contain variable paths and break reproducibility

7 weeks agoshared: create inaccessible files with correct security label 32523/head
Christian Göttsche [Sat, 27 Apr 2024 19:23:11 +0000 (21:23 +0200)] 
shared: create inaccessible files with correct security label

7 weeks agobasic: add open_mkdir_at_full()
Christian Göttsche [Sat, 27 Apr 2024 19:22:33 +0000 (21:22 +0200)] 
basic: add open_mkdir_at_full()

Add helper for open_mkdir_at() which accepts xopen flags, e.g. to pass
XO_LABEL to create the target with the correct security context.

7 weeks agobasic: add mknodat_label()
Christian Göttsche [Sat, 27 Apr 2024 19:22:02 +0000 (21:22 +0200)] 
basic: add mknodat_label()

Add helper for mknodat(2) which creates the destination with the correct
security label.

7 weeks agomeson: define 's390' for 's390x' when building BPF objects
Luca Boccassi [Sat, 27 Apr 2024 17:06:42 +0000 (18:06 +0100)] 
meson: define 's390' for 's390x' when building BPF objects

The kernel headers match on __s390__ so the build fails

../src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c:159:6: error: Must specify a BPF target arch via __TARGET_ARCH_xxx
void BPF_KPROBE(userns_restrict_free_user_ns, struct work_struct *work) {
     ^
/usr/include/bpf/bpf_tracing.h:817:20: note: expanded from macro 'BPF_KPROBE'
        return ____##name(___bpf_kprobe_args(args));                        \
                          ^
/usr/include/bpf/bpf_tracing.h:797:41: note: expanded from macro '___bpf_kprobe_args'
                                        ^
/usr/include/bpf/bpf_helpers.h:195:29: note: expanded from macro '___bpf_apply'
                            ^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/include/bpf/bpf_tracing.h:789:72: note: expanded from macro '___bpf_kprobe_args1'
                                                                       ^
/usr/include/bpf/bpf_tracing.h:563:29: note: expanded from macro 'PT_REGS_PARM1'
                            ^
<scratch space>:125:6: note: expanded from here
 GCC error "Must specify a BPF target arch via __TARGET_ARCH_xxx"

7 weeks agoMerge pull request #32547 from YHNdnzj/minor-cleanup
Mike Yuan [Mon, 29 Apr 2024 13:08:06 +0000 (21:08 +0800)] 
Merge pull request #32547 from YHNdnzj/minor-cleanup

Some cleanups prompted during review

7 weeks agoboot: fix argument name mismatch in two functions
Antonio Alvarez Feijoo [Mon, 29 Apr 2024 10:22:49 +0000 (12:22 +0200)] 
boot: fix argument name mismatch in two functions

7 weeks agocore: Add systemd.crash_action= kernel command line argument
Daan De Meyer [Mon, 29 Apr 2024 06:46:58 +0000 (08:46 +0200)] 
core: Add systemd.crash_action= kernel command line argument

Required for integration tests to power off on PID 1 crashes. We
deprecate systemd.crash_reboot and related options by removing them
from the documentation but still parsing them.

7 weeks agojournalctl: also check arg_file_stdin with other journal location
Mike Yuan [Mon, 29 Apr 2024 08:47:11 +0000 (16:47 +0800)] 
journalctl: also check arg_file_stdin with other journal location
options

Prompted by #32491

7 weeks agodocs/DEBUGGING.md: use an underscore in the kernel command line option
nl6720 [Mon, 29 Apr 2024 11:39:14 +0000 (14:39 +0300)] 
docs/DEBUGGING.md: use an underscore in the kernel command line option

systemd-debug-generator(8) lists it as `systemd.debug_shell`.

According to 1d84ad944520fc3e062ef518c4db4e1d3a1866af, kernel command
line options should use an underscore instead of a dash.

7 weeks agocore: Pass NULL error in dump_impl()
Daan De Meyer [Sun, 28 Apr 2024 17:42:51 +0000 (19:42 +0200)] 
core: Pass NULL error in dump_impl()

If mac_selinux_access_check() or bus_verify_bypass_dump_ratelimit_async()
fail, we goto "ratelimited" where we set a custom D-BUS error. In
"ratelimited", we call sd_bus_error_setf() which eventually hits an
assert_return(!bus_error_is_dirty()). Avoid hitting this assertion by
passing NULL as the error to mac_selinux_access_check() and
bus_verify_bypass_dump_ratelimit_async() since we will override the error
immediately anyway if either fails.

We modify both functions as well to allow passing a NULL error and fix
the argument name as well while we're at it.

7 weeks agoMerge pull request #32556 from YHNdnzj/development-freeze
Frantisek Sumsal [Mon, 29 Apr 2024 11:46:41 +0000 (13:46 +0200)] 
Merge pull request #32556 from YHNdnzj/development-freeze

development-freeze: suppress warning for some labels

7 weeks agobuild(deps): bump pkg/debian from `4b1f868` to `640ff73`
dependabot[bot] [Mon, 29 Apr 2024 10:00:20 +0000 (10:00 +0000)] 
build(deps): bump pkg/debian from `4b1f868` to `640ff73`

Bumps pkg/debian from `4b1f868` to `640ff73`.

---
updated-dependencies:
- dependency-name: pkg/debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
7 weeks agodevelopment-freeze: suppress warning for some labels 32556/head
Mike Yuan [Mon, 29 Apr 2024 10:59:02 +0000 (18:59 +0800)] 
development-freeze: suppress warning for some labels

7 weeks agolabeler: add l10n 🌍
Mike Yuan [Mon, 29 Apr 2024 10:56:54 +0000 (18:56 +0800)] 
labeler: add l10n 🌍

7 weeks agopam: Setup logging to syslog
Daan De Meyer [Sun, 28 Apr 2024 19:27:23 +0000 (21:27 +0200)] 
pam: Setup logging to syslog

We already log to syslog using pam_syslog() for logs generated directly
within our pam plugins. However, any logs generated by our generic logging
macros that are invoked within a pam plugin will log to the console. Let's
make sure our generic logging macros are set up to log to syslog as well.

7 weeks agopo: Translated using Weblate (French)
Pierre GRASSER [Mon, 29 Apr 2024 08:36:18 +0000 (10:36 +0200)] 
po: Translated using Weblate (French)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Pierre GRASSER <pierre.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/fr/
Translation: systemd/main

7 weeks agoNEWS: fix minimum dracut version required for systemd v256
Antonio Alvarez Feijoo [Mon, 29 Apr 2024 06:55:36 +0000 (08:55 +0200)] 
NEWS: fix minimum dracut version required for systemd v256

Follow-up for d4e9be97a3

7 weeks agofs-util: modernize touch_file a bit 32547/head
Mike Yuan [Mon, 29 Apr 2024 08:23:00 +0000 (16:23 +0800)] 
fs-util: modernize touch_file a bit

7 weeks agofs-util: try AT_EMPTY_PATH first for futimens_opath
Mike Yuan [Mon, 29 Apr 2024 08:22:37 +0000 (16:22 +0800)] 
fs-util: try AT_EMPTY_PATH first for futimens_opath

7 weeks agoefivars: drop unneeded UTIME_NOW
Mike Yuan [Mon, 29 Apr 2024 07:45:14 +0000 (15:45 +0800)] 
efivars: drop unneeded UTIME_NOW

futimens(2) defaults to current time if 'times' is NULL.

7 weeks agopam_systemd_loadkey: add missing PAM_EXTERN
Mike Yuan [Mon, 29 Apr 2024 07:46:32 +0000 (15:46 +0800)] 
pam_systemd_loadkey: add missing PAM_EXTERN

7 weeks agomkosi: Ignore version from versioned dependencies in .SRCINFO
Daan De Meyer [Sun, 28 Apr 2024 13:21:15 +0000 (15:21 +0200)] 
mkosi: Ignore version from versioned dependencies in .SRCINFO

Dependencies in .SRCINFO can be versioned. Let's make sure we ignore
any specified versions when grepping it for dependencies. Also update
the arch submodule to the latest to make sure the change works.

7 weeks agovarious: drop unnecessary DISABLE_WARNING_FORMAT_NONLITERAL
Mike Yuan [Sun, 28 Apr 2024 07:59:36 +0000 (15:59 +0800)] 
various: drop unnecessary DISABLE_WARNING_FORMAT_NONLITERAL

We use _printf_ for these functions, so there shouldn't
be a warning in the first place.

7 weeks agohwdb: Add a common Logitech M185/M225 mouse variant
Maciej S. Szmigiero [Sun, 28 Apr 2024 08:51:57 +0000 (10:51 +0200)] 
hwdb: Add a common Logitech M185/M225 mouse variant

Measured/tested on a Logitech N1901 mouse that apparently identifies as
one.

7 weeks agodocs: update link for SUSE whitepaper
spdfnet [Sun, 28 Apr 2024 09:10:46 +0000 (10:10 +0100)] 
docs: update link for SUSE whitepaper

Signed-off-by: spdfnet <32593931+spdfnet@users.noreply.github.com>
7 weeks agonetwork: DHCP version logging typos
Sebastian Pucilowski [Sun, 28 Apr 2024 00:34:02 +0000 (10:34 +1000)] 
network:  DHCP version logging typos

Some DHCP client log messages report "DHCP4" or "DHCP6" instead of
"DHCPv4" or "DHCPv6" as used within the rest of the codebase. Typos
fixed.

7 weeks agoNEWS: add warnings about read-only fs and libkmod being dlopen'ed
Zbigniew Jędrzejewski-Szmek [Sat, 27 Apr 2024 18:44:15 +0000 (20:44 +0200)] 
NEWS: add warnings about read-only fs and libkmod being dlopen'ed

Closes https://github.com/systemd/systemd/issues/32511.

7 weeks agoMerge pull request #32520 from YHNdnzj/sd-daemon-followup
Luca Boccassi [Sat, 27 Apr 2024 13:22:35 +0000 (15:22 +0200)] 
Merge pull request #32520 from YHNdnzj/sd-daemon-followup

sd-daemon: minor cleanup and follow-up

7 weeks agoMerge pull request #32516 from YHNdnzj/core-cleanup
Mike Yuan [Sat, 27 Apr 2024 11:43:27 +0000 (19:43 +0800)] 
Merge pull request #32516 from YHNdnzj/core-cleanup

core: several cleanups

7 weeks agosd-daemon: downgrade log level for library code, use correct errno 32520/head
Mike Yuan [Sat, 27 Apr 2024 11:34:45 +0000 (19:34 +0800)] 
sd-daemon: downgrade log level for library code, use correct errno

Follow-up for 13b67b61b3b4a5356f5d1b29b51137b8e336aa55

7 weeks agosd-daemon: minor modernization, use assert_return
Mike Yuan [Sat, 27 Apr 2024 11:26:49 +0000 (19:26 +0800)] 
sd-daemon: minor modernization, use assert_return

7 weeks agonetworkd: Correct documentation for LinkLocalAddressing
Mathias Lang [Thu, 25 Apr 2024 10:29:53 +0000 (12:29 +0200)] 
networkd: Correct documentation for LinkLocalAddressing

LinkLocalAddressing accepts a boolean. This can be seen by looking at
`link_local_address_family_from_strong(cont char *s)` in
`src/network/netword-util.c#L102-108` which falls back to
`address_family_from_string`, defined two lines above (L100)
using `DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN`.

7 weeks agopo: Translated using Weblate (Polish)
Piotr Drąg [Sat, 27 Apr 2024 09:23:10 +0000 (11:23 +0200)] 
po: Translated using Weblate (Polish)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pl/
Translation: systemd/main

7 weeks agotreewide: fix a few typos in NEWS, docs, comments, and log messages
Dmitry V. Levin [Sat, 27 Apr 2024 08:00:00 +0000 (08:00 +0000)] 
treewide: fix a few typos in NEWS, docs, comments, and log messages

7 weeks agocore/namespace: modernize mount_private_dev 32516/head
Mike Yuan [Sat, 27 Apr 2024 06:25:36 +0000 (14:25 +0800)] 
core/namespace: modernize mount_private_dev

7 weeks agocore/namespace: modernize clone_device_node
Mike Yuan [Sat, 27 Apr 2024 08:46:14 +0000 (16:46 +0800)] 
core/namespace: modernize clone_device_node

7 weeks agoFix spelling errors found by Lintian
Luca Boccassi [Fri, 26 Apr 2024 15:58:00 +0000 (16:58 +0100)] 
Fix spelling errors found by Lintian

7 weeks agocore/namespace: use FOREACH_ARRAY at one more place
Mike Yuan [Fri, 26 Apr 2024 03:07:59 +0000 (11:07 +0800)] 
core/namespace: use FOREACH_ARRAY at one more place

7 weeks agocore/execute: switch mount_apivfs to tristate
Mike Yuan [Thu, 25 Apr 2024 17:44:15 +0000 (01:44 +0800)] 
core/execute: switch mount_apivfs to tristate

No functional change, just refactoring.

7 weeks agocore/manager-serialize: deserialize handoff-timestamp fds
Mike Yuan [Sat, 27 Apr 2024 06:08:10 +0000 (14:08 +0800)] 
core/manager-serialize: deserialize handoff-timestamp fds

Follow-up for 817062e6211e7559ff91bcb7bb5dc4e472fc1646

Fixes #32512

7 weeks agocore: use close_and_replace more when deserializing
Mike Yuan [Sat, 27 Apr 2024 06:12:53 +0000 (14:12 +0800)] 
core: use close_and_replace more when deserializing

Addresses https://github.com/systemd/systemd/pull/32441#discussion_r1579149873

7 weeks agoman/systemd.exec: mount_switch_root uses pivot_root rather than chroot
Mike Yuan [Fri, 26 Apr 2024 09:48:53 +0000 (17:48 +0800)] 
man/systemd.exec: mount_switch_root uses pivot_root rather than chroot

7 weeks agocore/load-fragment: add one missing assertion
Mike Yuan [Fri, 26 Apr 2024 09:44:32 +0000 (17:44 +0800)] 
core/load-fragment: add one missing assertion

7 weeks agounits: add Before=shutdown.target to systemd-networkd-persistent-storage.service
Luca Boccassi [Fri, 26 Apr 2024 17:43:01 +0000 (18:43 +0100)] 
units: add Before=shutdown.target to systemd-networkd-persistent-storage.service

It's ordered with networkd, but just in case. Lintian complains:

W: systemd: systemd-service-file-shutdown-problems [usr/lib/systemd/system/systemd-networkd-persistent-storage.service]

Follow-up for 91676b645886382328c261efd5e83490d16e75cf

7 weeks agoMerge pull request #32510 from arthurzam/bash-v256
Luca Boccassi [Fri, 26 Apr 2024 20:16:09 +0000 (22:16 +0200)] 
Merge pull request #32510 from arthurzam/bash-v256

shell-completions: add bash completion for run0 & systemd-vpick

7 weeks agoMerge pull request #32439 from CodethinkLabs/simple-mkosi-integration-tests
Daan De Meyer [Fri, 26 Apr 2024 18:48:00 +0000 (20:48 +0200)] 
Merge pull request #32439 from CodethinkLabs/simple-mkosi-integration-tests

Enable some simple mkosi integration tests

7 weeks agoMerge pull request #32504 from bluca/test_failure
Luca Boccassi [Fri, 26 Apr 2024 17:55:24 +0000 (19:55 +0200)] 
Merge pull request #32504 from bluca/test_failure

test: do not fail if mknod() fails in a build system

7 weeks agoMerge pull request #32505 from mrc0mmand/fix-build-without-importd
Luca Boccassi [Fri, 26 Apr 2024 17:35:35 +0000 (19:35 +0200)] 
Merge pull request #32505 from mrc0mmand/fix-build-without-importd

import: skip the whole subdir when building with -Dimportd=false

7 weeks agotest/meson.build: Add some runnable integration tests 32439/head
Richard Maw [Thu, 18 Apr 2024 09:39:00 +0000 (10:39 +0100)] 
test/meson.build: Add some runnable integration tests

7 weeks agoTEST-81-GENERATORS: Clean /proc/cmdline of unusual mounts
Richard Maw [Sat, 24 Feb 2024 18:13:59 +0000 (18:13 +0000)] 
TEST-81-GENERATORS: Clean /proc/cmdline of unusual mounts

7 weeks agoTEST-36-NUMAPOLICY: Bump PID1 strace time to 3 seconds
Richard Maw [Fri, 26 Apr 2024 11:54:34 +0000 (12:54 +0100)] 
TEST-36-NUMAPOLICY: Bump PID1 strace time to 3 seconds

CI can be slow and only waiting 1 second makes it flaky there.

7 weeks agoTEST-26-SYSTEMCTL: Create /etc/init.d if needed
Richard Maw [Wed, 24 Apr 2024 13:44:27 +0000 (14:44 +0100)] 
TEST-26-SYSTEMCTL: Create /etc/init.d if needed

OpenSUSE doesn't disable sysv compat but also may not have anything in
/etc/init.d.

7 weeks agoTEST-25-IMPORT: Skip if importctl not installed
Richard Maw [Wed, 24 Apr 2024 11:16:37 +0000 (12:16 +0100)] 
TEST-25-IMPORT: Skip if importctl not installed

machinectl import-* was split out into importctl
which is a separately configurable component to machinectl
and might not always be available.

7 weeks agoTEST-19-CGROUP: Skip on opensuse
Richard Maw [Thu, 25 Apr 2024 11:18:57 +0000 (12:18 +0100)] 
TEST-19-CGROUP: Skip on opensuse

OpenSUSE images seem to be unhappy with either how they are built
or what they are being asked to do.

The listed device-mapper failure is just one of the strange errors,
I have also seen it fail to propagate cgroup properties into new cgroups
that were previously guaranteed to exist.

7 weeks agoTEST-17-UDEV: Skip credentials test if service not loaded
Richard Maw [Tue, 23 Apr 2024 21:30:24 +0000 (22:30 +0100)] 
TEST-17-UDEV: Skip credentials test if service not loaded

It does not appear to exist on OpenSUSE yet.

7 weeks agotest: modernize test-dirent-util 32504/head
Luca Boccassi [Fri, 26 Apr 2024 16:09:04 +0000 (17:09 +0100)] 
test: modernize test-dirent-util

Follow-up for 6a57d86bf9d7f8d6f5d339f57665dfb2e1d191c5

7 weeks agotest: do not fail if mknod() fails in a build system
Luca Boccassi [Fri, 26 Apr 2024 12:30:31 +0000 (13:30 +0100)] 
test: do not fail if mknod() fails in a build system

mknod fails in a Salsa container when building Debian packages, skip the check

Follow-up for 6a57d86bf9d7f8d6f5d339f57665dfb2e1d191c5

7 weeks agoshell-completion: add bash-completion for systemd-vpick command 32510/head
Arthur Zamarin [Fri, 26 Apr 2024 10:29:47 +0000 (13:29 +0300)] 
shell-completion: add bash-completion for systemd-vpick command

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
7 weeks agoshell-completion: add bash-completion for run0 command
Arthur Zamarin [Fri, 26 Apr 2024 10:15:55 +0000 (13:15 +0300)] 
shell-completion: add bash-completion for run0 command

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
7 weeks agoshell-completions: install new completions which were forgotten
Arthur Zamarin [Fri, 26 Apr 2024 15:43:38 +0000 (18:43 +0300)] 
shell-completions: install new completions which were forgotten

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
7 weeks agoimport: skip the whole subdir when building with -Dimportd=false 32505/head
Frantisek Sumsal [Fri, 26 Apr 2024 15:07:39 +0000 (17:07 +0200)] 
import: skip the whole subdir when building with -Dimportd=false

Resolves: #32501

7 weeks agomountfsd: drop explicit dependencies for systemd-mountwork
Frantisek Sumsal [Fri, 26 Apr 2024 15:06:06 +0000 (17:06 +0200)] 
mountfsd: drop explicit dependencies for systemd-mountwork

As the executables are automagically linked against libshared.

7 weeks agotest: mountnfsd -> mountfsd
Frantisek Sumsal [Fri, 26 Apr 2024 14:53:43 +0000 (16:53 +0200)] 
test: mountnfsd -> mountfsd

I keep accidentally writing mountnfsd instead of mountfsd, and a couple
of instances managed to get into the repo.

7 weeks agomkosi: use generic ubuntu kernel for udev and nvme tests
Richard Maw [Tue, 23 Apr 2024 15:36:15 +0000 (16:36 +0100)] 
mkosi: use generic ubuntu kernel for udev and nvme tests

TEST-17-UDEV expects to find scsi_debug and TEST-84-STORAGETM expects to
find nvmet-tcp.

This isn't ideal as it adds firmware, microcode and other drivers to the
initramfs, but there's no linux-modules-extra virtual package
to just include the extra modules.

7 weeks agomkosi: Use default opensuse kernel for tests
Richard Maw [Tue, 23 Apr 2024 20:39:04 +0000 (21:39 +0100)] 
mkosi: Use default opensuse kernel for tests

The kvmsmall kernel lacks important modules like the dummy network
device which TEST-17-UDEV requires very early on.

7 weeks agotest: Disable network by default in mkosi tests
Richard Maw [Thu, 25 Apr 2024 09:00:15 +0000 (10:00 +0100)] 
test: Disable network by default in mkosi tests

7 weeks agoMerge pull request #32499 from mrc0mmand/docs-fix-method-name
Luca Boccassi [Fri, 26 Apr 2024 14:47:25 +0000 (16:47 +0200)] 
Merge pull request #32499 from mrc0mmand/docs-fix-method-name

docs: drop invalid links & fix method name

7 weeks agoMerge pull request #32498 from DaanDeMeyer/mkosi
Luca Boccassi [Fri, 26 Apr 2024 14:44:19 +0000 (16:44 +0200)] 
Merge pull request #32498 from DaanDeMeyer/mkosi

mkosi: Set CleanPackageMetadata=yes for minimal-base

7 weeks agosd-daemon: Replace SO_LINGER with shutdown() + recv() 32498/head
Daan De Meyer [Fri, 26 Apr 2024 13:02:56 +0000 (15:02 +0200)] 
sd-daemon: Replace SO_LINGER with shutdown() + recv()

Let's shutdown the write end and wait for EOF from the other side
before continuing to make sure that the receiver has received all
data we sent on the socket.

7 weeks agodocs: PrepareForSuspend() is not a valid signal name 32499/head
Frantisek Sumsal [Fri, 26 Apr 2024 12:27:03 +0000 (14:27 +0200)] 
docs: PrepareForSuspend() is not a valid signal name

7 weeks agodocs: drop invalid links
Frantisek Sumsal [Fri, 26 Apr 2024 12:45:52 +0000 (14:45 +0200)] 
docs: drop invalid links

7 weeks agoTEST-50-DISSECT: Don't log image contents to console
Daan De Meyer [Fri, 26 Apr 2024 11:51:49 +0000 (13:51 +0200)] 
TEST-50-DISSECT: Don't log image contents to console

These can contain quite a few files, so let's not write every single
file and directory straight to the console to speed things up.

7 weeks agomkosi: Set CleanPackageMetadata=yes for minimal-base
Daan De Meyer [Fri, 26 Apr 2024 11:46:45 +0000 (13:46 +0200)] 
mkosi: Set CleanPackageMetadata=yes for minimal-base

We don't want to install any more packages in derived images so let's
not store repository metadata in the image to make it smaller.

7 weeks agomkosi: Update to latest
Daan De Meyer [Fri, 26 Apr 2024 11:11:37 +0000 (13:11 +0200)] 
mkosi: Update to latest

7 weeks agoNEWS: add back deprecation notices that have not been implemented yet
Luca Boccassi [Fri, 26 Apr 2024 09:43:46 +0000 (10:43 +0100)] 
NEWS: add back deprecation notices that have not been implemented yet

7 weeks agoMerge pull request #32494 from arthurzam/bash-importctl
Luca Boccassi [Fri, 26 Apr 2024 09:33:37 +0000 (11:33 +0200)] 
Merge pull request #32494 from arthurzam/bash-importctl

shell completion: add bash completion for importctl & fix machinectl

7 weeks agoshell completion: fix machinectl import-{tar,raw} 32494/head
Arthur Zamarin [Fri, 26 Apr 2024 09:10:26 +0000 (12:10 +0300)] 
shell completion: fix machinectl import-{tar,raw}

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
7 weeks agoshell completion: add bash completion for importctl
Arthur Zamarin [Fri, 26 Apr 2024 08:59:58 +0000 (11:59 +0300)] 
shell completion: add bash completion for importctl

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
7 weeks agopo: Translated using Weblate (Korean)
김인수 [Fri, 26 Apr 2024 08:36:03 +0000 (10:36 +0200)] 
po: Translated using Weblate (Korean)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: 김인수 <simmon@nplob.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ko/
Translation: systemd/main

7 weeks agoMerge pull request #32490 from YHNdnzj/namespace-cleanup
Daan De Meyer [Fri, 26 Apr 2024 06:29:32 +0000 (08:29 +0200)] 
Merge pull request #32490 from YHNdnzj/namespace-cleanup

core: trivial cleanups for setup_namespace

7 weeks agocore/exec-invoke: use FOREACH_ARRAY more, drop unnecessary initialization 32490/head
Mike Yuan [Sun, 21 Apr 2024 16:03:53 +0000 (00:03 +0800)] 
core/exec-invoke: use FOREACH_ARRAY more, drop unnecessary initialization
for some fields