]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 months agotest: use systemd-asan-env environment file at more places 35480/head
Yu Watanabe [Sat, 7 Dec 2024 19:01:48 +0000 (04:01 +0900)] 
test: use systemd-asan-env environment file at more places

10 months agotest-network: check status of networkd after everything cleared on tear down
Yu Watanabe [Thu, 5 Dec 2024 23:42:41 +0000 (08:42 +0900)] 
test-network: check status of networkd after everything cleared on tear down

Otherwise, if networkd is failed, e.g. .network files that triggered the
failure will remain, and the next test case will start with previous
.network files. So, most subsequent test will fail.

10 months agomkosi/sanitizers: add more ASAN options
Yu Watanabe [Thu, 5 Dec 2024 18:42:09 +0000 (03:42 +0900)] 
mkosi/sanitizers: add more ASAN options

This adds the following three options:
- detect_invalid_pointer_pairs=2
- handle_ioctl=1
- print_cmdline=1

Note, these options were used in the CentOS CI job.

10 months agotest: extract sanitizer reports from journal
Yu Watanabe [Sat, 7 Dec 2024 04:36:39 +0000 (13:36 +0900)] 
test: extract sanitizer reports from journal

10 months agomkosi: move drop-in config for sanitizers
Yu Watanabe [Sun, 8 Dec 2024 19:18:17 +0000 (04:18 +0900)] 
mkosi: move drop-in config for sanitizers

10 months agoRevert "test: tentatively disable SELinux tests"
Yu Watanabe [Sun, 8 Dec 2024 03:59:16 +0000 (12:59 +0900)] 
Revert "test: tentatively disable SELinux tests"

This reverts commit 261a3d191ed53498e7672ad4da5936a881866088.

10 months agohwdb: Add Chuwi MiniBook X trackpad fuzz
Greg Heartsfield [Mon, 9 Dec 2024 16:32:15 +0000 (10:32 -0600)] 
hwdb: Add Chuwi MiniBook X trackpad fuzz

This adds X/Y fuzz for the Chuwi MiniBook X trackpad.  There is
significant trackpad jitter without this setting applied.

10 months agomkosi: Use rawhide tools tree in CI
Daan De Meyer [Mon, 9 Dec 2024 16:00:24 +0000 (17:00 +0100)] 
mkosi: Use rawhide tools tree in CI

To build rawhide images we might need more recent tools from rawhide
itself. While Arch would generally be up-to-date enough as well, it
doesn't provide the selinux tools so we use Fedora Rawhide instead.

10 months agojournalctl: show coredumps again when --unit= is specified
Yu Watanabe [Fri, 6 Dec 2024 19:08:59 +0000 (04:08 +0900)] 
journalctl: show coredumps again when --unit= is specified

This is a revised version of cbd5f5d7d6d652d52a18170123f5d08baf7e9862,
which is reverted by 560412148fa62d779ea522d43960dd3acd44b261.

The filter condition for _UID= field was added by
fdcd37df3b97abc381c7b7a29b81cc013c7a3230. However, after
888e378da2dbf4520e68a9d7e59712a3cd5a830f, coredumps for system services are
stored by systemd-coredump user. Hence, _UID=0 does not match anything anymore.

When we are reading the system journal, let's set _UID=<systemd-coredump>,
then we can show coredumps for system services again. When we are reading
an external journal, then the uid of systemd-coredump may be different
from the one on the current system, so let's drop the filter condition
for _UID= in that case.

10 months agosystemctl: use correct runtime scope
Lennart Poettering [Mon, 9 Dec 2024 10:38:26 +0000 (11:38 +0100)] 
systemctl: use correct runtime scope

10 months agoboot: exclude the trailing padding from initrd size in initrd_prepare()
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2024 12:11:02 +0000 (13:11 +0100)] 
boot: exclude the trailing padding from initrd size in initrd_prepare()

This is a follow-up for f8fa4222c9ac3e74e91c64e25e9532c99559cf99 (boot: Make
initrd_prepare() semantically equivalent to combine_initrds()). That commit
changed the way that the initrd is prepared for type#1 boot loader entries,
also effectively rounding up the sizes to a multiple of 4. In [1], downstream
packagers report that the trailing zeroes result in the calculated hash being
different. To restore compatibility with previous hash calculations and
signatures, change the reported size by excluding the trailing padding. This
should restore the calculation results for the case where only one initrd is
used.

