]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 months agocoredump: use RET_NERRNO and RET_GATHER
Zbigniew Jędrzejewski-Szmek [Sun, 9 Jul 2023 19:33:22 +0000 (13:33 -0600)] 
coredump: use RET_NERRNO and RET_GATHER

No functional change indended.

10 months agobootctl: use RET_GATHER, return first error
Zbigniew Jędrzejewski-Szmek [Sun, 9 Jul 2023 19:32:55 +0000 (13:32 -0600)] 
bootctl: use RET_GATHER, return first error

10 months agovarious: use RET_GATHER
Zbigniew Jędrzejewski-Szmek [Sun, 9 Jul 2023 19:32:24 +0000 (13:32 -0600)] 
various: use RET_GATHER

No functional change indentended.

10 months agoIntroduce RET_GATHER and use it in src/shared/
Zbigniew Jędrzejewski-Szmek [Sun, 9 Jul 2023 19:25:42 +0000 (13:25 -0600)] 
Introduce RET_GATHER and use it in src/shared/

The idea is to make it easier to implement the common pattern of
accumulating errors (negative values) in an accumulator to return
the first error.

10 months agosysusers: add comments and simplify how set with names is created
Zbigniew Jędrzejewski-Szmek [Sun, 9 Jul 2023 19:11:57 +0000 (13:11 -0600)] 
sysusers: add comments and simplify how set with names is created

The code was correct, but rather confusing: it used two sets with strings with
trivial_hash_ops to store strings used in other hashmaps. Let's add a bunch of
comments to explain what is happening. We also don't need two sets, using just
one saves a bit of memory.

While at it, let's add some debug messages if duplicate user/group names or
uids/gids are present.

10 months agosd-device: simplify code flow
Zbigniew Jędrzejewski-Szmek [Sun, 9 Jul 2023 17:47:28 +0000 (11:47 -0600)] 
sd-device: simplify code flow

This function was written as if it wanted to do some cleanup after exiting from
the loop, but that never happened.

10 months agoloop-write: do strlen() implicitly if size is specified as SIZE_MAX
Lennart Poettering [Wed, 12 Jul 2023 20:29:17 +0000 (22:29 +0200)] 
loop-write: do strlen() implicitly if size is specified as SIZE_MAX

This reduces repetition in the function calls, since quite often we
write out strings with loop_write().

Noticed while reviewing #28077.

10 months agondisc: honour MTU for onlink prefix
Susant Sahani [Tue, 11 Jul 2023 13:19:14 +0000 (18:49 +0530)] 
ndisc: honour MTU for onlink prefix

Fixes #26520

10 months agoMerge pull request #28368 from mrc0mmand/test-fail-on-error
Luca Boccassi [Wed, 12 Jul 2023 22:51:42 +0000 (23:51 +0100)] 
Merge pull request #28368 from mrc0mmand/test-fail-on-error

test: a couple of clean ups

10 months agoAdd alternate name for MX Ergo as found on some devices
Roger Gammans [Wed, 12 Jul 2023 20:10:53 +0000 (21:10 +0100)] 
Add alternate name for MX Ergo as found on some devices

Fixes #28349

10 months agoupdate TODO
Lennart Poettering [Wed, 12 Jul 2023 20:27:12 +0000 (22:27 +0200)] 
update TODO

10 months agoMerge pull request #28365 from DaanDeMeyer/udevadm-query
Daan De Meyer [Wed, 12 Jul 2023 19:48:04 +0000 (21:48 +0200)] 
Merge pull request #28365 from DaanDeMeyer/udevadm-query

Various fixes and improvements

10 months agologs-show: Rename json_data to JsonData and add typedef 28365/head
Daan De Meyer [Wed, 12 Jul 2023 17:46:46 +0000 (19:46 +0200)] 
logs-show: Rename json_data to JsonData and add typedef

10 months agojson: free array in json_variant_unref_many()
Daan De Meyer [Wed, 12 Jul 2023 12:10:47 +0000 (14:10 +0200)] 
json: free array in json_variant_unref_many()

This allows using it with CLEANUP_ARRAY(). For the 2 call sites
where we don't need to free the array, we do a regular for loop
calling json_variant_unref() instead.

10 months agobasic: Fix color + underline functions/macros
Daan De Meyer [Wed, 12 Jul 2023 08:42:43 +0000 (10:42 +0200)] 
basic: Fix color + underline functions/macros

