]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
15 months agosysupdate: Split reboot_now into utils 33520/head
Adrian Vovk [Wed, 19 Jul 2023 21:55:18 +0000 (17:55 -0400)] 
sysupdate: Split reboot_now into utils

This will let us reuse reboot_now in updatectl

15 months agosysupdate: Split UpdateSetFlags out from UpdateSet
Adrian Vovk [Thu, 13 Jul 2023 18:47:30 +0000 (14:47 -0400)] 
sysupdate: Split UpdateSetFlags out from UpdateSet

This will let us reuse UpdateSetFlags in updatectl

15 months agosysupdate: Use FOREACH_ARRAY where possible
Tom Coldrick [Thu, 27 Jun 2024 11:45:17 +0000 (12:45 +0100)] 
sysupdate: Use FOREACH_ARRAY where possible

Replace simple loops over arrays with the FOREACH_ARRAY macro.

15 months agosysupdate: Support changelogs & appstream metadata
Adrian Vovk [Wed, 19 Jul 2023 18:43:58 +0000 (14:43 -0400)] 
sysupdate: Support changelogs & appstream metadata

Makes it possible to specify URLs to a changelog and an appstream
catalog XML in the sysupdate.d/*.conf files. This will be passed along
to the clients of systemd-sysupdated, which can then present this data.

15 months agosysupdate: Implement JSON output
Adrian Vovk [Tue, 11 Jul 2023 22:46:11 +0000 (18:46 -0400)] 
sysupdate: Implement JSON output

Previously, the JSON output happened mostly as an accident (i.e. just
dumped tables intended for viewing). Now we have more complete JSON
output.

15 months agosysupdate: Add --offline mode
Adrian Vovk [Tue, 11 Jul 2023 22:35:54 +0000 (18:35 -0400)] 
sysupdate: Add --offline mode

This prevents sysupdate from going out to the network to enumerate
available instances. When combined with the list command, this lets us
query installed instances

15 months agosysupdate: Report download progress via sd_notify
Adrian Vovk [Thu, 22 Jun 2023 23:47:20 +0000 (19:47 -0400)] 
sysupdate: Report download progress via sd_notify

We set up a NOTIFY_SOCKET to get download progress notifications from
each individual import helper. Along with the number of import jobs we
have to run, this gives an overall progress value which we report using
sd_notify

15 months agostub: const'ify a few parameters
Lennart Poettering [Wed, 10 Jul 2024 09:57:43 +0000 (11:57 +0200)] 
stub: const'ify a few parameters

15 months agoMerge pull request #33686 from poettering/boot-tweaklets
Daan De Meyer [Fri, 12 Jul 2024 07:50:07 +0000 (09:50 +0200)] 
Merge pull request #33686 from poettering/boot-tweaklets

boot/bootspec: some minor fixes/additions

15 months agoMerge pull request #33697 from poettering/vmspawn-stream-fix
Daan De Meyer [Fri, 12 Jul 2024 06:33:18 +0000 (08:33 +0200)] 
Merge pull request #33697 from poettering/vmspawn-stream-fix

vmspawn: fix AF_VSOCK sd_notify() reception

15 months agosignal-util: use common definitions for ignore + default "struct sigaction"
Lennart Poettering [Wed, 10 Jul 2024 15:14:17 +0000 (17:14 +0200)] 
signal-util: use common definitions for ignore + default "struct sigaction"

We use this at various places, let's unify this in one global constant.

This changes flags in crash-handler.c in a tiny irrelevant way: we ask
syscalls to be continued on signal arrival, which we previously didn't.
But that shouldn't change anything, the only thing we'll do in the
relevant process is call raise(), and that's it, hence there definitely
are no syscalls to restart or not to restart.

15 months agobootspec: correct log level for fatal errors 33686/head
Lennart Poettering [Fri, 5 Jul 2024 08:13:35 +0000 (10:13 +0200)] 
bootspec: correct log level for fatal errors

15 months agobootspec: implement sorting by tries left/done, to match what sd-boot does
Lennart Poettering [Fri, 5 Jul 2024 07:52:58 +0000 (09:52 +0200)] 
bootspec: implement sorting by tries left/done, to match what sd-boot does

15 months agoboot: compare filename suffixes without case
Lennart Poettering [Thu, 4 Jul 2024 15:07:59 +0000 (17:07 +0200)] 
boot: compare filename suffixes without case

This is VFAT world after all.

15 months agovmspawn: get rid of an unnecessary local variable 33697/head
Lennart Poettering [Thu, 11 Jul 2024 12:34:42 +0000 (14:34 +0200)] 
vmspawn: get rid of an unnecessary local variable

15 months agovmspawn: rework how AF_VSOCK/SOCK_STREAM notifications are read
Lennart Poettering [Thu, 11 Jul 2024 12:34:55 +0000 (14:34 +0200)] 
vmspawn: rework how AF_VSOCK/SOCK_STREAM notifications are read

Stream sockets are stream sockets, i.e. they won#t give us the full data
right-away, we must buffer locally and read until we hit EOF. Hence do
so.

moreover, make sure to close the fd once we are done, otherwise the
sender might block on us.

15 months agomanager: move is-system check into manager_enable_special_signals()
Lennart Poettering [Thu, 11 Jul 2024 12:33:38 +0000 (14:33 +0200)] 
manager: move is-system check into manager_enable_special_signals()

It's usually how we do this: make the functions robust to be called in
any context, and validate the context in the functions themselves early,
instead of in the caller.

15 months agoimport-creds: when we hit ENOENT on SMBIOS 11 do not even debug log
Lennart Poettering [Thu, 11 Jul 2024 12:32:09 +0000 (14:32 +0200)] 
import-creds: when we hit ENOENT on SMBIOS 11 do not even debug log

We'll *always* hit ENEOENT when iterating through SMBIOS type #11
fields, on the last one. it's very confusing to debug log about that,
let's just not do it.

15 months agocore/execute-serialize: drop duplicate serialization of _ignore flags
Mike Yuan [Sun, 7 Jul 2024 16:13:43 +0000 (18:13 +0200)] 
core/execute-serialize: drop duplicate serialization of _ignore flags

These are indicated by the leading '-' in corresponding
label fields already.

15 months agocore/meson.build: move various -setup sources out of libcore
Mike Yuan [Sun, 7 Jul 2024 16:44:57 +0000 (18:44 +0200)] 
core/meson.build: move various -setup sources out of libcore

They're only used in main.c, i.e. pid1.

15 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.

15 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

15 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

15 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

15 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.

15 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

15 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

15 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

15 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.

15 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.

15 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).

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

15 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

15 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"

15 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

15 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.

15 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.

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

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

15 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.

15 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

15 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.

15 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.)

15 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

15 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

15 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

15 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

15 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

15 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.

15 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

15 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.

15 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.

15 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