This patch doesn't touch the stub, i.e. doesn't change behaviour for UKIs. The
seems fine, since we didn't change that recently, so any changes there would
break compatiblity. The measurement results for type#1 and type#2 entries are
generally going to be different anyway. ukify and systemd-measure are also out
of scope here, because they are for UKIs.

Fixes https://github.com/systemd/systemd/issues/35439.
The other changes to the way the initrd is constructed are kept, so hopefully
the original issue with booting in qemu is not recreated.

[1] https://bugzilla.suse.com/show_bug.cgi?id=1233752

My simple test: I'm booting a QEMU VM with systemd-boot and a type#1 entry.
With old systemd-boot:
$ sudo systemd-pcrlock log | grep 'kernel-initrd.*event-tag'
  9 █ kernel-initrd  event-tag  - a337a8321bf81de5c53a842843e8f9a926f73a676e5620ff76df94d1c66bc931 F   - Linux: kernel command line
  9 █ kernel-initrd  event-tag  - aec1aee5358bde36f5498f2dc243dec2b103f81242de57b887a11f53677f1272 F   - Linux: initrd
With updated systemd-boot:
$ sudo systemd-pcrlock log | grep 'kernel-initrd.*event-tag'
  9 █ kernel-initrd  event-tag  - a337a8321bf81de5c53a842843e8f9a926f73a676e5620ff76df94d1c66bc931 F   - Linux: kernel command line
  9 █ kernel-initrd  event-tag  - 3ccaa710304aef8734a20265ea7fd3dd67d5461c6b3309c6d30d5c7d2a3ae7f9 F   - Linux: initrd
This matches the initrd hash:
$ sudo sha256sum /efi//26f948d2082e4ae89f5a3af351b63149/6.12.0-rc4+/initrd-dracut
3ccaa710304aef8734a20265ea7fd3dd67d5461c6b3309c6d30d5c7d2a3ae7f9  /efi//26f948d2082e4ae89f5a3af351b63149/6.12.0-rc4+/initrd-dracut