We currently concatenate ANSI_UNDERLINE to the color of our choice
in DEFINE_ANSI_FUNC_UNDERLINE() and DEFINE_ANSI_FUNC_UNDERLINE_256().
The first thing that ANSI_UNDERLINE does is reset all previous ansi
escape sequences, so you just get underlining without any colors.

Let's fix the issue by actually concatenating _UNDERLINE to the given
color macro name so this works properly.

Also add missing color macros that this uncovered.

10 months agodevice-util: Declare iterator variables inline
Daan De Meyer [Wed, 12 Jul 2023 06:52:12 +0000 (08:52 +0200)] 
device-util: Declare iterator variables inline

10 months agocore: refuse late merge only for anchor job when JOB_RESTART_DEPENDENCIES
Mike Yuan [Sat, 8 Jul 2023 11:45:51 +0000 (19:45 +0800)] 
core: refuse late merge only for anchor job when JOB_RESTART_DEPENDENCIES

Follow-up for 2a39b91459a4c27985d9a58309c0fda25f3cd397

The mentioned change makes all jobs in the transaction unmergeable
if mode == JOB_RESTART_DEPENDENCIES, but we only want the anchor job
to be re-enqueued.

10 months agoMerge pull request #28344 from YHNdnzj/compare-device-node
Lennart Poettering [Wed, 12 Jul 2023 15:59:28 +0000 (17:59 +0200)] 
Merge pull request #28344 from YHNdnzj/compare-device-node

hibernate-resume: add & use devnode_same to compare device nodes

10 months agodocs: cleanups to ROOT_STORAGE_DAEMONS
Micah Abbott [Tue, 11 Jul 2023 15:50:20 +0000 (11:50 -0400)] 
docs: cleanups to ROOT_STORAGE_DAEMONS

There were a couple spelling/grammatical errors in the docs that made
it hard to read and understand parts of this doc. I cleaned up those
errors and reflowed the line breaks to keep to the 80 char limit.

10 months agomkosi: Make sure we build kernel headers
Daan De Meyer [Wed, 12 Jul 2023 06:52:47 +0000 (08:52 +0200)] 
mkosi: Make sure we build kernel headers

Required for building kernel selftests

10 months agotest: unify /testok & /failed handling 28368/head
Frantisek Sumsal [Wed, 12 Jul 2023 13:49:55 +0000 (15:49 +0200)] 
test: unify /testok & /failed handling

And drop it where not necessary.

10 months agotest: fail if we find units/tests in failed state
Frantisek Sumsal [Wed, 12 Jul 2023 13:27:26 +0000 (15:27 +0200)] 
test: fail if we find units/tests in failed state

Instead of relying on the post-test /failed file check.

10 months agotest: drop redundant 'function' keyword
Frantisek Sumsal [Wed, 12 Jul 2023 13:31:14 +0000 (15:31 +0200)] 
test: drop redundant 'function' keyword

10 months agotest: drop spurious whitespaces
Frantisek Sumsal [Wed, 12 Jul 2023 13:52:04 +0000 (15:52 +0200)] 
test: drop spurious whitespaces

10 months agotest: copy out the necessary test data before we start overmounting stuff
Frantisek Sumsal [Tue, 11 Jul 2023 19:03:22 +0000 (21:03 +0200)] 
test: copy out the necessary test data before we start overmounting stuff

Otherwise the get_testdata_dir() call fails if the source tree is under
/root (which is usually the case in CIs).

I got bitten by this after leaving the source tree under /root but moving the
$BUILD_DIR elsewhere. This used to work by accident, as load_testdata_env()
would try to read $BUILD_DIR/systemd-runtest.env, but would fail if the
$BUILD_DIR is also under /root and fall back to SYSTEMD_TEST_DATA
(/lib/systemd/tests/testdata), which usually exist as we install the just built
revision. However, if the $BUILD_DIR is outside of /root we'd read
$BUILD_DIR/systemd-runtest.env which contains
SYSTEMD_TEST_DATA=/path/to/source/tree/test and that source tree is not visible
once we overmount /root with tmpfs making the test fail:

