]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
16 months agoTEST-55-OOMD: Remove the opensuse user@ dropin
Daan De Meyer [Mon, 15 Jul 2024 07:21:51 +0000 (09:21 +0200)] 
TEST-55-OOMD: Remove the opensuse user@ dropin

Required to make TEST-55-OOMD pass on OpenSUSE.

16 months agomkosi: Install binutils
Daan De Meyer [Sun, 14 Jul 2024 20:56:43 +0000 (22:56 +0200)] 
mkosi: Install binutils

16 months agoTEST-64-UDEV-STORAGE: Use max_ioqpairs instead of num_queues
Daan De Meyer [Sun, 14 Jul 2024 20:27:09 +0000 (22:27 +0200)] 
TEST-64-UDEV-STORAGE: Use max_ioqpairs instead of num_queues

Fixes a deprecation warning from qemu.

16 months agomkosi: Use clang --print-runtime-dir
Daan De Meyer [Fri, 12 Jul 2024 14:45:04 +0000 (16:45 +0200)] 
mkosi: Use clang --print-runtime-dir

16 months agomkosi: Extend arch build script comment about symlinks
Daan De Meyer [Fri, 12 Jul 2024 14:42:00 +0000 (16:42 +0200)] 
mkosi: Extend arch build script comment about symlinks

16 months agotest: do not attempt to set xattr on tmpfs
Daan De Meyer [Fri, 12 Jul 2024 14:04:22 +0000 (16:04 +0200)] 
test: do not attempt to set xattr on tmpfs

This is only possible since a recent kernel version, and fails otherwise,
like on CentOS 9

16 months agomkosi: Add CI for CentOS Stream 10
Daan De Meyer [Thu, 11 Jul 2024 13:49:17 +0000 (15:49 +0200)] 
mkosi: Add CI for CentOS Stream 10

We switch to the c10s-sig-hyperscale branch of the spec repository
as it will receive all the latest changes the earliest before they
end up in the c9s-sig-hyperscale branch.

16 months agomkosi: Use squashfs for sysext if mkfs.erofs is not available
Daan De Meyer [Thu, 11 Jul 2024 14:19:20 +0000 (16:19 +0200)] 
mkosi: Use squashfs for sysext if mkfs.erofs is not available

CentOS Stream 10 does not have erofs-utils so let's add a fallback
to squashfs when building the sysext.

16 months agomkosi: Make epel repositories optional for CentOS Stream 9
Daan De Meyer [Fri, 5 Jul 2024 09:56:44 +0000 (11:56 +0200)] 
mkosi: Make epel repositories optional for CentOS Stream 9

This allows us to add CI for CentOS Stream 10 as EPEL 10 doesn't
exist yet and won't exist for quite some time.

CentOS Stream 10 will be enabled later as soon as
https://issues.redhat.com/browse/RHEL-46604 is resolved.

16 months agomkosi: Introduce build image
Daan De Meyer [Fri, 12 Jul 2024 13:33:49 +0000 (15:33 +0200)] 
mkosi: Introduce build image

We want the exitrd image to be built with the latest systemd as well.
As the exitrd image is built as part of mkosi.images, and all subimages
are built before the main image, this implies the packages must be built
as a subimage in mkosi.images/ as well. So we introduce the build image and
move all logic related to building distribution packages there.

This also has the nice side effect of slimming down the main image as the
build dependencies are not installed into the main image anymore. It also
makes sure the packages are built in a "clean" chroot without any of the
other packages which we install in the main image available.

16 months agomkosi: update fedora commit reference
Daan De Meyer [Sun, 14 Jul 2024 15:50:23 +0000 (17:50 +0200)] 
mkosi: update fedora commit reference

a3524fc837 Use a more precise Recommends for libkxbcommon
980ede8c0f Drop machined revert
d569018a92 Rebuilt for the bin-sbin merge
8881fa94ee Version 256.2
1cc4f83002 Link systemd-executor statically
0319e62d9c Update dracut workaround
c96f54de22 Fix ELN build
3f68c5d802 Only exclude dracut conflicts on non-fedora on upstream builds
7db154308b Conditionalize dracut Conflicts more

16 months agomkosi: Update to latest
Daan De Meyer [Fri, 12 Jul 2024 14:09:21 +0000 (16:09 +0200)] 
mkosi: Update to latest

16 months agomkosi: Switch back to code.opensuse.org for opensuse
Daan De Meyer [Thu, 11 Jul 2024 11:19:11 +0000 (13:19 +0200)] 
mkosi: Switch back to code.opensuse.org for opensuse