10 months agomkosi: various improvements (#35491)
Daan De Meyer [Sun, 8 Dec 2024 15:12:21 +0000 (16:12 +0100)] 
mkosi: various improvements (#35491)

10 months agomkosi: Set meson --max-lines= to 300 in CI 35491/head
Daan De Meyer [Fri, 6 Dec 2024 14:21:29 +0000 (15:21 +0100)] 
mkosi: Set meson --max-lines= to 300 in CI

By default meson only shows the last 100 lines of output for failed
tests. Let's bump this to 300 with the new --max-lines= option I added
so we get more useful output on test failures.

10 months agomkosi: Use mkosi sandbox in CI with Fedora tools tree
Daan De Meyer [Fri, 6 Dec 2024 14:20:15 +0000 (15:20 +0100)] 
mkosi: Use mkosi sandbox in CI with Fedora tools tree

This gives us a newer meson which will allow us to use the new
--max-lines= feature I added in meson 1.5.0.

10 months agotest: Set kernel loglevel to INFO when running tests unattended
Daan De Meyer [Fri, 6 Dec 2024 14:13:16 +0000 (15:13 +0100)] 
test: Set kernel loglevel to INFO when running tests unattended

This makes sure all kernel log messages are logged to the console.
This should be helpful during shutdown to detect possible issues with
journald when the logs can't be written to the journal itself anymore
but are written to kmsg.

10 months agomkosi: Move leak sanitizer supressions file to sanitizers extra tree
Daan De Meyer [Fri, 6 Dec 2024 14:07:35 +0000 (15:07 +0100)] 
mkosi: Move leak sanitizer supressions file to sanitizers extra tree

10 months agomkosi: Reduce kernel command line size
Daan De Meyer [Fri, 6 Dec 2024 14:04:56 +0000 (15:04 +0100)] 
mkosi: Reduce kernel command line size

The kernel command line has a size limit and we've hit it before so
let's move some stuff to configuration files or scripts to reduce the
kernel command line size a bit.

10 months agomkosi: Update to latest
Daan De Meyer [Sun, 8 Dec 2024 11:55:35 +0000 (12:55 +0100)] 
mkosi: Update to latest

10 months agotest: tentatively disable SELinux tests
Yu Watanabe [Sun, 8 Dec 2024 00:22:23 +0000 (09:22 +0900)] 
test: tentatively disable SELinux tests

Currently, mkosi GitHub action complains the following:
===
Could not find 'setfiles' which is required to relabel files.
===
Let's tentatively disable SELinux test.

11 months agosysupdate: fix typo in DBus config
Abderrahim Kitouni [Sat, 7 Dec 2024 08:10:59 +0000 (09:10 +0100)] 
sysupdate: fix typo in DBus config

11 months agotest: Remove old bash test runner
Daan De Meyer [Thu, 5 Sep 2024 18:37:37 +0000 (20:37 +0200)] 
test: Remove old bash test runner

We put a timeline of 257 to remove the old bash test runner so since
we're about to release 257, let's remove the old bash test runner in
favor of the meson + mkosi test runner.

11 months agoRevert "journalctl: show coredumps again when --unit= is specified"
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2024 10:11:24 +0000 (11:11 +0100)] 
Revert "journalctl: show coredumps again when --unit= is specified"

This reverts commit cbd5f5d7d6d652d52a18170123f5d08baf7e9862.

11 months agojournalctl: show coredumps again when --unit= is specified
Yu Watanabe [Thu, 5 Dec 2024 21:57:39 +0000 (06:57 +0900)] 
journalctl: show coredumps again when --unit= is specified

This effectively reverts fdcd37df3b97abc381c7b7a29b81cc013c7a3230.

After 888e378da2dbf4520e68a9d7e59712a3cd5a830f, coredumps for system
services are stored by systemd-coredump user. Henve, _UID=0 does not
match anything anymore.

Before:
```
$ build/journalctl -u systemd-networkd.service -p2 -n1
-- No entries --
```

After:
```
$ build/journalctl -u systemd-networkd.service -p2 -n1
Dec 06 05:39:55 H systemd-coredump[4187]: [🡕] Process 4145 (systemd-network) of user 192 dumped core.
(snip)
```

11 months agopo: Translated using Weblate (Russian)
Sergey A [Fri, 6 Dec 2024 08:19:09 +0000 (09:19 +0100)] 
po: Translated using Weblate (Russian)

Currently translated at 100.0% (257 of 257 strings)

Co-authored-by: Sergey A <Ser82-png@yandex.ru>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/ru/
Translation: systemd/main

11 months agoMore assert macros (#35471)
Luca Boccassi [Fri, 6 Dec 2024 00:50:07 +0000 (00:50 +0000)] 
More assert macros (#35471)

11 months agomkosi: Make sure the /coverage directory exists
Daan De Meyer [Thu, 5 Dec 2024 19:16:58 +0000 (20:16 +0100)] 
mkosi: Make sure the /coverage directory exists

11 months agotest-parse-util: use ASSERT_* macros 35471/head
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 10:55:00 +0000 (11:55 +0100)] 
test-parse-util: use ASSERT_* macros

11 months agotest-condition: use xsprintf and drop pointless cast
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 10:10:07 +0000 (11:10 +0100)] 
test-condition: use xsprintf and drop pointless cast

11 months agotest-condition: use ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 10:08:48 +0000 (11:08 +0100)] 
test-condition: use ASSERT_* macros

Some strange asserts are dropped.

11 months agomkosi: install util-linux-script in F42 too
Luca Boccassi [Thu, 5 Dec 2024 16:59:04 +0000 (16:59 +0000)] 
mkosi: install util-linux-script in F42 too

11 months agoman: clarify wording regarding MONITOR_* envs
Septatrix [Wed, 4 Dec 2024 23:27:04 +0000 (00:27 +0100)] 
man: clarify wording regarding MONITOR_* envs

11 months agodocs/MEMORY_PRESSURE: fix typo
Tristan F.-R. [Thu, 5 Dec 2024 16:17:13 +0000 (08:17 -0800)] 
docs/MEMORY_PRESSURE: fix typo

corrects "focusses" -> "focuses"

11 months agotest-time-util: do more suppression of time zone checks
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 12:32:19 +0000 (13:32 +0100)] 
test-time-util: do more suppression of time zone checks

The issue is directly triggered by tzdata-2024b, where the setting of timezone
started to fail and the tests stopped passing. But those timestamps in 1/1/1970
appear to have some problems already before:

  $ sudo date -s 'Thu 1970-01-01 13:00:01 WET'
  Thu Jan  1 03:00:01 PM EET 1970
  $ sudo date -s 'Thu 1970-01-01 12:00:01 WET'
  date: cannot set date: Invalid argument
  Thu Jan  1 02:00:01 PM EET 1970
  $ rpm -q tzdata
  tzdata-2024a-9.fc41.noarch