/* test_run_tests_unprivileged */
Successfully forked off '(test-execute-unprivileged)' as PID 10672.
Changing mount flags / (MS_REMOUNT|MS_BIND "")...
Changing mount propagation / (MS_REC|MS_SHARED "")
Mounting tmpfs (tmpfs) on /dev/shm (MS_NOSUID|MS_NODEV "")...
Mounting tmpfs (tmpfs) on /root (MS_NOSUID|MS_NODEV "")...
Mounting tmpfs (tmpfs) on /tmp (MS_NOSUID|MS_NODEV "")...
Mounting tmpfs (tmpfs) on /var/tmp (MS_NOSUID|MS_NODEV "")...
Mounting tmpfs (tmpfs) on /var/lib (MS_NOSUID|MS_NODEV "")...
Mounting tmpfs (tmpfs) on /run/test-execute-unit-dir (MS_NOSUID|MS_NODEV "")...
ERROR: $SYSTEMD_TEST_DATA directory [/root/systemd/test] not accessible: No such file or directory
Assertion 'get_testdata_dir("test-execute/", &unit_dir) >= 0' failed at src/test/test-execute.c:1306, function prepare_ns(). Aborting.
(test-execute-unprivileged) terminated by signal ABRT.

10 months agotest: actually mount / read-only
Frantisek Sumsal [Tue, 11 Jul 2023 18:18:19 +0000 (20:18 +0200)] 
test: actually mount / read-only

10 months agotree-wide: fix typos reported by Fossies Codespell report
Yu Watanabe [Wed, 12 Jul 2023 01:14:50 +0000 (10:14 +0900)] 
tree-wide: fix typos reported by Fossies Codespell report

10 months agoman: move <varlistentry> in <variablelist>
Yu Watanabe [Tue, 11 Jul 2023 06:06:02 +0000 (15:06 +0900)] 
man: move <varlistentry> in <variablelist>

10 months agoimport-creds: don't import creds from SMBIOS/qemu in confidential VMs
Lennart Poettering [Fri, 7 Jul 2023 14:00:09 +0000 (16:00 +0200)] 
import-creds: don't import creds from SMBIOS/qemu in confidential VMs

10 months agohibernate-resume: use devnode_same to compare device nodes 28344/head
Mike Yuan [Mon, 10 Jul 2023 13:04:49 +0000 (21:04 +0800)] 
hibernate-resume: use devnode_same to compare device nodes

Addresses https://github.com/systemd/systemd/pull/28321#discussion_r1257866179

When devnode_same() fails we only debug log about it, because
the device nodes might not have appeared by the time the generator
is run.

Fixes #28340

10 months agoshared/device-nodes: add devnode_same
Mike Yuan [Mon, 10 Jul 2023 12:58:57 +0000 (20:58 +0800)] 
shared/device-nodes: add devnode_same

10 months agopath-util: make path_equal_or_inode_same static inline
Mike Yuan [Mon, 10 Jul 2023 12:42:01 +0000 (20:42 +0800)] 
path-util: make path_equal_or_inode_same static inline

No functional change, just refactoring.

10 months agoseccomp: add arm_fadvise64_64 to system-service group
Yu Watanabe [Tue, 11 Jul 2023 03:28:06 +0000 (12:28 +0900)] 
seccomp: add arm_fadvise64_64 to system-service group

fadvise64 and fadvise64_64 are already in the group, but arm_ version
was not.

Fixes #28350.

10 months agoMerge pull request #28348 from YHNdnzj/async-close-waitpid
Lennart Poettering [Tue, 11 Jul 2023 09:53:03 +0000 (11:53 +0200)] 
Merge pull request #28348 from YHNdnzj/async-close-waitpid

shared/async: don't use WEXITED for waitpid()

10 months agoshared/async: don't use WEXITED for waitpid() 28348/head
Mike Yuan [Mon, 10 Jul 2023 17:46:29 +0000 (01:46 +0800)] 
shared/async: don't use WEXITED for waitpid()

Follow-up for c26d7837bb08508c8d906d849dff8f1bc465063e

waitpid() doesn't support WEXITED and returns -1 (EINVAL),
which results in the intermediate close process not getting
reaped.

Fixes https://github.com/systemd/systemd/issues/26744#issuecomment-1628240782

10 months agoshared/async: prefix process name with sd-
Mike Yuan [Tue, 11 Jul 2023 04:06:14 +0000 (12:06 +0800)] 
shared/async: prefix process name with sd-

