]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
17 months agomkosi: Use __meson_verbose in opensuse build script 33192/head
Daan De Meyer [Tue, 4 Jun 2024 09:04:05 +0000 (11:04 +0200)] 
mkosi: Use __meson_verbose in opensuse build script

OpenSUSE Tumbleweed now ships meson 1.4.0 which ships the new
__meson_verbose macro.

17 months agomkosi: Use meson_extra_configure_options for opensuse
Daan De Meyer [Tue, 4 Jun 2024 09:00:53 +0000 (11:00 +0200)] 
mkosi: Use meson_extra_configure_options for opensuse

This is now available so let's use it.

17 months agomkosi: Update opensuse commit to latest
Daan De Meyer [Tue, 4 Jun 2024 09:00:38 +0000 (11:00 +0200)] 
mkosi: Update opensuse commit to latest

17 months agoMerge pull request #33146 from DaanDeMeyer/clang
Daan De Meyer [Mon, 3 Jun 2024 13:43:31 +0000 (15:43 +0200)] 
Merge pull request #33146 from DaanDeMeyer/clang

mkosi: Add support for building with LLVM

17 months agomkosi: Allow using $MESON_VERBOSE to enable verbose meson output 33146/head
Daan De Meyer [Mon, 3 Jun 2024 07:47:33 +0000 (09:47 +0200)] 
mkosi: Allow using $MESON_VERBOSE to enable verbose meson output

17 months agomkosi: Build Fedora Rawhide sanitizers job with LLVM
Daan De Meyer [Sat, 1 Jun 2024 13:14:08 +0000 (15:14 +0200)] 
mkosi: Build Fedora Rawhide sanitizers job with LLVM

More coverage and clang tends to be better at sanitizers than gcc.

17 months agomkosi: Build with --werror in CI
Daan De Meyer [Sat, 1 Jun 2024 11:01:03 +0000 (13:01 +0200)] 
mkosi: Build with --werror in CI

17 months agomkosi: Allow clearing meson cache with WIPE=1
Daan De Meyer [Sat, 1 Jun 2024 12:45:22 +0000 (14:45 +0200)] 
mkosi: Allow clearing meson cache with WIPE=1

meson does not support changing compilation flags on the fly, when
doing so, the entire build directory has to be cleared explicitly, so
let's add a way to do that by setting WIPE=1.

Let's also allow developers to specify their own meson options via
$MESON_OPTIONS.

17 months agobuild(deps): bump redhat-plumbers-in-action/differential-shellcheck
dependabot[bot] [Sat, 1 Jun 2024 09:13:38 +0000 (09:13 +0000)] 
build(deps): bump redhat-plumbers-in-action/differential-shellcheck