The same issue appears with other timezones. So move the first timestamp one
day forward to avoid the issue.

After the previous problem is solved, we also get the problem already seen
previously where the roundtrip returns a time that is off by one hour:

@86401000000 → Fri 1970-01-02 00:00:01 WET → @82801000000 → Thu 1970-01-01 23:00:01 WET
Assertion 'x / USEC_PER_SEC == y / USEC_PER_SEC' failed at src/test/test-time-util.c:415, function test_format_timestamp_impl(). Aborting.

Extend the override to suppress this.

11 months agotest: Implement TEST_PREFER_QEMU and use it in one of the mkosi jobs
Daan De Meyer [Thu, 5 Dec 2024 13:01:08 +0000 (14:01 +0100)] 
test: Implement TEST_PREFER_QEMU and use it in one of the mkosi jobs

We want to make sure the integration tests that don't require qemu
can run successfully both in an nspawn container and in a qemu VM.
So let's add one more knob TEST_PREFER_QEMU=1 to run jobs that normally
require nspawn in qemu instead.

Running these tests in qemu is also possible by not running as root but
that's very implicit so we add an explicit knob instead to make it explicit
that we want to run these in qemu instead of nspawn.

11 months agomkosi: update opensuse packaging commit due to force push
Luca Boccassi [Thu, 5 Dec 2024 12:03:14 +0000 (12:03 +0000)] 
mkosi: update opensuse packaging commit due to force push

11 months agomeson: avoid error message if git is not installed
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 11:39:04 +0000 (12:39 +0100)] 
meson: avoid error message if git is not installed

[1/9] Generating version.h with a custom command
/home/zbyszek/src/systemd/tools/vcs-tag.sh: line 17: git: command not found

If git is not available, do not try to call it.

11 months agoci: Implement coverage on top of mkosi (#35407)
Daan De Meyer [Thu, 5 Dec 2024 09:47:45 +0000 (10:47 +0100)] 
ci: Implement coverage on top of mkosi  (#35407)

11 months agotest-cgroup: use ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 09:36:03 +0000 (10:36 +0100)] 
test-cgroup: use ASSERT_* macros

The test for inode_same_at() is tightened to a specific value.

11 months agotest-bus-util: use ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 09:22:03 +0000 (10:22 +0100)] 
test-bus-util: use ASSERT_* macros

11 months agotest-acl-util: use ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2024 09:18:36 +0000 (10:18 +0100)] 
test-acl-util: use ASSERT_* macros

11 months agoci: Implement coverage on top of mkosi 35407/head
Daan De Meyer [Tue, 4 Jun 2024 08:54:22 +0000 (10:54 +0200)] 
ci: Implement coverage on top of mkosi

11 months agodmi: add RISC-V 64bit support
Andreas Schwab [Wed, 4 Dec 2024 12:41:14 +0000 (13:41 +0100)] 
dmi: add RISC-V 64bit support

11 months agodocs/CONTRIBUTING: adjust grammar, info about tests and labels
Zbigniew Jędrzejewski-Szmek [Wed, 4 Dec 2024 14:03:07 +0000 (15:03 +0100)] 
docs/CONTRIBUTING: adjust grammar, info about tests and labels

Unfortunately our CI fails pretty much constantly, so instead of saying that
"tests don't pass", weasel this into "unit tests don't pass". Also fix grammar.

Labels are adjusted automatically now, so remove that sentence.

11 months agomkosi: update fedora commit reference
Zbigniew Jędrzejewski-Szmek [Wed, 4 Dec 2024 10:45:11 +0000 (11:45 +0100)] 
mkosi: update fedora commit reference

433efb38f4 Only apply the new Recommends in fedora
8dc31eaf04 Recommend qemu-kvm-core instead of qemu-kvm
53cfdea02a Update tmpfiles --destroy-data patch
04f0a692da Version 257~rc3
243a055429 Make systemd-network-generator co-owned by -udev and -networkd
37c10f5b03 Pull in qemu from systemd-container