10 months agoMerge pull request #28343 from poettering/daemon-reload-common
Yu Watanabe [Mon, 10 Jul 2023 23:42:19 +0000 (08:42 +0900)] 
Merge pull request #28343 from poettering/daemon-reload-common

tree-wide: add common implementation of Reload() bus call to PID 1

10 months agoMerge pull request #28333 from DaanDeMeyer/tpm-support-dlopen
Daan De Meyer [Mon, 10 Jul 2023 16:14:17 +0000 (18:14 +0200)] 
Merge pull request #28333 from DaanDeMeyer/tpm-support-dlopen

tpm2-util: Only assume system support if we can dlopen() the tpm libraries

10 months agotree-wide: drop trailing newline from various log calls 28343/head
Lennart Poettering [Mon, 10 Jul 2023 12:54:11 +0000 (14:54 +0200)] 
tree-wide: drop trailing newline from various log calls

We generate this implicitly, hence we generally don't include it
explicitly.

10 months agobus-unit-util: add common code for reloading PID 1
Lennart Poettering [Wed, 5 Jul 2023 15:54:01 +0000 (17:54 +0200)] 
bus-unit-util: add common code for reloading PID 1

We have this very similar code in various places, and it#s not entirely
obvious (since we want a prolonged timeout for the reload), hence unify
this at one place.

10 months agotest-fstab-generator: use test_env
Luca Boccassi [Mon, 10 Jul 2023 10:59:57 +0000 (11:59 +0100)] 
test-fstab-generator: use test_env

When running from the build directory systemd-detect-virt might not be installed,
so tell meson to set up the PATH accordingly to point to the build directory.

Fixes https://github.com/systemd/systemd/issues/28316

10 months agosd-gpt: add missing SD_GPT_*NATIVE* defines for mips/mips64/parisc
Luca Boccassi [Mon, 10 Jul 2023 11:58:02 +0000 (12:58 +0100)] 
sd-gpt: add missing SD_GPT_*NATIVE* defines for mips/mips64/parisc

We already had the arch-specific UUIDs defined, but they were not wired up

10 months agoMerge pull request #28308 from bluca/casting
Luca Boccassi [Mon, 10 Jul 2023 14:27:13 +0000 (15:27 +0100)] 
Merge pull request #28308 from bluca/casting

Fix compilation on mipsel, ia64 and x32

10 months agotest: reorder the machinectl signal tests
Frantisek Sumsal [Mon, 10 Jul 2023 08:39:00 +0000 (10:39 +0200)] 
test: reorder the machinectl signal tests

So the multiple-machines tests run last to avoid a race where the
checked signal would get ignored while the stub init is still processing
the previous signals:

[   17.380417] testsuite-13.sh[376]: + machinectl reboot long-running long-running long-running
[   17.389888] systemd-nspawn[495]: ++ touch /reboot
[   17.390904] testsuite-13.sh[376]: + rm -f /var/lib/machines/long-running/trap
[   17.393937] testsuite-13.sh[376]: + machinectl kill --signal=SIGTRAP --kill-whom=leader long-running
[   17.408905] testsuite-13.sh[376]: + timeout 10 bash -c 'while ! test -e /var/lib/machines/long-running/trap; do sleep .5; done'
[   27.413210] testsuite-13.sh[376]: + at_exit
...
[   27.993376] testsuite-13.sh[373]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-13.machinectl.sh failed'

10 months agomkosi: Add tpm2-tools to the initrd
Daan De Meyer [Mon, 10 Jul 2023 12:48:34 +0000 (14:48 +0200)] 
mkosi: Add tpm2-tools to the initrd

To provide tpm2_eventlog for PCR debugging.

10 months agoMerge pull request #28334 from DaanDeMeyer/network-generator
Daan De Meyer [Mon, 10 Jul 2023 13:49:42 +0000 (15:49 +0200)] 
Merge pull request #28334 from DaanDeMeyer/network-generator

Network generator fixes

10 months agoanalyze-pcrs: Fix typo 28333/head
Daan De Meyer [Mon, 10 Jul 2023 10:49:52 +0000 (12:49 +0200)] 
analyze-pcrs: Fix typo

10 months agotpm2-util: Check for dlopen() when calculating tpm2 support
Daan De Meyer [Mon, 10 Jul 2023 10:20:33 +0000 (12:20 +0200)] 
tpm2-util: Check for dlopen() when calculating tpm2 support

