summaryrefslogtreecommitdiffstats
path: root/test/test.service.in (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-07-04meson: Fix various versionsDaan De Meyer5-16/+17
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.
2024-07-04README: update requirements for signed dm-verityLuca Boccassi1-2/+3
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/
2024-07-04sysusers: handle NSS errors gracefullyLuca Boccassi2-6/+30
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.
2024-07-04man: fully adopt ~/.local/state/Lennart Poettering1-1/+5
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.
2024-07-04man: mention that distinction between /usr/lib/ and /usr/share/ is really ↵Lennart Poettering1-7/+12
about shared *ownership*
2024-07-04man: drop version info from file hiearchy man pageLennart Poettering2-301/+185
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.
2024-07-04os-util: avoid matching on the wrong extension-release fileLuca Boccassi2-8/+13
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
2024-07-04mkosi: Build a disk image by default againDaan De Meyer2-22/+4
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.
2024-07-04src/boot/efi/meson.build: ensure VERSION_TAG exists in case of cross buildChen Qi1-3/+4
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>
2024-07-04meson: Deal with potential stable versionsDaan De Meyer1-2/+2
The meson.version file might contain e.g. 256.2~devel in a stable branch so let's make sure we deal with that.
2024-07-04load-fragment: allow MountImages= with paths starting with /devTopi Miettinen3-8/+26
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=.
2024-07-04test: skip TEST-69-SHUTDOWN on DebianLuca Boccassi1-0/+7
There is a regression in the login package, skip the test until it is fixed. https://bugs.debian.org/1075733
2024-07-04zsh: add run0 completionsRonan Pigott2-0/+58
2024-07-03docs: Update HACKINGDaan De Meyer1-21/+12
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.
2024-07-03mkosi: Install zypper in opensuse imagesDaan De Meyer1-0/+1
2024-07-03mkosi: Fix sync script git commandDaan De Meyer1-1/+1
Let's make sure we actually operate on the packaging git repo.
2024-07-03README: add missing CONFIG_MEMCG kernel config option for oomdJames Hilliard1-0/+1
We need to enable this otherwise systemd-oomd.service fails to start. Fixes: ConditionControlGroupController=memory was not met
2024-07-03mkosi: update arch commit referenceDaan De Meyer2-2/+2
* 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
2024-07-03mkosi: Clean up old packages from the build directoryDaan De Meyer4-0/+17
2024-07-03mkosi: remove conflicting deb packages from builddirLuca Boccassi1-0/+2
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
2024-07-03load-fragment: Remove faulty assertionDaan De Meyer1-1/+1
Followup for 453cb5d01e587ff6d9fa426397c0d1b858f8f832 Fixes the following assertion: """ x86 130 ~/systemd ❯❯❯ meson compile -C build ninja: Entering directory `/home/tfleig/systemd/build' [2/5] Generating export-dbus-interfaces with a custom command FAILED: interfaces /home/tfleig/systemd/tools/dbus_exporter.py interfaces /home/tfleig/systemd/build/systemd /home/tfleig/systemd/build/systemd-homed /home/tfleig/systemd/build/systemd-hostnamed /home/tfleig/systemd/build/systemd-importd /home/tfleig/systemd/build/systemd-localed /home/tfleig/systemd/build/systemd-logind /home/tfleig/systemd/build/systemd-machined /home/tfleig/systemd/build/systemd-networkd /home/tfleig/systemd/build/systemd-oomd /home/tfleig/systemd/build/systemd-portabled /home/tfleig/systemd/build/systemd-resolved /home/tfleig/systemd/build/systemd-timedated Assertion '__unique_prefix__expr_91' failed at src/core/load-fragment.c:3912, function config_parse_tasks_max(). Aborting. Traceback (most recent call last): File "/home/tfleig/systemd/tools/dbus_exporter.py", line 45, in <module> main() File "/home/tfleig/systemd/tools/dbus_exporter.py", line 42, in main extract_interfaces_xml(args.output, exe) File "/home/tfleig/systemd/tools/dbus_exporter.py", line 9, in extract_interfaces_xml proc = run( File "/usr/lib64/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '[PosixPath('/home/tfleig/systemd/build/systemd'), '--bus-introspect', 'list']' died with <Signals.SIGABRT: 6>. [4/5] Generating man/systemd.index.xml with a custom command ninja: build stopped: subcommand failed. """
2024-07-03ukify: bring order of EFI sections in man + --help into same order as specLennart Poettering2-95/+98
Previously, the order was quite chaotic, even sometimes interleaved with entirely unrelated switches. Let's clean this up and use the same order as in the spec. This doesn't change anything real, but I think it's a worthy clean-up in particular as this order is documented as the PCR measurement order of these sections, hence there's actually a bit of relevance to always communicate the same order everywhere.
2024-07-03boot: don't set OsIndications field if already set correctlyLennart Poettering1-3/+8
2024-07-03boot: cover for hardware keys on phones/tabletsBrenton Simpson1-2/+5
The patch is originally from Brenton Simpson, I (Lennart) just added some comments and rebased it. I didn't test this, but the patch looks so obviously right to me, that I think we should just merge it, instead of delaying this further. In the worst case noone notices, in the best case this makes sd-boot work reasonably nicely on devices that only have a hadware power key + volume rocker. Fixes: #30598 Replaces: #31135
2024-07-03ukify: suffix switches that take parameters with = in log outputLennart Poettering1-1/+1
2024-07-03measure: drop incomplete support for PCRs != 11Lennart Poettering2-72/+55
At this point we have a clearer model: * systemd-measure should be used for measuring UKIs on vendor build systems, i.e. only cover stuff predictable by the OS vendor, and identical on all systems. And that is pretty much only PCR 11. * systemd-pcrlock should cover the other PCRs, which carry inherently local information, and can only be predicted locally and not already on vendor build systems. Because of that, let's not bother with any PCRs except for 11 in systemd-measure. This was added at a time where systemd-pcrlock didn't exist yet, and hence it wasn't clear how this will play out in the end.
2024-07-03boot: compare auto- prefix case-insensitivelyLennart Poettering1-3/+2
2024-07-03boot: split out inner part of config_load_type2_entries()Lennart Poettering1-119/+134
Let's simplify the code a bit, and parse Type 2 entries in a function of its own, separate from the directory enumeration. This closely follows a similar split we did a long time ago for Type 1. This is just refactoring, no real code change.
2024-07-03boot: indent error code path, but leave main code path unindentedLennart Poettering1-3/+10
2024-07-03efi: don't non-chalantly drop const from memory bufferLennart Poettering1-1/+1
2024-07-03efi: drop "ret_" prefix from "ret_sections[]" parameterLennart Poettering2-24/+26
While we write data to this parameter, it's not really a return parameter, we after all do not fully set it, we just fill in some fields. Hence it must be initialized beforehand. According to our coding style only parameters that are purely used for returning something should be named "ret_xyz", hence this one should not be. (We'll later rely on the current behaviour that it leaves array entries for which we find no sections untouched, hence leave behaviour as is, just rename the parameters to something more appropriate). (Since we are dropping the "ret_" prefix of "ret_sections", let's rename the old "section" parameter at the same time to "section_names", to make clearer what it is about).
2024-07-03efi: fix mangle_stub_cmdline() for empty stringsLennart Poettering1-6/+4
2024-07-03efi: add limit on how large files can be we load into memory at onceLennart Poettering2-5/+11
2024-07-03repart: Allow overriding fstype per partition designatorDaan De Meyer4-0/+49
$SYSTEMD_REPART_OVERRIDE_FSTYPE is too invasive. Often you want to override the fstype only for a specific designator, so let's support that as well.
2024-07-03mkosi: Copy packages to the build directory as wellDaan De Meyer4-0/+4
With the latest mkosi, mkosi -t none can be used to rerun the build script without messing with a previously built image. This allows one to run "mkosi -t disk -f qemu" in one terminal to build and boot an image in qemu and then run "mkosi -t none" in another terminal to rebuild the packages. If one then has "RuntimeBuildSources=yes" set in their mkosi configuration, the build directory is mounted into the virtual machine, which means that one can then run "dnf upgrade /work/build/*.rpm" from within the VM to install the new packages. This allows for quickly iterating on changes without having to rebuild the image all the time. We'll probably want to document this at some point, but let's start with making it possible by copying the built packages to the build directory.
2024-07-03mkosi: Make sure we don't hide errors from git merge-baseDaan De Meyer1-1/+6
Currently if git merge-base fails we'll hide the error and exit with exit status 0. Let's make we only exit early if git merge-base exits with 1 which indicates the current commit is not on the target branch. Any other error is considered fatal.
2024-07-03hwdb: Add some HP IR camerasAnton Golubev1-0/+10
Two very similar devices, with two functions - a regular camera and IR. The peculiarity of their infrared camera is that it uses a color image format (YUYV), although it is essentially black and white. The IR camera interface differs from the regular camera interface by name: "HP Wide Vision FHD Camera: HP W" for the regular camera and "HP Wide Vision FHD Camera: HP I" for an infrared camera Therefore, glob *I is used to separate the IR camera
2024-07-03update TODOLennart Poettering1-5/+4
2024-07-03mkosi: update fedora commit referenceDaan De Meyer1-1/+1
* f9fe17dbde Use vmlinux.h from kernel-devel * 9cbad936a6 Pull in openssl-devel-engine * 8ae009f929 Only add Requires on python3-zstd on Fedora * 750e910c7c Drop BuildRequires on python3-zstd
2024-07-03core/main: add an assertion to ensure user managers won't initiate ↵Mike Yuan1-8/+9
destructive/system-wide operation
2024-07-03core/manager: invoke special targets on signal only for system managerMike Yuan1-34/+36
2024-07-03core/dbus-manager: refuse SoftReboot() for user managersMike Yuan1-0/+4
Otherwise, busctl --user call ... SoftReboot results in user manager broadcasting signal and initiating soft-reboot...
2024-07-03core/dbus-manager: check for runtime scope first for system-wide operationsMike Yuan1-20/+20
It's pointless to do selinux or /run/ space checks for user managers.
2024-07-03core/dbus-manager: use sd_bus_error_set() rather than _setf() where appropriateMike Yuan1-16/+16
Also, there can only be one system manager.
2024-07-03core/dbus-manager: use path_simplify_alloc() for root and init pathsMike Yuan1-11/+11
2024-07-03core/dbus-manager: use PidRef for log_caller()Mike Yuan1-8/+9
This is only for logging, but since we lookup for the unit here, let's try to be accurate.
2024-07-03mkosi: Don't touch the packaging checkout if work is being doneDaan De Meyer1-2/+9
If work is being done in a separate branch, don't touch the packaging checkout.
2024-07-03meson: Define __TARGET_ARCH macros required by bpfDaan De Meyer1-7/+7
These are required by the bpf_tracing.h header in libbpf, see https://github.com/libbpf/libbpf/blob/master/src/bpf_tracing.h. bpf_tracing.h does have a few fallbacks in case __TARGET_ARCH_XXX is not defined but recommends using the __TARGET_ARCH macros instead so let's do that.
2024-07-03coredump: correctly take tmpfs size into account for compressionLuca Boccassi1-8/+12
We calculate the amount of uncompressed data we can write by taking the limits into account and halving it to ensure there's room for switching to compression on the fly when storing cores on a tmpfs (eg: due read-only rootfs). But the logic is flawed, as taking into account the size of the tmpfs storage was applied after the halving, so in practice when an uncompressed core file was larger than the tmpfs, we fill it and then fail. Rearrange the logic so that the halving is done after taking into account the tmpfs size.
2024-07-02docs/CODING_STYLE: document that we nowadays prefer (const char*) for func ↵Mike Yuan1-1/+13
ret type Addresses https://github.com/systemd/systemd/pull/33567#discussion_r1662818225