11 months agoUse nicer syntax in two places in CI (#35455)
Luca Boccassi [Wed, 4 Dec 2024 13:32:28 +0000 (13:32 +0000)] 
Use nicer syntax in two places in CI (#35455)

11 months agotest-execute: Make /coverage writable in DynamicUser= tests
Daan De Meyer [Tue, 3 Dec 2024 13:45:43 +0000 (14:45 +0100)] 
test-execute: Make /coverage writable in DynamicUser= tests

DynamicUser=yes implies ProtectSystem=yes, so let's explicitly make
sure the coverage directory is writable in these tests.

11 months agotest-execute: Don't make rootfs read-only if we're collecting coverage
Daan De Meyer [Tue, 3 Dec 2024 14:08:11 +0000 (15:08 +0100)] 
test-execute: Don't make rootfs read-only if we're collecting coverage

The test needs to be able to write coverage data to the rootfs so don't
make / read-only.

11 months agotest: Skip TEST-38-FREEZER if coverage is enabled
Daan De Meyer [Mon, 2 Dec 2024 17:05:26 +0000 (18:05 +0100)] 
test: Skip TEST-38-FREEZER if coverage is enabled

The test freezes regularly when run with coverage so let's skip it
if coverage is enabled.

11 months agocreds-util: Improve one log message
Daan De Meyer [Sat, 30 Nov 2024 15:32:38 +0000 (16:32 +0100)] 
creds-util: Improve one log message

11 months agotest-creds: Migrate to new assertion macros
Daan De Meyer [Sat, 30 Nov 2024 12:19:39 +0000 (13:19 +0100)] 
test-creds: Migrate to new assertion macros

11 months agomkosi: disable Fedora specific drop-in config when running with sanitizers (#35460)
Luca Boccassi [Wed, 4 Dec 2024 10:09:37 +0000 (10:09 +0000)] 
mkosi: disable Fedora specific drop-in config when running with sanitizers (#35460)

Hopefully fixes #35335.

11 months agoTEST-64: use more idiomatic loop syntax 35455/head
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 16:12:33 +0000 (17:12 +0100)] 
TEST-64: use more idiomatic loop syntax

11 months agomkosi/ci: use a bash array to pass options
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 16:11:41 +0000 (17:11 +0100)] 
mkosi/ci: use a bash array to pass options

This patch initially also changed the configuration, but that'll be done in a
different way, so all that remains is the syntax change.
An array is nicer because the array definition can have inline comments and
doesn't use continuation symbols which are easy to mess up in edits.

11 months agopo: Translated using Weblate (Slovenian)
Martin Srebotnjak [Wed, 4 Dec 2024 02:38:35 +0000 (03:38 +0100)] 
po: Translated using Weblate (Slovenian)

Currently translated at 100.0% (257 of 257 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/sl/
Translation: systemd/main

11 months agopo: Translated using Weblate (Portuguese (Brazil))
Geraldo S. Simião Kutz [Wed, 4 Dec 2024 02:38:35 +0000 (03:38 +0100)] 
po: Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (257 of 257 strings)

Co-authored-by: Geraldo S. Simião Kutz <geraldo.simiao.kutz@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main

11 months agomkosi: disable Fedora specific drop-in config when running with sanitizers 35460/head
Yu Watanabe [Wed, 4 Dec 2024 00:21:21 +0000 (09:21 +0900)] 
mkosi: disable Fedora specific drop-in config when running with sanitizers

Hopefully fixes #35335.

11 months agoRevert "mkosi: extend DefaultTimeoutStopSec= when running on sanitizers"
Yu Watanabe [Wed, 4 Dec 2024 00:13:18 +0000 (09:13 +0900)] 
Revert "mkosi: extend DefaultTimeoutStopSec= when running on sanitizers"

This reverts commit b75befc3c98bcfa57ab801a24234ecab1c0b34a9.

Unfortunately, it does not work. Let's revert.

11 months agoMore test coverage (#35451)
Luca Boccassi [Tue, 3 Dec 2024 22:54:14 +0000 (22:54 +0000)] 
More test coverage (#35451)

Add some simple tests to cover lines reported as not covered by
coveralls.

11 months agoman: remove references to invalid rd.systemd.image_policy option
Antonio Alvarez Feijoo [Tue, 3 Dec 2024 16:25:57 +0000 (17:25 +0100)] 
man: remove references to invalid rd.systemd.image_policy option

The option with the `rd.` prefix is not implemented, the image policy is not
applied in the initrd.

11 months agohwdb: Make 3D mice work out-of-the-box
Bastien Nocera [Fri, 29 Nov 2024 21:20:29 +0000 (22:20 +0100)] 
hwdb: Make 3D mice work out-of-the-box

According to https://en.wikipedia.org/wiki/3Dconnexion, 3D mice are:
human interface devices for manipulating and navigating
computer-generated 3D imagery. These devices are often referred to as
3D motion controllers, 3D navigation devices, 6DOF devices (six
degrees of freedom) or a 3D mouse.

Applications that want to support 3D mice on Linux are expected to
either use spacenavd and its library, or consume the HID output
directly.

This patch makes it possible for a number of applications that use 3D
mice directly to work out of the box, such as PrusaSlicer and its
derivatives.

11 months agotest-format-table: add test for unsetting table name 35451/head
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 09:36:09 +0000 (10:36 +0100)] 
test-format-table: add test for unsetting table name

This should extend coverage to another part that previously wasn't covered.

11 months agotest-format-table: add smoke test for int/uint formatting
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 08:59:10 +0000 (09:59 +0100)] 
test-format-table: add smoke test for int/uint formatting

When looking at coverage data, I noticed that some types of ints have no
coverage whatsoever.

11 months agotest-format-table: convert to ASSERT_* macros
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 13:52:15 +0000 (14:52 +0100)] 
test-format-table: convert to ASSERT_* macros

11 months agoshared/tests: adjust error messages
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2024 13:25:59 +0000 (14:25 +0100)] 
shared/tests: adjust error messages

Grammar is improved a bit and some messages are shortened.

11 months agobuild(deps): bump softprops/action-gh-release from 2.0.8 to 2.1.0
dependabot[bot] [Sun, 1 Dec 2024 09:52:59 +0000 (09:52 +0000)] 
build(deps): bump softprops/action-gh-release from 2.0.8 to 2.1.0

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.8 to 2.1.0.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/c062e08bd532815e2082a85e87e3ef29c3e6d191...01570a1f39cb168c169c802c3bceb9e93fb10974)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
11 months agobuild(deps): bump github/codeql-action from 3.26.10 to 3.27.5
dependabot[bot] [Sun, 1 Dec 2024 09:53:11 +0000 (09:53 +0000)] 
build(deps): bump github/codeql-action from 3.26.10 to 3.27.5

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.10 to 3.27.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e2b3eafc8d227b0241d48be5f425d47c2d750a13...f09c1c0a94de965c15400f5634aa42fac8fb8f88)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
11 months agobuild(deps): bump ninja from 1.11.1.1 to 1.11.1.2 in /.github/workflows
dependabot[bot] [Sun, 1 Dec 2024 09:59:15 +0000 (09:59 +0000)] 
build(deps): bump ninja from 1.11.1.1 to 1.11.1.2 in /.github/workflows