10 months agosleep: fix unused variable warning 28308/head
Luca Boccassi [Sun, 9 Jul 2023 12:03:44 +0000 (13:03 +0100)] 
sleep: fix unused variable warning

log_level_ignored is used only inside the ifdef, so declare it there too

10 months agoprocess-util: use clone2 on ia64
Luca Boccassi [Sat, 8 Jul 2023 15:43:28 +0000 (16:43 +0100)] 
process-util: use clone2 on ia64

glibc does not provide clone() on ia64, only clone2. But only as a
symbol in the shared library, there's no prototype in the gblic
headers, so we have to define it, copied from the manpage.

10 months agoCast st_dev to dev_t when printing
Luca Boccassi [Sat, 8 Jul 2023 15:35:00 +0000 (16:35 +0100)] 
Cast st_dev to dev_t when printing

st_dev is not the same as dev_t, and on O32 architectures like
mipsel it's an unsigned long, but dev_t is still unsigned long long,
so they don't match and compilation fails:

../src/journal/cat.c: In function ‘run’:
../src/basic/format-util.h:46:19: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=]
   46 | #  define DEV_FMT "%" PRIu64
      |                   ^~~
../src/journal/cat.c:168:34: note: in expansion of macro ‘DEV_FMT’
  168 |                 if (asprintf(&s, DEV_FMT ":" INO_FMT, st.st_dev, st.st_ino) < 0)
      |                                  ^~~~~~~
In file included from ../src/systemd/sd-journal.h:20,
                 from ../src/journal/cat.c:11:
/usr/include/inttypes.h:105:41: note: format string is defined here
  105 | # define PRIu64         __PRI64_PREFIX "u"

10 months agonetwork-generator: Add missing umask(0022) 28334/head
Daan De Meyer [Mon, 10 Jul 2023 10:30:35 +0000 (12:30 +0200)] 
network-generator: Add missing umask(0022)

10 months agonetwork-generator: Add missing log_setup()
Daan De Meyer [Mon, 10 Jul 2023 10:30:15 +0000 (12:30 +0200)] 
network-generator: Add missing log_setup()

10 months agoboot: Fix build for x32
Jan Janssen [Sun, 9 Jul 2023 17:30:27 +0000 (19:30 +0200)] 
boot: Fix build for x32

When building on a x32 system we need to explicitly pass `-m64` to get
the right ABI as the kernel and EFI are still 64bit. For this to
actually work, a suitable multilib compiler, 32bit libc headers and
libgcc need to be installed (similar to ia32 builds on x86_64).

10 months agoPrint ssize_t as %zd
Luca Boccassi [Sat, 8 Jul 2023 15:21:37 +0000 (16:21 +0100)] 
Print ssize_t as %zd

On some architectures (x32) ssize_t is int, not long int.

../src/basic/confidential-virt.c: In function ‘msr’:
../src/basic/confidential-virt.c:133:27: error: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘ssize_t’ {aka ‘int’} [-Werror=format=]
  133 |                 log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  134 |                           rv,
      |                           ~~
      |                           |
      |                           ssize_t {aka int}