The commits on src.opensuse.org keep disappearing so let's switch
back to code.opensuse.org.

16 months agopo: Translated using Weblate (French)
Léane GRASSER [Thu, 11 Jul 2024 11:38:37 +0000 (13:38 +0200)] 
po: Translated using Weblate (French)

Currently translated at 100.0% (233 of 233 strings)

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

16 months agoMerge pull request #33636 from DaanDeMeyer/ext4
Daan De Meyer [Wed, 10 Jul 2024 19:33:23 +0000 (21:33 +0200)] 
Merge pull request #33636 from DaanDeMeyer/ext4

Various integration test improvements

16 months agoMerge pull request #33559 from YHNdnzj/reenable-now
Mike Yuan [Wed, 10 Jul 2024 17:14:25 +0000 (19:14 +0200)] 
Merge pull request #33559 from YHNdnzj/reenable-now

systemctl: support reenable --now plus some other cleanups

16 months agomkosi: update opensuse commit reference 33636/head
Daan De Meyer [Wed, 10 Jul 2024 12:20:34 +0000 (14:20 +0200)] 
mkosi: update opensuse commit reference

*   8c025c3bdf Accepting request 1184267 from Base:System
|\
| * 735f8c4ba4 - Import commit 5a8eadd0c021758337a020c423f25a353bdb9b3c (merge of v255.8)   For a complete list of changes, visit:   https://github.com/openSUSE/systemd/compare/603cd1d4d81147d4f2eccd5e352064a4215119b4...5a8eadd0c021758337a020c423f25a353bdb9b3c - Drop 5003-Revert-run-pass-the-pty-slave-fd-to-transient-servic.patch as v255.8   contains the workaround (commit 639c922ede9485) for the broken commit   28459ba1f4df.
* | 37853fecc3 Accepting request 1183029 from Base:System
|/
638de11012 - Don't automatically clean unmodified config files up (bsc#1226415)
369c023c24 reorder one more time...
ffa9f0ac80 reorder the runtime deps of the testsuite package so the format_spec_file thingy stop screwing up the spec file...
12c1190a79 fix rev 1529: the devel packages are really needed by the testsuite script to install the dlopened libs into the image
ca8e7f54ce - systemd.spec: move a misplaced %endif in the testsuite sub-package.
b7944f5b14 - Merge systemd-coredump back into the main package (bsc#1091684)
3fa0dea84a - Don't pull the devel packages in when installing the testsuite package.

16 months agotools/update-distro-hash: Fix path
Daan De Meyer [Wed, 10 Jul 2024 12:34:32 +0000 (14:34 +0200)] 
tools/update-distro-hash: Fix path

16 months agoTEST-06-SELINUX: Various fixes
Daan De Meyer [Tue, 9 Jul 2024 10:26:11 +0000 (12:26 +0200)] 
TEST-06-SELINUX: Various fixes

- Stop installing the policy in the initramfs as it's not really
supported anyway (https://github.com/fedora-selinux/selinux-policy/issues/2221)
- Stop relabeling on first boot and prefer to do it at image build time
- Disable mkosi relabeling by default but enable it in CI
- Build image as root in CI so the SELinux relabeling works properly

16 months agomkosi: Don't fail if /var/log/journal does not exist
Daan De Meyer [Fri, 5 Jul 2024 09:24:27 +0000 (11:24 +0200)] 
mkosi: Don't fail if /var/log/journal does not exist

16 months agotest: Switch to ncat instead of nc
Daan De Meyer [Fri, 5 Jul 2024 08:27:56 +0000 (10:27 +0200)] 
test: Switch to ncat instead of nc

ncat is available in CentOS Stream 9 without having to enable EPEL.

16 months agoTEST-55-OOMD: Switch to stress-ng
Daan De Meyer [Fri, 5 Jul 2024 07:58:17 +0000 (09:58 +0200)] 
TEST-55-OOMD: Switch to stress-ng

stress-ng is available in OpenSUSE and in CentOS Stream without needing
EPEL so let's switch to it instead of stress.

16 months agodocs: Simplify update commands in HACKING.md
Daan De Meyer [Wed, 10 Jul 2024 15:03:59 +0000 (17:03 +0200)] 
docs: Simplify update commands in HACKING.md

Let's make use of mkosi ssh to give everyone a one liner to run instead
of having to execute two commands (one outside the VM, one inside).

16 months agomkosi: Update to latest
Daan De Meyer [Wed, 10 Jul 2024 14:52:54 +0000 (16:52 +0200)] 
mkosi: Update to latest

16 months agoMerge pull request #33683 from DaanDeMeyer/sysext
Daan De Meyer [Wed, 10 Jul 2024 11:21:12 +0000 (13:21 +0200)] 
Merge pull request #33683 from DaanDeMeyer/sysext

mkosi: Build a sysext if SYSEXT=1 is specified

16 months agoMerge pull request #33660 from poettering/mount-tool-tweaks
Lennart Poettering [Wed, 10 Jul 2024 10:00:13 +0000 (12:00 +0200)] 
Merge pull request #33660 from poettering/mount-tool-tweaks

minor tweaks to "systemd-mount"

16 months agomkosi: Build a sysext if SYSEXT=1 is specified 33683/head
Daan De Meyer [Wed, 10 Jul 2024 08:07:05 +0000 (10:07 +0200)] 
mkosi: Build a sysext if SYSEXT=1 is specified

16 months agoman: some fixes
Lennart Poettering [Fri, 5 Jul 2024 16:52:07 +0000 (18:52 +0200)] 
man: some fixes

Addons are called addons, say so. And some other fixes.

16 months agomkosi: Check for configured build directory if WIPE=1
Daan De Meyer [Tue, 9 Jul 2024 18:02:47 +0000 (20:02 +0200)] 
mkosi: Check for configured build directory if WIPE=1

Otherwise trying to use --wipe might fail if the build directory
has not been configured but is not empty either.

16 months agomkosi: Install erofs-utils
Daan De Meyer [Wed, 10 Jul 2024 08:05:59 +0000 (10:05 +0200)] 
mkosi: Install erofs-utils

16 months agoupdate TODO 33660/head
Lennart Poettering [Mon, 8 Jul 2024 12:46:21 +0000 (14:46 +0200)] 
update TODO

16 months agomount-tool: show diskseq in --list output
Lennart Poettering [Mon, 8 Jul 2024 12:38:22 +0000 (14:38 +0200)] 
mount-tool: show diskseq in --list output

Let's expose the diskseq a bit more prominently.

16 months agomount-tool: use the usual coloring in --help text
Lennart Poettering [Mon, 8 Jul 2024 12:37:58 +0000 (14:37 +0200)] 
mount-tool: use the usual coloring in --help text

16 months agomount-tool: add support for a --json= output mode
Lennart Poettering [Mon, 8 Jul 2024 11:44:12 +0000 (13:44 +0200)] 
mount-tool: add support for a --json= output mode

Let's add a JSON output mode, like we have it for so many of our tools.

16 months agomount-tool: use lowercase table column names
Lennart Poettering [Mon, 8 Jul 2024 11:38:09 +0000 (13:38 +0200)] 
mount-tool: use lowercase table column names

The "systemd-mount" tool is the one outlier in our codebase to specify
upper case column names. And it's quite pointless given that our table
output logic uppercases this anyway on output. Hence, let's fix that.

(This would be a compat break, if we'd support JSON output of this
table, but we do not currently. JSON fields use the literal column
name after all.)

16 months agoman: fix typo in unit options section
Kuntal Majumder [Tue, 9 Jul 2024 17:11:52 +0000 (19:11 +0200)] 
man: fix typo in unit options section

Fixes #32918

16 months agotest: install split-out sshd-session binary if present
Luca Boccassi [Tue, 9 Jul 2024 17:42:06 +0000 (18:42 +0100)] 
test: install split-out sshd-session binary if present

Archlinux split out one ssh binary, install it in the legacy test
setup if present for the tests that need ssh

16 months agofsck: do not pull down mount units on soft-reboot
Luca Boccassi [Mon, 8 Jul 2024 15:23:06 +0000 (16:23 +0100)] 
fsck: do not pull down mount units on soft-reboot

Otherwise they will pull down the disk too, which we don't want on soft-reboot

16 months agosystemctl-enable: support reenable --now 33559/head
Mike Yuan [Thu, 29 Feb 2024 15:57:31 +0000 (23:57 +0800)] 
systemctl-enable: support reenable --now

Also, instead of silently continuing when template units
are specified with enable --now, print a warning and skip them.

Closes #31541

16 months agosystemctl-enable: some cleanups
Mike Yuan [Thu, 4 Jul 2024 18:41:44 +0000 (20:41 +0200)] 
systemctl-enable: some cleanups

- Drop one more use of basename()
- Clean up logging in normalize_*()
- Use assertions where appropriate

16 months agologind-dbus: set gc_mode to USER_GC_BY_PIN when disable linger
Tom Yan [Mon, 8 Jul 2024 14:10:43 +0000 (22:10 +0800)] 
logind-dbus: set gc_mode to USER_GC_BY_PIN when disable linger

The mode switch from any to pin is currently done in create_session().
However, if no (pinning) session is created before (or after) linger
is disabled, the user will not be gc'd after that. Therefore, also
perform the mode switch when linger is being disabled.

16 months agoAdd or fix mount matrix for multiple handhelds. (#33586)
Derek J. Clark [Tue, 9 Jul 2024 09:57:04 +0000 (02:57 -0700)] 
Add or fix mount matrix for multiple handhelds. (#33586)

- Breaks AYANEO AIR family into different entries as not all are mounted the same.
- Corrects AYANEO AIR mount matrix.
- Adds mount matrices for AYANEO device families: 2021, AYANEO 2, AYANEO GEEK, and AYANEO FLIP
- Adds mount matrix for GPD WinMax2
- Adds mount matrix for OrangePi NEO

16 months agoman: fix typo in the alias symlink name
ZHANG Yuntian [Fri, 5 Jul 2024 09:04:44 +0000 (17:04 +0800)] 
man: fix typo in the alias symlink name

Symlink created by Alias will use the value as the file name.

16 months agoAdd MSI Claw AT Keyboard Scancodes.
Derek J. Clark [Wed, 3 Jul 2024 04:27:13 +0000 (21:27 -0700)] 
Add MSI Claw AT Keyboard Scancodes.

16 months agomkosi: Fix git commit
Daan De Meyer [Tue, 9 Jul 2024 06:07:53 +0000 (08:07 +0200)] 
mkosi: Fix git commit

In https://github.com/systemd/systemd/pull/33659 the commit was
updated to point to my fork without changing it back after the mkosi
PR was merged so let's change it back to point to the official
repository.

16 months agomkosi: Adapt configuration to take into account configuration rework
Daan De Meyer [Mon, 8 Jul 2024 10:59:52 +0000 (12:59 +0200)] 
mkosi: Adapt configuration to take into account configuration rework

In https://github.com/systemd/mkosi/pull/2847, the '@' specifier is
removed, CLI arguments take priority over configuration files again
and the "main" image is defined at the top level instead of in
mkosi.images/. Additionally, not every setting from the top level
configuration is inherited by the images in mkosi.images/ anymore,
only settings which make sense to be inherited are inherited.

This commit gets rid of all the usages of '@', moves the "main" image
configuration from mkosi.images/system to the top level and gets rid
of various hacks we had in place to deal with quirks of the old
configuration parsing logic.

We also remove usages of Images= and --append as these options are
removed by the mentioned PR.

16 months agomkosi: policykit-1 was renamed to polkitd
Luca Boccassi [Mon, 8 Jul 2024 15:44:01 +0000 (16:44 +0100)] 
mkosi: policykit-1 was renamed to polkitd

16 months agoMerge pull request #33627 from YHNdnzj/systemctl-triggering-warning
Mike Yuan [Mon, 8 Jul 2024 12:01:17 +0000 (14:01 +0200)] 
Merge pull request #33627 from YHNdnzj/systemctl-triggering-warning

systemctl: some fixes for active triggering unit warning

16 months agovmspawn: define default machines for mips targets
Henry Chen [Fri, 5 Jul 2024 03:19:35 +0000 (11:19 +0800)] 
vmspawn: define default machines for mips targets

All mips variants of qemu-system default to malta.

Signed-off-by: Henry Chen <henry.chen@oss.cipunited.com>
Signed-off-by: Henry Chen <chenx97@aosc.io>
16 months agoMerge pull request #33640 from DaanDeMeyer/ext4-split
Daan De Meyer [Mon, 8 Jul 2024 10:56:09 +0000 (12:56 +0200)] 
Merge pull request #33640 from DaanDeMeyer/ext4-split

mkosi: Use the "default" root filesystem for each distribution

16 months agoMerge pull request #33599 from keszybz/link-executor-statically
Zbigniew Jędrzejewski-Szmek [Mon, 8 Jul 2024 10:46:41 +0000 (12:46 +0200)] 
Merge pull request #33599 from keszybz/link-executor-statically

Link executor statically

16 months agoUpdate 60-sensor.hwdb
csp5me [Mon, 8 Jul 2024 08:28:54 +0000 (15:28 +0700)] 
Update 60-sensor.hwdb

This update has been tested on the 2023 Chuwi Freebook N100. The hwdb entry has been verified using these commands:
cat /sys/`udevadm info -q path -n /dev/iio:device0`/../modalias
acpi:MDA6655:MDA6655:

cat /sys/class/dmi/id/modalias
dmi:bvnAmericanMegatrendsInternational,LLC.:bvrDNN20AV1.03:bd12/29/2023:br1.3:efr0.7:svnCHUWIInnovationAndTechnology(ShenZhen)co.,Ltd:pnFreeBook:pvrDefaultstring:rvnDefaultstring:rnDefaultstring:rvrDefaultstring:cvnDefaultstring:ct10:cvrDefaultstring:skuDefaultstring:

The correct offset orientation has been tested with:
monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== No ambient light sensor
=== No proximity sensor

16 months agopath: drop IN_ATTRIB from parent directory watches
Ronan Pigott [Mon, 1 Jul 2024 21:07:28 +0000 (14:07 -0700)] 
path: drop IN_ATTRIB from parent directory watches

When watching a given pathspec, systemd unconditionally installs
IN_ATTRIB watches to track the link count of the resolved file. This
way, we are notified if the watched path disappears, even if the
resolved file inode is not removed.

Similarly, systemd installs inotify watches on each parent directory, to
be notified when the specified path appears. However, for these watches
IN_ATTRIB is an unnecessary addition to the mask. In inotify, IN_ATTRIB
on a directory is emitted whenever the attributes of any child changes,
which, for many paths, has the potential to cause a high number of
spurious wakeups in systemd. Let's remove IN_ATTRIB from the mask when
installing watches on the parent directories of the specified path.

16 months agofirstboot: Make the option list fit 80 columns
Fabian Vogt [Tue, 2 Jul 2024 14:15:50 +0000 (16:15 +0200)] 
firstboot: Make the option list fit 80 columns

22 characters in three colums + overhead slightly exceeds the available
width on terminals with 80 columns, causing each row to wrap to two lines.
Reduce the item width to 20 to fit even the list of ~600 timezones.

16 months agostub: Add support for .ucode EFI addons
Tobias Fleig [Wed, 3 Jul 2024 12:13:29 +0000 (05:13 -0700)] 
stub: Add support for .ucode EFI addons

This extends #31872 to also load microcode from addon files.

16 months agomkosi: Use the "default" root filesystem for each distribution 33640/head
Daan De Meyer [Fri, 5 Jul 2024 07:35:43 +0000 (09:35 +0200)] 
mkosi: Use the "default" root filesystem for each distribution

Let's not insist on btrfs everywhere. 93440db8b5eae1244aaf5fecfa68050a8b26f3e3
switched us back to btrfs as we wanted to rely on the fact it records
timestamps properly. Since we now prefer to do incremental builds on the host
with "mkosi -t none" we don't mind anymore that timestamps are not recorded
properly so we're not forced to use btrfs anymore.

This also increases test coverage as we'll now test with different root
filesystems.

16 months ago70-mouse.hwdb: Added Glorious Model O DPI
Riku [Sat, 6 Jul 2024 16:29:31 +0000 (19:29 +0300)] 
70-mouse.hwdb: Added Glorious Model O DPI

This rule might also apply to the regular Model O (no minus), which has the same specifications.

16 months agoRemove extra period at the end of systemd-bsod's unit description. (#33632)
fwfy [Sat, 6 Jul 2024 09:17:20 +0000 (05:17 -0400)] 
Remove extra period at the end of systemd-bsod's unit description. (#33632)

* Remove extra period at end of unit description.

Having an extra period at the end of this unit description makes log entries pertaining to it appear weirdly, as it seems the default expectation is that there is not to be a period at the end of a unit description.

e.g.: `systemd[1]: Started Displays emergency message in full screen..`

16 months agotest: Set priority for TEST-73-LOCALE
Daan De Meyer [Fri, 5 Jul 2024 20:31:55 +0000 (22:31 +0200)] 
test: Set priority for TEST-73-LOCALE

I don't know why yet, but TEST-73-LOCALE can take more than 10
minutes. Until we figure out why, let's give it a higher priority
so it doesn't bottleneck the test run.

16 months agoMerge pull request #33644 from DaanDeMeyer/selinux
Daan De Meyer [Fri, 5 Jul 2024 18:21:39 +0000 (20:21 +0200)] 
Merge pull request #33644 from DaanDeMeyer/selinux

TEST-06-SELINUX: Two fixes

16 months agoTEST-06-SELINUX: Disable RuntimeBuildSources= 33644/head
Daan De Meyer [Fri, 5 Jul 2024 17:20:42 +0000 (19:20 +0200)] 
TEST-06-SELINUX: Disable RuntimeBuildSources=

Otherwise fixfiles will try to relabel it which could potentially
lead to disaster. We also change the recommendation in HACKING.md
to set the default so that TEST-06-SELINUX can override it.

16 months agomkosi: Make .autorelabel file empty
Daan De Meyer [Fri, 5 Jul 2024 17:16:31 +0000 (19:16 +0200)] 
mkosi: Make .autorelabel file empty

The contents of this file are passed as arguments to fixfiles so
let's remove the comment as otherwise fixfiles just crashes.

16 months agomkosi: use apt pinning for locally built debian/ubuntu packages
Luca Boccassi [Fri, 5 Jul 2024 15:36:45 +0000 (16:36 +0100)] 
mkosi: use apt pinning for locally built debian/ubuntu packages

This ensures that even in case the distro repository has newer
versions, the locally built packages are preferred and installed,
even to the point of downgrading already installed ones.
This is needed especially for future stable branches, when the
distros will have a newer version.

16 months agomkosi: Update to latest
Daan De Meyer [Fri, 5 Jul 2024 10:00:53 +0000 (12:00 +0200)] 
mkosi: Update to latest

16 months agotest: Add missing --no-rebuild to doc
Daan De Meyer [Fri, 5 Jul 2024 14:06:34 +0000 (16:06 +0200)] 
test: Add missing --no-rebuild to doc

Otherwise meson will try to rebuild all targets.

16 months agohwdb: Added StarLabs StarLite position sensor mapping
GwynBleidD [Thu, 27 Jun 2024 20:52:57 +0000 (22:52 +0200)] 
hwdb: Added StarLabs StarLite position sensor mapping

Default mapping for position sensor in StarLabs StarLite does
not match screen orientation. Added fixed mapping matrix.

16 months agoFix key toggle touchpad button for multilaser ul154 (#33630)
Edson Juliano Drosdeck [Thu, 4 Jul 2024 22:38:38 +0000 (19:38 -0300)] 
Fix key toggle touchpad button for multilaser ul154 (#33630)

16 months agoMerge pull request #33629 from YHNdnzj/labeler-no-stable
Luca Boccassi [Thu, 4 Jul 2024 19:01:40 +0000 (21:01 +0200)] 
Merge pull request #33629 from YHNdnzj/labeler-no-stable

labeler: some cleanups

16 months agoworkflows/labeler: do not set labels on stable backport PRs 33629/head
Mike Yuan [Thu, 4 Jul 2024 18:55:53 +0000 (20:55 +0200)] 
workflows/labeler: do not set labels on stable backport PRs

16 months agolabeler: match all mkosi files
Mike Yuan [Thu, 4 Jul 2024 18:55:42 +0000 (20:55 +0200)] 
labeler: match all mkosi files

16 months agolabeler: remove matches for dropped files (Makefile)
Mike Yuan [Thu, 4 Jul 2024 18:54:19 +0000 (20:54 +0200)] 
labeler: remove matches for dropped files (Makefile)

16 months agosystemctl: do not try to acquire triggering units for template units 33627/head
Mike Yuan [Sun, 30 Jun 2024 11:12:45 +0000 (13:12 +0200)] 
systemctl: do not try to acquire triggering units for template units

16 months agosystemctl: skip triggering unit warning if unit vanished
Mike Yuan [Thu, 29 Feb 2024 15:45:54 +0000 (23:45 +0800)] 
systemctl: skip triggering unit warning if unit vanished

16 months agoman/systemctl: --no-reload is honored by mask/unmask/preset too
Mike Yuan [Fri, 28 Jun 2024 13:56:44 +0000 (15:56 +0200)] 
man/systemctl: --no-reload is honored by mask/unmask/preset too

16 months agohwdb: add more AV controllers
Davide Cavalca [Thu, 4 Jul 2024 14:30:57 +0000 (07:30 -0700)] 
hwdb: add more AV controllers

16 months agostub: mem fixes in devicetree addon handling (#33624)
tfg13 [Thu, 4 Jul 2024 18:08:55 +0000 (19:08 +0100)] 
stub: mem fixes in devicetree addon handling (#33624)

* stub: mem fixes in devicetree addon handling

Two bugs here: The elements are of size `DevicetreeAddon`, not `size_t`,
and `[]` binds stronger than `*`. This means the first element is ok,
but the second corrupts the stack.

Found this while refactoring #32463

16 months agovmm: make sure we can handle smbios objects without variable part
Lennart Poettering [Thu, 4 Jul 2024 12:34:35 +0000 (14:34 +0200)] 
vmm: make sure we can handle smbios objects without variable part

An smbios object with no variable part is a special case, it's just
suffixed with two NUL btes. handle that properly.

This is inspired by a similar fix from https://github.com/systemd/systemd/pull/29726

16 months agomeson: Fix various versions
Daan De Meyer [Thu, 4 Jul 2024 12:44:21 +0000 (14:44 +0200)] 
meson: Fix various versions

Follow up for 8b3b01c4b7e0fde39b4be354990ee68f5e612c52

We switch to PROJECT_VERSION instead of PROJECT_VERSION_FULL where
we report our version and which is likely being parsed to avoid
breaking compat. If we didn't, the output would change from systemd
255 to systemd 255.1 which could break various tools.

16 months agoREADME: update requirements for signed dm-verity
Luca Boccassi [Thu, 4 Jul 2024 15:58:46 +0000 (16:58 +0100)] 
README: update requirements for signed dm-verity

The newest kconfig enabling DB-verified dm-verity images is queued
for 6.11:

https://patchwork.kernel.org/project/dm-devel/patch/20240617220037.594792-1-luca.boccassi@gmail.com/

16 months agosysusers: handle NSS errors gracefully
Luca Boccassi [Thu, 4 Jul 2024 09:23:04 +0000 (10:23 +0100)] 
sysusers: handle NSS errors gracefully

If the io.systemd.DynamicUser or io.systemd.Machine files exist,
but nothing is listening on them, the nss-systemd module returns
ECONNREFUSED and systemd-sysusers fails to creat the user/group.

This is problematic when ran by packaging scripts, as the package
assumes that after this has run, the user/group exist and can
be used. adduser does not fail in the same situation.

Change sysusers to print a loud warning but otherwise continue
when NSS returns an error.

16 months agoMerge pull request #33589 from poettering/file-hiearchy-no-version
Lennart Poettering [Thu, 4 Jul 2024 14:43:31 +0000 (16:43 +0200)] 
Merge pull request #33589 from poettering/file-hiearchy-no-version

man: drop version info from file hiearchy man page

16 months agoman: fully adopt ~/.local/state/ 33589/head
Lennart Poettering [Wed, 3 Jul 2024 08:18:37 +0000 (10:18 +0200)] 
man: fully adopt ~/.local/state/

The XDG base dir spec adopted ~/.local/state/ as a thing a while back,
and we updated our docs in b4d6bc63e602048188896110a585aa7de1c70c9b, but
forgot to to update the table at the bottom to fully reflect the update.
Fix that.

16 months agoman: mention that distinction between /usr/lib/ and /usr/share/ is really about share...
Lennart Poettering [Wed, 3 Jul 2024 08:10:07 +0000 (10:10 +0200)] 
man: mention that distinction between /usr/lib/ and /usr/share/ is really about shared *ownership*

16 months agoman: drop version info from file hiearchy man page
Lennart Poettering [Wed, 3 Jul 2024 07:56:51 +0000 (09:56 +0200)] 
man: drop version info from file hiearchy man page

This file doesn't document features of systemd, but is more a of a
general description that generalizes/modernizes FHS. As such, the items
listed in it weren't "added" in systemd versions, they simply reflect
general concepts independent of any specific systemd version. hence
let's drop this misleading and confusing version info.

Or in other words, the man page currently claims under "/usr/": "Added
in version 215." – Which of course is rubbish, the directory existed
since time began.

This also rebreaks all paragaphs this touches.

No content changes.

16 months agoMerge pull request #33567 from poettering/boot-fixlets
Luca Boccassi [Thu, 4 Jul 2024 11:00:56 +0000 (13:00 +0200)] 
Merge pull request #33567 from poettering/boot-fixlets

sd-boot,sd-stub: a variety of smaller fixes

16 months agoos-util: avoid matching on the wrong extension-release file
Luca Boccassi [Wed, 3 Jul 2024 20:27:28 +0000 (21:27 +0100)] 
os-util: avoid matching on the wrong extension-release file

The previous commit tries to extract a substring from the
extension-release suffix, but that is not right, it's only the
images that need to be versioned and extracted, use the extension-release
suffix as-is. Otherwise if it happens to contain a prefix that
matches the wrong image, it will be taken into account.

Follow-up for 37543971aff79f3a37646ffc2bb5845c9394797b

16 months agomkosi: Build a disk image by default again
Daan De Meyer [Thu, 4 Jul 2024 10:13:31 +0000 (12:13 +0200)] 
mkosi: Build a disk image by default again

Now that we have a way to rebuild and reinstall systemd without
having to rebuild the image, let's default to building a disk image
again.

16 months agosrc/boot/efi/meson.build: ensure VERSION_TAG exists in case of cross build
Chen Qi [Thu, 4 Jul 2024 06:18:41 +0000 (23:18 -0700)] 
src/boot/efi/meson.build: ensure VERSION_TAG exists in case of cross build

The GIT_VERSION is changed to use VERSION_TAG, but in case of cross build
for src/boot/efi, it's not set, causing build error because the compiler cannot
know it's a macro thus treating it as some variable and error out.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
16 months agomeson: Deal with potential stable versions
Daan De Meyer [Thu, 4 Jul 2024 09:12:35 +0000 (11:12 +0200)] 
meson: Deal with potential stable versions

The meson.version file might contain e.g. 256.2~devel in a stable
branch so let's make sure we deal with that.

16 months agoload-fragment: allow MountImages= with paths starting with /dev
Topi Miettinen [Wed, 26 Jun 2024 19:06:41 +0000 (22:06 +0300)] 
load-fragment: allow MountImages= with paths starting with /dev

For MountImages=, if the source is a block device, it will most likely reside
in /dev. It should be also possible to mount a static device file system in
place of (or part of) /dev. So let's allow paths starting with /dev as an
exception for MountImages=.

16 months agotest: skip TEST-69-SHUTDOWN on Debian
Luca Boccassi [Thu, 4 Jul 2024 00:01:08 +0000 (01:01 +0100)] 
test: skip TEST-69-SHUTDOWN on Debian

There is a regression in the login package, skip the test until
it is fixed. https://bugs.debian.org/1075733

16 months agozsh: add run0 completions
Ronan Pigott [Wed, 3 Jul 2024 19:33:08 +0000 (12:33 -0700)] 
zsh: add run0 completions

16 months agoMerge pull request #33608 from DaanDeMeyer/hacking
Luca Boccassi [Wed, 3 Jul 2024 23:19:58 +0000 (01:19 +0200)] 
Merge pull request #33608 from DaanDeMeyer/hacking

docs: Update HACKING

16 months agodocs: Update HACKING 33608/head
Daan De Meyer [Wed, 3 Jul 2024 20:59:40 +0000 (22:59 +0200)] 
docs: Update HACKING

Let's mention the new way to install the latest changes without
rebuilding the image. Let's also remove the duplicate info about
distribution packages that is already mentioned in its own section.

16 months agomkosi: Install zypper in opensuse images
Daan De Meyer [Wed, 3 Jul 2024 20:48:37 +0000 (22:48 +0200)] 
mkosi: Install zypper in opensuse images

16 months agomkosi: Fix sync script git command
Daan De Meyer [Wed, 3 Jul 2024 20:18:07 +0000 (22:18 +0200)] 
mkosi: Fix sync script git command

Let's make sure we actually operate on the packaging git repo.

17 months agoREADME: add missing CONFIG_MEMCG kernel config option for oomd
James Hilliard [Wed, 3 Jul 2024 19:00:04 +0000 (13:00 -0600)] 
README: add missing CONFIG_MEMCG kernel config option for oomd

We need to enable this otherwise systemd-oomd.service fails to start.

Fixes:
ConditionControlGroupController=memory was not met

17 months agomkosi: update arch commit reference
Daan De Meyer [Wed, 3 Jul 2024 06:23:29 +0000 (08:23 +0200)] 
mkosi: update arch commit reference

d74b24c7c6 meson options: vcs-tag=false
7424fedef0 upgpkg: 256.1-1: new upstream release
6016864c99 upgpkg: 256-3: rebuild to fix man pages...
6f6d48b221 upgpkg: 256-2: update shells
b9ce44e766 drop systemd-stable repository, build from main one
baf4803252 upgpkg: 256-1: new upstream release
1d75e7ddaa add an install hint on NEWS
6f17a23127 Ups, inverted...
d76029f7cc update meson options
6e7929dd98 upgpkg: 256rc4-1: new upstream pre-release - testing only!
7b70e7b0e7 upgpkg: 256rc3-2: fast-forward to current git main, non-official testing
a438b879e2 upgpkg: 256rc3-1: new upstream pre-release, non-official testing
ff30a600c9 upgpkg: 256rc2-1: new upstream pre-release, non-official testing

17 months agomkosi: Clean up old packages from the build directory
Daan De Meyer [Wed, 3 Jul 2024 18:20:31 +0000 (20:20 +0200)] 
mkosi: Clean up old packages from the build directory

17 months agomkosi: remove conflicting deb packages from builddir
Luca Boccassi [Wed, 3 Jul 2024 18:15:03 +0000 (19:15 +0100)] 
mkosi: remove conflicting deb packages from builddir

These are not actually needed or installed, so delete them from the
build directory, so that inside an image one can do:

apt install --reinstall /work/build/*.deb

Follow-up for 690a85b1d4e794af62bca6d1ea530ffc530ee58c