Bumps [ninja](https://github.com/scikit-build/ninja-python-distributions) from 1.11.1.1 to 1.11.1.2.
- [Release notes](https://github.com/scikit-build/ninja-python-distributions/releases)
- [Changelog](https://github.com/scikit-build/ninja-python-distributions/blob/master/HISTORY.rst)
- [Commits](https://github.com/scikit-build/ninja-python-distributions/compare/1.11.1.1...1.11.1.2)

---
updated-dependencies:
- dependency-name: ninja
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
11 months agopid1: assume user namespaces are unavailable if we get -EINVAL from clone (#35440)
Luca Boccassi [Mon, 2 Dec 2024 22:03:52 +0000 (22:03 +0000)] 
pid1: assume user namespaces are unavailable if we get -EINVAL from clone (#35440)

11 months agoBash completion: no more ANSI colorcode in pathnames
Excited-bore [Mon, 2 Dec 2024 13:38:40 +0000 (14:38 +0100)] 
Bash completion: no more ANSI colorcode in pathnames

Bash completion: no more ANSI colorcode in pathnames

11 months agoukify: ellipsize CN to not exceed maximum length
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 13:42:23 +0000 (14:42 +0100)] 
ukify: ellipsize CN to not exceed maximum length

Currently the generation of the certificate fails if len(fqdn) >= 43.
Ellipsize the fqdn to let the tests pass in all cases.

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

11 months agobasic/namespace-util: fix double logging after fork failure 35440/head
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 10:25:53 +0000 (11:25 +0100)] 
basic/namespace-util: fix double logging after fork failure

[   10.056930] (journald)[104]: Failed to fork off '(sd-mkuserns)': Invalid argument
[   10.063727] systemd[1]: systemd-modules-load.service: About to execute: /usr/lib/systemd/systemd-modules-load
[   10.071148] (journald)[104]: Failed to fork process (sd-mkuserns): Invalid argument

safe_fork_full() already logs at debug level, so the caller shouldn't.

11 months agopid1: assume user namespaces are unavailable if we get -EINVAL from clone()
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 10:23:24 +0000 (11:23 +0100)] 
pid1: assume user namespaces are unavailable if we get -EINVAL from clone()

As reported in https://github.com/systemd/systemd/issues/35400,
on riscv64, with Linux version 6.6.51-linux4microchip+fpga-2024.09, we get:

[   10.063727] systemd[1]: systemd-modules-load.service: About to execute: /usr/lib/systemd/systemd-modules-load
[   10.071148] (journald)[104]: Failed to fork process (sd-mkuserns): Invalid argument

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

'r' is used to make the repeated checks shorter. Without that, the long variable
name is distracting.

11 months agocore/service: preserve RuntimeDirectory= even if oneshot service exits
Mike Yuan [Sat, 30 Nov 2024 17:04:52 +0000 (18:04 +0100)] 
core/service: preserve RuntimeDirectory= even if oneshot service exits

Follow-up for c26948c6dae1d2ca13499b36f193b13a0760834c

We only want to get rid of cred mount here, and RuntimeDirectory=
is documented to be retained for SERVICE_EXITED state.

Fixes #35427

11 months agoNEWS: adjust grammar
Zbigniew Jędrzejewski-Szmek [Mon, 2 Dec 2024 09:46:34 +0000 (10:46 +0100)] 
NEWS: adjust grammar

Follow-up for 1072618023cc3fc7f6f23e31e559f4d6e695aaff.

11 months agoTEST-13-NSPAWN: enable debugging logs by nspawn run by systemd-run
Yu Watanabe [Wed, 27 Nov 2024 16:14:24 +0000 (01:14 +0900)] 
TEST-13-NSPAWN: enable debugging logs by nspawn run by systemd-run

Otherwise, it is hard to debug issue #35209.

11 months agoNEWS: metion changes for networkd
Yu Watanabe [Sun, 1 Dec 2024 14:37:32 +0000 (23:37 +0900)] 
NEWS: metion changes for networkd

11 months agokernel-install: remove .extra.d/ directory too
Luca Boccassi [Fri, 29 Nov 2024 23:19:25 +0000 (23:19 +0000)] 
kernel-install: remove .extra.d/ directory too

When a UKI is removed, the per-UKI .extra.d/ directory (addons,
extensions, etc) is left behind.

11 months agosystemctl: skip checking inhibitors when dbus.service is not running
Yu Watanabe [Fri, 29 Nov 2024 17:52:01 +0000 (02:52 +0900)] 
systemctl: skip checking inhibitors when dbus.service is not running

Fixes a bug introduced by 804874d26ac73e0af07c4c5d7165c95372f03f6d.

Fixes #35416.

11 months agomkosi: update to latest
Daan De Meyer [Fri, 29 Nov 2024 11:21:52 +0000 (12:21 +0100)] 
mkosi: update to latest

11 months agomkosi: extend DefaultTimeoutStopSec= when running on sanitizers (#35420)
Luca Boccassi [Fri, 29 Nov 2024 21:48:29 +0000 (21:48 +0000)] 
mkosi: extend DefaultTimeoutStopSec= when running on sanitizers (#35420)

Hopefully fixes #35335.

11 months agomkosi: move setting for journald to mkosi.extra 35420/head
Yu Watanabe [Fri, 29 Nov 2024 19:31:45 +0000 (04:31 +0900)] 
mkosi: move setting for journald to mkosi.extra

11 months agomkosi: extend DefaultTimeoutStopSec= when running on sanitizers
Yu Watanabe [Fri, 29 Nov 2024 19:06:24 +0000 (04:06 +0900)] 
mkosi: extend DefaultTimeoutStopSec= when running on sanitizers

Hopefully fixes #35335.

11 months agomkosi: install correct package for mypy
Matteo Croce [Fri, 29 Nov 2024 01:30:34 +0000 (02:30 +0100)] 
mkosi: install correct package for mypy

Package "mypy" doesn't exist on all distro, install the correct package
depending on the distro.

11 months agoAnother tweak for the preparation of removal of sysvinit compat (#35414)
Luca Boccassi [Fri, 29 Nov 2024 15:34:34 +0000 (15:34 +0000)] 
Another tweak for the preparation of removal of sysvinit compat (#35414)

11 months agomeson: install README.logs independently of HAVE_SYSV_COMPAT 35414/head
Zbigniew Jędrzejewski-Szmek [Fri, 29 Nov 2024 13:15:55 +0000 (14:15 +0100)] 
meson: install README.logs independently of HAVE_SYSV_COMPAT

That file provides compatiblity (or more precisely the explanation for the lack
of compatibility) with syslog daemons. Those are used quite independently of
sysvinit. For example, RHEL uses rsyslog with systemd. We create
/var/log/journal, so it's no biggie to also provide /var/log/README with the
explanation. Let's keep it, since it might help some confused users, even when
compat with sysvinit is gone.

11 months agoRevert "link README.logs from tmpfiles.d/legacy.conf only if available"
Zbigniew Jędrzejewski-Szmek [Fri, 29 Nov 2024 13:12:46 +0000 (14:12 +0100)] 
Revert "link README.logs from tmpfiles.d/legacy.conf only if available"

This reverts commit c946b1357562e8643575dbbda2c8c6fff2c0e4f7.

The next patch will resolve the issue in a different way.

11 months agopo: Translated using Weblate (Georgian)
Temuri Doghonadze [Fri, 29 Nov 2024 12:38:37 +0000 (13:38 +0100)] 
po: Translated using Weblate (Georgian)

Currently translated at 100.0% (257 of 257 strings)

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

11 months agopo: Translated using Weblate (Ukrainian)
Yuri Chornoivan [Fri, 29 Nov 2024 12:38:37 +0000 (13:38 +0100)] 
po: Translated using Weblate (Ukrainian)

Currently translated at 100.0% (257 of 257 strings)

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

11 months agopo: Translated using Weblate (Turkish)
Oğuz Ersen [Fri, 29 Nov 2024 12:38:37 +0000 (13:38 +0100)] 
po: Translated using Weblate (Turkish)

Currently translated at 100.0% (257 of 257 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/tr/
Translation: systemd/main

11 months agopo: Translated using Weblate (Swedish)
Luna Jernberg [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)] 
po: Translated using Weblate (Swedish)

Currently translated at 100.0% (257 of 257 strings)

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

11 months agopo: Translated using Weblate (Korean)
김인수 [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)] 
po: Translated using Weblate (Korean)

Currently translated at 100.0% (257 of 257 strings)

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

11 months agopo: Translated using Weblate (Indonesian)
Andika Triwidada [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)] 
po: Translated using Weblate (Indonesian)

Currently translated at 100.0% (257 of 257 strings)

Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/id/
Translation: systemd/main

11 months agopo: Translated using Weblate (French)
Léane GRASSER [Fri, 29 Nov 2024 12:38:36 +0000 (13:38 +0100)] 
po: Translated using Weblate (French)

Currently translated at 100.0% (257 of 257 strings)

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

11 months agomkosi: Simplify sanitizer setup
Daan De Meyer [Wed, 27 Nov 2024 19:20:51 +0000 (20:20 +0100)] 
mkosi: Simplify sanitizer setup

Let's get rid of 20-sanitizers.conf and just move it into
mkosi.sanitizers instead.

11 months agoTypo fix in man/systemd.resource-control
SuhailAhmedVelorum [Thu, 28 Nov 2024 16:46:32 +0000 (22:16 +0530)] 
Typo fix in man/systemd.resource-control

11 months agoexecute: free syscall_log hashmap when done
David Tardon [Thu, 28 Nov 2024 12:33:55 +0000 (13:33 +0100)] 
execute: free syscall_log hashmap when done

Fixes #35394

11 months agocatalog: update Polish translation
Piotr Drąg [Thu, 28 Nov 2024 11:22:32 +0000 (12:22 +0100)] 
catalog: update Polish translation

Includes changes up to e1f9d3c84b66d1b86adaae4c7aebf89514685d51

11 months agopo: Translated using Weblate (Polish)
Piotr Drąg [Thu, 28 Nov 2024 11:23:11 +0000 (12:23 +0100)] 
po: Translated using Weblate (Polish)

Currently translated at 100.0% (257 of 257 strings)

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

11 months agosysupdate: add missing full stop in the polkit message (#35391)
Luca Boccassi [Thu, 28 Nov 2024 10:58:20 +0000 (10:58 +0000)] 
sysupdate: add missing full stop in the polkit message (#35391)

Follow-up for e55e7a5a613712dc9a94d40a1fea1f02d359961f.

11 months agopo: update translations 35391/head
Yu Watanabe [Thu, 28 Nov 2024 09:17:50 +0000 (18:17 +0900)] 
po: update translations