../src/basic/log.h:214:86: note: in definition of macro ‘log_full_errno_zerook’
  214 |                         ? log_internal(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
      |                                                                                      ^~~~~~~~~~~
../src/basic/log.h:242:28: note: in expansion of macro ‘log_full’
  242 | #define log_debug(...)     log_full(LOG_DEBUG,   __VA_ARGS__)
      |                            ^~~~~~~~
../src/basic/confidential-virt.c:133:17: note: in expansion of macro ‘log_debug’
  133 |                 log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
      |                 ^~~~~~~~~
../src/basic/confidential-virt.c:133:41: note: format string is defined here
  133 |                 log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
      |                                       ~~^
      |                                         |
      |                                         long int
      |                                       %d

10 months agotest: mount_option_supported() returns EAGAIN when new mount API is not supported
Luca Boccassi [Mon, 10 Jul 2023 00:00:18 +0000 (01:00 +0100)] 
test: mount_option_supported() returns EAGAIN when new mount API is not supported

Don't fail test-mountpoint-util if we get EAGAIN as it's expected on old
kernels

10 months agoefi: skip libefitest if 'bootloader' is explicitly set to false
Luca Boccassi [Sun, 9 Jul 2023 13:39:05 +0000 (14:39 +0100)] 
efi: skip libefitest if 'bootloader' is explicitly set to false

On x32 efi_arch will be set as the kernel architecture is just x86_64,
but there's no userland support to build the EFI ABI. When -Dbootloader=false
is set, skip libefitest too.

10 months agoMerge pull request #28321 from YHNdnzj/hibernate-resume-compare-dev
Luca Boccassi [Sun, 9 Jul 2023 23:13:08 +0000 (00:13 +0100)] 
Merge pull request #28321 from YHNdnzj/hibernate-resume-compare-dev

hibernate-resume: follow-ups

10 months agohibernate-resume: compare device nodes using path_equal_or_inode_same 28321/head
Mike Yuan [Sun, 9 Jul 2023 16:40:13 +0000 (00:40 +0800)] 
hibernate-resume: compare device nodes using path_equal_or_inode_same

Follow-up for 9deeca127520b1098c3dfab9cdfd3b9c6bf983a4

10 months agohibernate-resume: add missing newline to the generated unit
Mike Yuan [Sun, 9 Jul 2023 16:35:31 +0000 (00:35 +0800)] 
hibernate-resume: add missing newline to the generated unit

10 months agohibernate-resume: refuse resume if resume_offset= is set but not resume=
Mike Yuan [Sat, 8 Jul 2023 22:10:18 +0000 (06:10 +0800)] 
hibernate-resume: refuse resume if resume_offset= is set but not resume=

10 months agococcinelle/take-fd: match for -EBADF instead of -1
Mike Yuan [Sat, 8 Jul 2023 18:33:26 +0000 (02:33 +0800)] 
coccinelle/take-fd: match for -EBADF instead of -1

Follow-up for 254d1313ae5a69c08c9b93032aaaf3d6083cfc07

10 months agoLICENSES/README.md: fix syntax
Mike Yuan [Sat, 8 Jul 2023 22:16:10 +0000 (06:16 +0800)] 
LICENSES/README.md: fix syntax

10 months agoseccomp: add riscv_hwprobe to @default
Xeonacid [Sat, 8 Jul 2023 12:56:47 +0000 (20:56 +0800)] 
seccomp: add riscv_hwprobe to @default

This syscall is for probing hardware capabilities from userspace and should do no harm.
Added in https://github.com/torvalds/linux/commit/ea3de9ce8aa280c5175c835bd3e94a3a9b814b74

10 months agoMerge pull request #28309 from weblate/weblate-systemd-master
Mike Yuan [Sat, 8 Jul 2023 17:47:01 +0000 (01:47 +0800)] 
Merge pull request #28309 from weblate/weblate-systemd-master

Translations update from Fedora Weblate

10 months agopo: Translated using Weblate (Georgian) 28309/head
Temuri Doghonadze [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)] 
po: Translated using Weblate (Georgian)

Currently translated at 100.0% (195 of 195 strings)

Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ka/
Translation: systemd/main

10 months agopo: Translated using Weblate (Ukrainian)
Yuri Chornoivan [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)] 
po: Translated using Weblate (Ukrainian)

Currently translated at 100.0% (195 of 195 strings)

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/uk/
Translation: systemd/main

10 months agopo: Translated using Weblate (Swedish)
Luna Jernberg [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)] 
po: Translated using Weblate (Swedish)

Currently translated at 100.0% (195 of 195 strings)

Co-authored-by: Luna Jernberg <bittin@reimu.nl>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sv/
Translation: systemd/main

10 months agopo: Translated using Weblate (Korean)
김인수 [Sat, 8 Jul 2023 17:21:02 +0000 (19:21 +0200)] 
po: Translated using Weblate (Korean)

Currently translated at 100.0% (195 of 195 strings)

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

10 months agopo: Translated using Weblate (Czech)
Pavel Borecki [Sat, 8 Jul 2023 17:21:01 +0000 (19:21 +0200)] 
po: Translated using Weblate (Czech)

Currently translated at 100.0% (195 of 195 strings)

Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/cs/
Translation: systemd/main

10 months agofuzz: switch fuzz-manager-serialize to MANAGER_TEST_RUN_MINIMAL
Luca Boccassi [Fri, 7 Jul 2023 21:49:31 +0000 (22:49 +0100)] 
fuzz: switch fuzz-manager-serialize to MANAGER_TEST_RUN_MINIMAL