Bumps [redhat-plumbers-in-action/differential-shellcheck](https://github.com/redhat-plumbers-in-action/differential-shellcheck) from 5.1.2 to 5.3.0.
- [Release notes](https://github.com/redhat-plumbers-in-action/differential-shellcheck/releases)
- [Changelog](https://github.com/redhat-plumbers-in-action/differential-shellcheck/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/redhat-plumbers-in-action/differential-shellcheck/compare/52bab0caa5249d6acd8bcd5bc7a68e69ac9319f9...60c9f2b924a9c5a2ddbb25e7b23e8e11b56faab9)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/differential-shellcheck
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3
dependabot[bot] [Sat, 1 Jun 2024 09:13:45 +0000 (09:13 +0000)] 
build(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3

Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.1 to 2.3.3.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/0864cf19026789058feabb7e87baa5f140aac736...dc50aa9510b46c811795eb24b2f1ba02a914e534)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild(deps): bump softprops/action-gh-release from 2.0.4 to 2.0.5
dependabot[bot] [Sat, 1 Jun 2024 09:13:45 +0000 (09:13 +0000)] 
build(deps): bump softprops/action-gh-release from 2.0.4 to 2.0.5

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.4 to 2.0.5.
- [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/9d7c94cfd0a1f3ed45544c887983e9fa900f0564...69320dbe05506a9a39fc8ae11030b214ec2d1f87)

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

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild(deps): bump actions/checkout from 4.1.2 to 4.1.6
dependabot[bot] [Sat, 1 Jun 2024 09:13:51 +0000 (09:13 +0000)] 
build(deps): bump actions/checkout from 4.1.2 to 4.1.6

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/9bb56186c3b09b4f86b1c65136769dd318469633...a5ac7e51b41094c92402da3b24376905380afc29)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agomkosi: Allow setting custom CFLAGS and LDFLAGS
Daan De Meyer [Sat, 1 Jun 2024 10:58:29 +0000 (12:58 +0200)] 
mkosi: Allow setting custom CFLAGS and LDFLAGS

17 months agomkosi: Fix comment
Daan De Meyer [Mon, 3 Jun 2024 10:57:57 +0000 (12:57 +0200)] 
mkosi: Fix comment

17 months agomkosi: Add support for building with LLVM
Daan De Meyer [Sat, 1 Jun 2024 10:27:45 +0000 (12:27 +0200)] 
mkosi: Add support for building with LLVM

Now you can do mkosi -E LLVM=1 to build with clang+lld. This includes
support for building with sanitizers.

17 months agomkosi: Make sure initrd coredumps are also stored in the journal
Daan De Meyer [Sun, 2 Jun 2024 08:26:20 +0000 (10:26 +0200)] 
mkosi: Make sure initrd coredumps are also stored in the journal

Let's also translate the coredump config into a dropin so we don't
accidentally override any existing configuration.

17 months agomkosi: Update debian packaging to latest
Daan De Meyer [Sat, 1 Jun 2024 11:18:35 +0000 (13:18 +0200)] 
mkosi: Update debian packaging to latest

17 months agomkosi: Disable iscsiuio.socket as well
Daan De Meyer [Sun, 2 Jun 2024 15:54:41 +0000 (17:54 +0200)] 
mkosi: Disable iscsiuio.socket as well

17 months agomkosi: Use env where appropriate
Daan De Meyer [Sun, 2 Jun 2024 15:07:53 +0000 (17:07 +0200)] 
mkosi: Use env where appropriate

17 months agomeson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions
Daan De Meyer [Mon, 3 Jun 2024 07:31:26 +0000 (09:31 +0200)] 
meson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions

Otherwise we fail to detect crypt_reencrypt() if -Werror is used.

17 months agomkosi: drop Debian /tmp hack
Daan De Meyer [Mon, 3 Jun 2024 09:49:34 +0000 (11:49 +0200)] 
mkosi: drop Debian /tmp hack

/tmp is now a tmpfs in debian testing so let's drop our workaround.

17 months agomkosi: Add missing [Content] section
Daan De Meyer [Mon, 3 Jun 2024 09:53:00 +0000 (11:53 +0200)] 
mkosi: Add missing [Content] section

17 months agomkosi: Make system dependencies conditional on format
Daan De Meyer [Mon, 3 Jun 2024 09:17:48 +0000 (11:17 +0200)] 
mkosi: Make system dependencies conditional on format

If the none format is specified, we don't use the extra trees at all
so let's make the dependencies on the subimages conditional on Format=
not being set to "none".

This speeds up builds when using Format=none.

17 months agodocs: fix typo in CGroup Interface
Heran Yang [Mon, 3 Jun 2024 08:56:56 +0000 (16:56 +0800)] 
docs: fix typo in CGroup Interface

17 months agodocs/DAEMON_SOCKET_ACTIVATION
Arian van Putten [Sun, 2 Jun 2024 19:44:33 +0000 (21:44 +0200)] 
docs/DAEMON_SOCKET_ACTIVATION

Remove non-sensical network.target dependencies

There is no need to have these dependencies on socket units as far as I am aware.

17 months agoimportctl: Fix 0 flags argument in sd_bus_message_append()
Daan De Meyer [Sun, 2 Jun 2024 20:19:16 +0000 (22:19 +0200)] 
importctl: Fix 0 flags argument in sd_bus_message_append()

17 months agorepart: Fix unused variable warning
Daan De Meyer [Sun, 2 Jun 2024 17:57:39 +0000 (19:57 +0200)] 
repart: Fix unused variable warning

17 months agoMerge pull request #33168 from weblate/weblate-systemd-main
Yu Watanabe [Mon, 3 Jun 2024 06:10:37 +0000 (15:10 +0900)] 
Merge pull request #33168 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

18 months agopo: Translated using Weblate (Hindi) 33168/head
Scrambled 777 [Mon, 3 Jun 2024 00:35:59 +0000 (02:35 +0200)] 
po: Translated using Weblate (Hindi)

Currently translated at 100.0% (233 of 233 strings)

Co-authored-by: Scrambled 777 <weblate.scrambled777@simplelogin.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/hi/
Translation: systemd/main

18 months agopo: Translated using Weblate (Georgian)
Temuri Doghonadze [Mon, 3 Jun 2024 00:35:59 +0000 (02:35 +0200)] 
po: Translated using Weblate (Georgian)

Currently translated at 100.0% (233 of 233 strings)

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

18 months agopo: Translated using Weblate (Ukrainian)
Yuri Chornoivan [Mon, 3 Jun 2024 00:35:59 +0000 (02:35 +0200)] 
po: Translated using Weblate (Ukrainian)

Currently translated at 100.0% (233 of 233 strings)

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

18 months agopo: Translated using Weblate (Russian)
Sergey A [Mon, 3 Jun 2024 00:35:58 +0000 (02:35 +0200)] 
po: Translated using Weblate (Russian)

Currently translated at 100.0% (233 of 233 strings)

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

18 months agoMerge pull request #33157 from DaanDeMeyer/end
Daan De Meyer [Sun, 2 Jun 2024 19:04:56 +0000 (21:04 +0200)] 
Merge pull request #33157 from DaanDeMeyer/end

test: Run end.sh when running integration tests with mkosi

18 months agotest: Run end.sh when running integration tests with mkosi 33157/head
Daan De Meyer [Sun, 2 Jun 2024 08:59:09 +0000 (10:59 +0200)] 
test: Run end.sh when running integration tests with mkosi

18 months agoTEST-16-EXTEND-TIMEOUT: Convert to oneshot service
Daan De Meyer [Sun, 2 Jun 2024 14:43:00 +0000 (16:43 +0200)] 
TEST-16-EXTEND-TIMEOUT: Convert to oneshot service

To match the other service units more and allow adding more
ExecStart= lines via dropins.

18 months agoresolved: Add missing nullable annotation for ifindex in ResolvedRecord
Daan De Meyer [Sun, 2 Jun 2024 17:14:43 +0000 (19:14 +0200)] 
resolved: Add missing nullable annotation for ifindex in ResolvedRecord

18 months agohostnamed: Add missing VSockCID varlink introspection data
Daan De Meyer [Sun, 2 Jun 2024 14:37:56 +0000 (16:37 +0200)] 
hostnamed: Add missing VSockCID varlink introspection data

18 months agopcrlock: Fix ReadEventLog() interface definition
Daan De Meyer [Sun, 2 Jun 2024 14:33:47 +0000 (16:33 +0200)] 
pcrlock: Fix ReadEventLog() interface definition

18 months agoMerge pull request #33154 from yuwata/test-async
Daan De Meyer [Sun, 2 Jun 2024 06:49:44 +0000 (08:49 +0200)] 
Merge pull request #33154 from yuwata/test-async

test-async: wait a while for fd to be closed

18 months agoman: mention that ExecCondition= in COMMAND LINES section for systemd.service
hanjinpeng [Sat, 1 Jun 2024 13:58:36 +0000 (21:58 +0800)] 
man: mention that ExecCondition= in COMMAND LINES section for systemd.service

18 months agotest-async: also check if the directory is removed 33154/head
Yu Watanabe [Sun, 2 Jun 2024 00:17:40 +0000 (09:17 +0900)] 
test-async: also check if the directory is removed

18 months agotest-async: wait a while for fd to be closed
Yu Watanabe [Sun, 2 Jun 2024 00:10:03 +0000 (09:10 +0900)] 
test-async: wait a while for fd to be closed

When this is run on slow environment, e.g. sanitizer is enabled,
then waiting for 1 second may not be enough.

Hopefully fixes #33150.

18 months agopo: Translated using Weblate (Polish)
Piotr Drąg [Sat, 1 Jun 2024 14:53:15 +0000 (16:53 +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

18 months agopo: Translated using Weblate (Korean)
김인수 [Sat, 1 Jun 2024 14:53:15 +0000 (16:53 +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

18 months agoMerge pull request #33140 from yuwata/test-journal
Luca Boccassi [Sat, 1 Jun 2024 17:17:09 +0000 (19:17 +0200)] 
Merge pull request #33140 from yuwata/test-journal

test: sync journal in short-living services

18 months agotest: exit earlier when cgroup user xattr is not supported 33140/head
Yu Watanabe [Sat, 1 Jun 2024 13:34:11 +0000 (22:34 +0900)] 
test: exit earlier when cgroup user xattr is not supported

Also, use trap for cleaning up the test environment.

18 months agotest: reduce number of 'systemctl daemon-reload' a bit
Yu Watanabe [Sat, 1 Jun 2024 13:25:06 +0000 (22:25 +0900)] 
test: reduce number of 'systemctl daemon-reload' a bit

18 months agotest: sync journal in short-living services
Yu Watanabe [Sat, 1 Jun 2024 06:54:44 +0000 (15:54 +0900)] 
test: sync journal in short-living services

This also adjusts LogLevelMax=.

Hopefully, this makes the test much stabler.

18 months agopo: Translated using Weblate (Turkish)
Oğuz Ersen [Sat, 1 Jun 2024 10:59:54 +0000 (12:59 +0200)] 
po: Translated using Weblate (Turkish)

Currently translated at 100.0% (233 of 233 strings)

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

18 months agoMerge pull request #33139 from weblate/weblate-systemd-main
Yu Watanabe [Sat, 1 Jun 2024 06:30:45 +0000 (15:30 +0900)] 
Merge pull request #33139 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

18 months agotest-network: add missing sleep()
Yu Watanabe [Sat, 1 Jun 2024 01:40:30 +0000 (10:40 +0900)] 
test-network: add missing sleep()

Fixes a bug introduced by 7ef26afca555a5e167ebc59514490906a46db2cb.

Fixes #33098.

18 months agopo: Update translation files 33139/head
Weblate [Sat, 1 Jun 2024 06:13:46 +0000 (08:13 +0200)] 
po: Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/
Translation: systemd/main

18 months agopo: Translated using Weblate (Russian)
Sergey A [Sat, 1 Jun 2024 06:13:46 +0000 (08:13 +0200)] 
po: Translated using Weblate (Russian)

Currently translated at 100.0% (233 of 233 strings)

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

18 months agopo: update systemd.pot and Japanese Translation
Yu Watanabe [Sat, 1 Jun 2024 06:14:13 +0000 (15:14 +0900)] 
po: update systemd.pot and Japanese Translation

18 months agonetwork: drop period from the message title
Yu Watanabe [Sat, 1 Jun 2024 06:10:15 +0000 (15:10 +0900)] 
network: drop period from the message title

We usually do not add full-stop for policy message title.

Follow-up for f90eb086270f0aea8efcbff5a5e4c338d178cfd4.

18 months agoman: fix typo
Yu Watanabe [Sat, 1 Jun 2024 05:42:16 +0000 (14:42 +0900)] 
man: fix typo

Follow-up for d24ceef937ae95b6befc7cd0e7e2ac58dfdf1d11.

18 months agohwdb: added hwdb rules for micmute and power button on Acer Nitro AN 515-58 (#32867)
Leonard [Sat, 1 Jun 2024 02:29:42 +0000 (04:29 +0200)] 
hwdb: added hwdb rules for micmute and power button on Acer Nitro AN 515-58 (#32867)

18 months agomeson: add static libs to libudev/libsystemd target aliases
Luca Boccassi [Fri, 31 May 2024 20:44:43 +0000 (21:44 +0100)] 
meson: add static libs to libudev/libsystemd target aliases

If static libraries are enabled, then group them in the build target together
with the shared libraries, to match the install tags.

18 months agomeson: add alias targets to group nss and pam modules
Luca Boccassi [Fri, 31 May 2024 20:02:31 +0000 (21:02 +0100)] 
meson: add alias targets to group nss and pam modules

Add aliases grouping these modules, so that they can be built
without knowing the SONAME version in advance. Match the install
tag names.

18 months agomkosi: Filter out sdubby and grubby from fedora rpm dependencies
Daan De Meyer [Fri, 31 May 2024 21:21:05 +0000 (23:21 +0200)] 
mkosi: Filter out sdubby and grubby from fedora rpm dependencies

When we query dependencies with rpmspec, we get the following:

"""
bash-5.2# mkosi-chroot rpmspec --with upstream --query --requires --define "_topdir /var/tmp" --define "_sourcedir pkg/fedora" "pkg/fedora/systemd.spec" | sort --unique
(grubby > 8.40-72 if grubby)
(sdubby > 1.0-3 if sdubby)
(systemd-rpm-macros = 256~rc3-1.fc41 if rpm-build)
(util-linux-core or util-linux)
/bin/sh
coreutils
dbus >= 1.9.18
firewalld-filesystem
grep
kbd
kmod >= 18-4
libidn2.so.0()(64bit)
libidn2.so.0(IDN2_0.0.0)(64bit)
libkmod.so.2()(64bit)
libkmod.so.2(LIBKMOD_5)(64bit)
openssl-libs
python3dist(cryptography)
python3dist(pefile)
python3dist(psutil)
python3dist(zstd)
systemd = 256~rc3-1.fc41
systemd(x86-64) = 256~rc3-1.fc41
systemd-boot
systemd-libs(x86-64) = 256~rc3-1.fc41
systemd-networkd = 256~rc3-1.fc41
systemd-pam(x86-64) = 256~rc3-1.fc41
systemd-udev = 256~rc3-1.fc41
"""

Trying to install with dnf5 correctly filters out grubby and sdubby
as they are conditional dependencies and shouldn't be installed. However,
dnf doesn't do the right thing and tries to install both grubby and sdubby,
and since they conflict this causes the build to fail.

Let's filter out sdubby and grubby explicitly to work around the bug in dnf
as it's unlikely to get fixed since all development effort is now focused on
dnf5.

18 months agoMerge pull request #33105 from DaanDeMeyer/sanitizers
Daan De Meyer [Fri, 31 May 2024 17:44:05 +0000 (19:44 +0200)] 
Merge pull request #33105 from DaanDeMeyer/sanitizers

Sanitizers

18 months agoci: Build Fedora rawhide with sanitizers in mkosi 33105/head
Daan De Meyer [Thu, 16 May 2024 15:20:24 +0000 (17:20 +0200)] 
ci: Build Fedora rawhide with sanitizers in mkosi

Let's make sure one build has sanitizers enabled for extra coverage.

18 months agoTEST-21-DFUZZER: Stop marking as slow
Daan De Meyer [Fri, 31 May 2024 15:15:47 +0000 (17:15 +0200)] 
TEST-21-DFUZZER: Stop marking as slow

This was a workaround to not run TEST-21-DFUZZER without sanitizers.
Now that we're going to get sanitizer support, let's run it by default
again.

18 months agoTEST-69-SHUTDOWN: Order after systemd-user-sessions.service
Daan De Meyer [Fri, 31 May 2024 15:01:27 +0000 (17:01 +0200)] 
TEST-69-SHUTDOWN: Order after systemd-user-sessions.service

Make sure that we're allowed to login by ordering ourselves after
systemd-user-sessions.service.

18 months agomkosi: Sanitizer improvements
Daan De Meyer [Thu, 16 May 2024 15:18:38 +0000 (17:18 +0200)] 
mkosi: Sanitizer improvements

- Let's set the environment on the kernel command line so it applies
to initrd and main system.
- Let's add the necessary wrappers that are also added in test-functions.
Unlike test-functions we don't use gcc/clang to get the library path as
that requires installing gcc/clang in the initrd.
- Let's drop the hack to get journald writing to the console and have
it write to kmsg instead. We'll get the output either way.
- Stop removing libstdc++ and sanitizer libraries from Arch Linux
initrds and other images as it's required by the sanitizer libraries.
- Add a workaround for specifying extra meson options for opensuse
- Add a leak sanitizer suppression file as a workaround for a false
positive leak in verify_selinuxmnt() in libselinux. We do a soname match
because the stacktrace can't be properly symbolized on Debian.

18 months agomkosi: Add note about kernel command line limit
Daan De Meyer [Fri, 31 May 2024 15:26:01 +0000 (17:26 +0200)] 
mkosi: Add note about kernel command line limit

18 months agoMerge pull request #33126 from keszybz/revert-ci-workaround
Daan De Meyer [Fri, 31 May 2024 13:41:28 +0000 (15:41 +0200)] 
Merge pull request #33126 from keszybz/revert-ci-workaround

Revert ci workaround

18 months agoMerge pull request #33121 from yuwata/test-integration-tests-mkosi
Daan De Meyer [Fri, 31 May 2024 13:40:43 +0000 (15:40 +0200)] 
Merge pull request #33121 from yuwata/test-integration-tests-mkosi

Test: several integration test improvements

18 months agomkosi: Drop kernel command line to enable log context
Daan De Meyer [Fri, 31 May 2024 11:48:14 +0000 (13:48 +0200)] 
mkosi: Drop kernel command line to enable log context

The log context is already enabled by virtue of the log level being
set to debug, so no need to enable it explicitly.

18 months agomeson: fix comment 33126/head
Zbigniew Jędrzejewski-Szmek [Mon, 13 May 2024 13:34:23 +0000 (15:34 +0200)] 
meson: fix comment

18 months agoRevert "mkosi: Disable add-determinism on Fedora"
Zbigniew Jędrzejewski-Szmek [Fri, 31 May 2024 11:33:57 +0000 (13:33 +0200)] 
Revert "mkosi: Disable add-determinism on Fedora"

This reverts commit e74a994ebf7c813979b9e045f37907e6a5064f23.

The description in that commit was confused, add-determinism was not broken
and was not causing any problems, except a log message.

18 months agocryptsetup-generator: Fix memory leak
Daan De Meyer [Fri, 31 May 2024 09:33:12 +0000 (11:33 +0200)] 
cryptsetup-generator: Fix memory leak

18 months agocore/unit: refuse to spawn units under frozen cgroup
Mike Yuan [Fri, 31 May 2024 04:41:31 +0000 (12:41 +0800)] 
core/unit: refuse to spawn units under frozen cgroup

Currently, Unit.freezer_state is always initialized to
FREEZER_RUNNING. While realizing cgroups for frozen units
was disabled in 7923e9493c48694b32d1a6de7b9a996c0194bf17,
the commit only checked for freezer_state of the unit inself,
meaning that newly-loaded units might be started and the kernel
would hang pid1 when trying to spawn sd-executor into sub-cgroup.
This can be easily reproduced by the following:

```console
# systemd-run --slice=test.slice sleep infinity
# systemctl freeze test.slice
# systemd-run --slice=test.slice sleep infinity
```

Therefore, let's correctly initialize Unit.freezer_state
based on the parent slice.

18 months agoMerge pull request #33123 from DaanDeMeyer/fix
Luca Boccassi [Fri, 31 May 2024 09:38:43 +0000 (11:38 +0200)] 
Merge pull request #33123 from DaanDeMeyer/fix

Two mkosi fixes

18 months agoMerge pull request #33122 from weblate/weblate-systemd-main
Luca Boccassi [Fri, 31 May 2024 08:44:43 +0000 (10:44 +0200)] 
Merge pull request #33122 from weblate/weblate-systemd-main

Translations update from Fedora Weblate

18 months agomkosi: Unify device timeout for CI and local runs 33123/head
Daan De Meyer [Fri, 31 May 2024 08:25:08 +0000 (10:25 +0200)] 
mkosi: Unify device timeout for CI and local runs

Now that we use KVM and don't use repart anymore to create a root
partition on first boot, let's see if we can use the same device timeout
for both local and CI runs.

18 months agomkosi: Drop two unnecessary settings in CI config
Daan De Meyer [Fri, 31 May 2024 08:23:58 +0000 (10:23 +0200)] 
mkosi: Drop two unnecessary settings in CI config

We don't build erofs images anymore and the firmware to use is set
per test so no need to configure it the CI config.

18 months agobuild(deps): bump redhat-plumbers-in-action/advanced-issue-labeler
dependabot[bot] [Fri, 31 May 2024 05:44:22 +0000 (05:44 +0000)] 
build(deps): bump redhat-plumbers-in-action/advanced-issue-labeler

Bumps [redhat-plumbers-in-action/advanced-issue-labeler](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler) from 3.0.0 to 3.2.0.
- [Release notes](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler/releases)
- [Commits](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler/compare/9e55064634b67244f7deb4211452b4a7217b93de...d498805e5c7c0658e336948b3363480bcfd68da6)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/advanced-issue-labeler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agobuild(deps): bump redhat-plumbers-in-action/devel-freezer
dependabot[bot] [Fri, 31 May 2024 05:44:16 +0000 (05:44 +0000)] 
build(deps): bump redhat-plumbers-in-action/devel-freezer

Bumps [redhat-plumbers-in-action/devel-freezer](https://github.com/redhat-plumbers-in-action/devel-freezer) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/redhat-plumbers-in-action/devel-freezer/releases)
- [Commits](https://github.com/redhat-plumbers-in-action/devel-freezer/compare/396c94ba8cb417474e6626c83a42addea210a403...ad766eafd555b28d2cb8e27937835983f9c3d173)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/devel-freezer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agobuild(deps): bump meson from 1.4.0 to 1.4.1 in /.github/workflows
dependabot[bot] [Fri, 31 May 2024 05:44:01 +0000 (05:44 +0000)] 
build(deps): bump meson from 1.4.0 to 1.4.1 in /.github/workflows

Bumps [meson](https://github.com/mesonbuild/meson) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.4.0...1.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
18 months agopo: Translated using Weblate (Portuguese) 33122/head
Tiago Rocha Cunha [Fri, 31 May 2024 07:36:01 +0000 (09:36 +0200)] 
po: Translated using Weblate (Portuguese)

Currently translated at 100.0% (233 of 233 strings)

po: Translated using Weblate (Portuguese (Brazil))

Currently translated at 82.4% (192 of 233 strings)

Co-authored-by: Tiago Rocha Cunha <tiagocunha.me@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt/
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/pt_BR/
Translation: systemd/main

18 months agopo: Translated using Weblate (French)
Pierre GRASSER [Fri, 31 May 2024 07:36:01 +0000 (09: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

18 months agonetworkd-test: first wait for interface being configured
Yu Watanabe [Fri, 31 May 2024 01:56:30 +0000 (10:56 +0900)] 
networkd-test: first wait for interface being configured

DNS setting propagation to resolved may take some time.

18 months agotest: optionally allow to disable user service manager, and disable it on TEST-64 33121/head
Yu Watanabe [Fri, 31 May 2024 07:29:00 +0000 (16:29 +0900)] 
test: optionally allow to disable user service manager, and disable it on TEST-64

The test triggers many uevents, and running both system and user service
managers make the test slow.

18 months agotest: make it sure that devices are processed by udevd before running subtests
Yu Watanabe [Fri, 31 May 2024 07:10:55 +0000 (16:10 +0900)] 
test: make it sure that devices are processed by udevd before running subtests

18 months agotest: lock device on sfdisk or mkfs, and extend timeout
Yu Watanabe [Fri, 31 May 2024 07:09:27 +0000 (16:09 +0900)] 
test: lock device on sfdisk or mkfs, and extend timeout

Hopefully fixes #33111.

18 months agogitignore: Ignore /pkg/ instead of pkg/ (#33119)
Daan De Meyer [Fri, 31 May 2024 06:06:07 +0000 (08:06 +0200)] 
gitignore: Ignore /pkg/ instead of pkg/ (#33119)

So we only match the top level directory and not subdirectories.

18 months agoAdd pkg/ to .gitignore folder
Daan De Meyer [Fri, 31 May 2024 05:58:35 +0000 (07:58 +0200)] 
Add pkg/ to .gitignore folder

Required now that the directories under pkg/ are not git submodules
anymore.

18 months agoMerge pull request #33106 from DaanDeMeyer/submodule
Daan De Meyer [Fri, 31 May 2024 05:43:20 +0000 (07:43 +0200)] 
Merge pull request #33106 from DaanDeMeyer/submodule

mkosi: Replace submodules with our own thing

18 months agoMerge pull request #33093 from YHNdnzj/freezer-util
Yu Watanabe [Fri, 31 May 2024 02:47:19 +0000 (11:47 +0900)] 
Merge pull request #33093 from YHNdnzj/freezer-util

bus-unit-util: rework UnitFreezer, explicitly thaw unit

18 months agobasic: Add BCACHEFS magic
Chris Packham [Thu, 30 May 2024 21:51:38 +0000 (09:51 +1200)] 
basic: Add BCACHEFS magic

Import magic.h from Linux 6.9 to get the definition of
BCACHEFS_SUPER_MAGIC. Update filesystems-gperf.gperf to add knowledge of
bcachefs.

This fixes the following error building against a bleeding edge kernel.
```
src/basic/meson.build:234:8: ERROR: Problem encountered: Unknown filesystems defined in kernel headers:

Filesystem found in kernel header but not in filesystems-gperf.gperf: BCACHEFS_SUPER_MAGIC
```

18 months agohwdb: Lenovo 16G6IRL volume keys and friends (#33107)
Victor Berchet [Fri, 31 May 2024 00:08:00 +0000 (02:08 +0200)] 
hwdb: Lenovo 16G6IRL volume keys and friends (#33107)

This prevents volume keys on the machine from repeating.
Full modalias:
```
$ cat /sys/class/dmi/id/modalias
dmi:bvnLENOVO:bvrMMCN36WW:bd03/26/2024:br1.36:efr1.30:svnLENOVO:pn21KH:pvrThinkBook16G6IRL:rvnLENOVO:rnLNVNB161216:rvrSDK0T76530WIN:cvnLENOVO:ct10:cvrThinkBook16G6IRL:skuLENOVO_MT_21KH_BU_idea_FM_ThinkBook16G6IRL:
```

18 months agohwdb: Add Logitech MX Master 3S Bluetooth ID
Maciej S. Szmigiero [Thu, 30 May 2024 22:05:32 +0000 (00:05 +0200)] 
hwdb: Add Logitech MX Master 3S Bluetooth ID

We already have an entry for this mouse when it is connected via USB Bolt
receiver, now add a Bluetooth LE connection entry too.

This mouse model supports both connection types, with up to 3 connection
slots (to different hosts) per single mouse.

18 months agomkosi: Override rpm's _fixperms script to be a noop 33106/head
Daan De Meyer [Thu, 30 May 2024 20:19:00 +0000 (22:19 +0200)] 
mkosi: Override rpm's _fixperms script to be a noop

Since rpm 4.20 it tries to fix the permissions of all source files
in the sources. This takes forever and fails in our case with a
permission error. Since we don't want rpm touching our source files,
override the script to be a noop.

18 months agomkosi: Disable add-determinism on Fedora
Daan De Meyer [Thu, 30 May 2024 20:17:29 +0000 (22:17 +0200)] 
mkosi: Disable add-determinism on Fedora

This was added for reproducible builds which we don't really care
about when building rpms in mkosi, so disable it from running as it's
broken and breaks our rpm builds.

18 months agomkosi: Skip debuginfo workaround on newer rpm
Daan De Meyer [Thu, 30 May 2024 20:16:13 +0000 (22:16 +0200)] 
mkosi: Skip debuginfo workaround on newer rpm

The corresponding bug was fixed in rpm 4.20 (of which the alpha is in
rawhide as rpm 4.19.91) so skip the workaround when we detect a newer
rpm version.

18 months agomkosi: Don't install wireguard-tools on Debian
Daan De Meyer [Thu, 30 May 2024 18:54:06 +0000 (20:54 +0200)] 
mkosi: Don't install wireguard-tools on Debian

Package was removed from testing. This can be reverted next week once
it's added back to testing.

18 months agomkosi: Replace submodules with our own thing
Daan De Meyer [Thu, 30 May 2024 14:24:42 +0000 (16:24 +0200)] 
mkosi: Replace submodules with our own thing

Unfortunately, git submodules break in all sorts of ways:

- Various github workflows (dependabot, github pages) try to do a shallow
clone of git submodules which does not work at all when the git repository
is hosted on pagure (https://pagure.io/pagure/issue/5453,
https://github.com/dependabot/dependabot-core/issues/9391).
- If the git forge hosting the git repository uses SHA256, then it breaks our
usage of it as a submodule as SHA256 repositories cannot be used as submodules
in SHA1 repositories (src.opensuse.org moved to SHA256 which broke our usage of
opensuse's systemd spec as a submodule).
- git submodules completely break usage of git worktrees.
- ...

Let's avoid all these issues by just doing our own home grown implementation of
git submodules. We lose the automatic dependabot updates this way but since dependabot
fails to run more often that not with submodules we don't really lose anything.

18 months agoMerge pull request #33081 from keszybz/networkctl-formatting
Luca Boccassi [Thu, 30 May 2024 14:33:38 +0000 (16:33 +0200)] 
Merge pull request #33081 from keszybz/networkctl-formatting

Fix formatting of speeds in networkctl

18 months agobus-unit-util: extend the bus call timeout for UnitFreezer 33093/head
Mike Yuan [Thu, 30 May 2024 07:09:28 +0000 (15:09 +0800)] 
bus-unit-util: extend the bus call timeout for UnitFreezer

Might fix #33083

There's another report available on Mastodon:
https://m.otter.homes/@kaixin/112510783502516607
https://m.otter.homes/@kaixin/112510803023469180