When there is no access to cgroups MANAGER_TEST_RUN_BASIC will fail
to set up and assert. This happens on a build system like Debian's.
Switch to _MINIMAL which skips cgroup and other machine-wide setups.

10 months agotest: Add DA lockout handling to TEST-70-TPM2
Dan Streetman [Fri, 7 Jul 2023 17:37:28 +0000 (13:37 -0400)] 
test: Add DA lockout handling to TEST-70-TPM2

Since this test intentionally provides an incorrect PIN, the DA lockout counter
is incremented; the test needs to reset it so there is no DA lockout.

10 months agotest-proc-cmdline: run tests only with efi
Christian Hesse [Fri, 7 Jul 2023 13:58:55 +0000 (15:58 +0200)] 
test-proc-cmdline: run tests only with efi

Run these tests only with efi enabled.

10 months agodissect: add new verbs to brief version of cmline in --help
Lennart Poettering [Fri, 7 Jul 2023 14:00:31 +0000 (16:00 +0200)] 
dissect: add new verbs to brief version of cmline in --help

10 months agoMerge pull request #28287 from yuwata/network-null-address
Yu Watanabe [Fri, 7 Jul 2023 16:13:17 +0000 (01:13 +0900)] 
Merge pull request #28287 from yuwata/network-null-address

network: fix null address handling

10 months agoMerge pull request #28296 from bluca/shell_compl
Yu Watanabe [Fri, 7 Jul 2023 16:11:41 +0000 (01:11 +0900)] 
Merge pull request #28296 from bluca/shell_compl

Add new verbs to bash shell completions

10 months agoshell-completion: add show-cache to bash 28296/head
Luca Boccassi [Fri, 7 Jul 2023 12:41:15 +0000 (13:41 +0100)] 
shell-completion: add show-cache to bash

10 months agoshell-completion: add whoami to bash
Luca Boccassi [Fri, 7 Jul 2023 12:40:12 +0000 (13:40 +0100)] 
shell-completion: add whoami to bash

10 months agoshell-completion: add soft-reboot to bash
Luca Boccassi [Fri, 7 Jul 2023 12:39:21 +0000 (13:39 +0100)] 
shell-completion: add soft-reboot to bash

10 months agoMerge pull request #28295 from eworm-de/zsh-soft-reboot
Luca Boccassi [Fri, 7 Jul 2023 12:37:35 +0000 (13:37 +0100)] 
Merge pull request #28295 from eworm-de/zsh-soft-reboot

shell-completion/zsh: misc verbs

10 months agoshell-completion/zsh/resolvectl: add show-cache 28295/head
Christian Hesse [Fri, 7 Jul 2023 12:05:11 +0000 (14:05 +0200)] 
shell-completion/zsh/resolvectl: add show-cache

Make zsh shell-completion aware of show-cache.

10 months agoshell-completion/zsh/systemctl: add whoami
Christian Hesse [Fri, 7 Jul 2023 12:02:41 +0000 (14:02 +0200)] 
shell-completion/zsh/systemctl: add whoami

Make zsh shell-completion aware of whoami.

10 months agoshell-completion/zsh/systemctl: add soft-reboot
Christian Hesse [Fri, 7 Jul 2023 11:49:11 +0000 (13:49 +0200)] 
shell-completion/zsh/systemctl: add soft-reboot

Make zsh shell-completion aware of soft-reboot.

10 months agomeson: allow to fallback to use libxcrypt.pc or glibc's libcrypt
Yu Watanabe [Fri, 7 Jul 2023 09:49:04 +0000 (18:49 +0900)] 
meson: allow to fallback to use libxcrypt.pc or glibc's libcrypt

Some distributions still use glibc's libcrypt. In that case, libcrypt.pc
does not exist and dependency() will fail.
Also, even if libxcrypt is used, there may not be a symlink
from libcrypt.pc to libxcrypt.pc. So, let's add a secondary name.

Follow-up for d625f717db6e151fd78742593c35eaba4cd2841d.

Fixes #28289.

10 months agotest: remove +x from some units
Luca Boccassi [Fri, 7 Jul 2023 09:51:18 +0000 (10:51 +0100)] 
test: remove +x from some units

10 months agotypo: dont -> don't
Luca Boccassi [Fri, 7 Jul 2023 09:47:01 +0000 (10:47 +0100)] 
typo: dont -> don't

10 months agotest: add +x to generator-utils.sh
Luca Boccassi [Fri, 7 Jul 2023 09:42:18 +0000 (10:42 +0100)] 
test: add +x to generator-utils.sh

It is marked and named as a script, so add +x otherwise Lintian complains:

 W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/generator-utils.sh]

10 months agoREADME: mention that meson 0.60 is now required
Luca Boccassi [Fri, 7 Jul 2023 10:44:54 +0000 (11:44 +0100)] 
README: mention that meson 0.60 is now required

10 months agoNEWS: mention that meson 0.60 is now required
Luca Boccassi [Fri, 7 Jul 2023 10:44:31 +0000 (11:44 +0100)] 
NEWS: mention that meson 0.60 is now required

10 months agoNEWS: mention that gnu-efi is no longer required
Luca Boccassi [Fri, 7 Jul 2023 10:42:46 +0000 (11:42 +0100)] 
NEWS: mention that gnu-efi is no longer required

10 months agotest-network: add tests for null addresses 28287/head
Yu Watanabe [Fri, 7 Jul 2023 01:23:48 +0000 (10:23 +0900)] 
test-network: add tests for null addresses

For issue #26113.

10 months agonetwork: make address_get() work for null address
Yu Watanabe [Fri, 7 Jul 2023 02:24:03 +0000 (11:24 +0900)] 
network: make address_get() work for null address

When a static null address is requested, e.g. Address=0.0.0.0/24,
then the corresponding Address object owned by Network object has
null address, and previously it did not match any addresses already
assigne to the interface.

Let's search matching Address object when originally it is requested as
the null address.

Then, the address configured with requested as a null address will be
kept on reconfigure.

Fixes #26113.

10 months agonetwork: always copy input address for link_request_address()
Yu Watanabe [Fri, 7 Jul 2023 02:20:49 +0000 (11:20 +0900)] 
network: always copy input address for link_request_address()

Then, the code becomes much simpler.
This also adds several missing log messages.

No functional change, just refactoring.

10 months agonetwork: also use address_kernel_{hash,compare}_func() for managing address requests
Yu Watanabe [Fri, 7 Jul 2023 04:18:15 +0000 (13:18 +0900)] 
network: also use address_kernel_{hash,compare}_func() for managing address requests

Request may refer Address object owned by Link, but its broadcast
address or label may be updated by address_equalify(), hence these
fields cannot be used in the hash and compare functions.

10 months agonetwork: log broadcast address and address label
Yu Watanabe [Fri, 7 Jul 2023 06:35:53 +0000 (15:35 +0900)] 
network: log broadcast address and address label

10 months agonetwork: ignore Broadcast= setting when the address is null
Yu Watanabe [Fri, 7 Jul 2023 02:31:25 +0000 (11:31 +0900)] 
network: ignore Broadcast= setting when the address is null

When an address is requested with null address, then broadcast should be
determined after an address aquired that will be assigned to the
interface.

10 months agonetwork: split-out address_section_adjust_broadcast()
Yu Watanabe [Fri, 7 Jul 2023 02:30:27 +0000 (11:30 +0900)] 
network: split-out address_section_adjust_broadcast()

No functional change, just refactoring.

10 months agoman/systemd.unit: document restart behavior on Upholds=
Christian Hesse [Fri, 7 Jul 2023 08:20:10 +0000 (10:20 +0200)] 
man/systemd.unit: document restart behavior on Upholds=

Behavior on constantly failing (or oneshot) unit was unclear. Let's
document it here.

10 months agofstab-generator: unify initrd-root-device.target dependency handling code
Lily Foster [Thu, 6 Jul 2023 20:13:53 +0000 (16:13 -0400)] 
fstab-generator: unify initrd-root-device.target dependency handling code

This fixes a bug from #26038 where it would actually write generator
stuff during sysroot check when it was only supposed to check for daemon
reload.

10 months agoMerge pull request #28233 from mrc0mmand/append-to-corrupted-journals
Yu Watanabe [Fri, 7 Jul 2023 02:51:02 +0000 (11:51 +0900)] 
Merge pull request #28233 from mrc0mmand/append-to-corrupted-journals

test: append to corrupted journals