summaryrefslogtreecommitdiffstats
path: root/units/systemd-sysupdate-reboot.timer (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-04-22tpm2-setup-early: order against pcrphase-initrdLennart Poettering1-1/+1
Right now systemd-tpm2-setup-early and systemd-pcrphase-initrd.service are not ordered against each other. However, they require the same slow resource to operate: the TPM2. If we allow them to access the device simultaneously, the kernel resource manager like has to save/restore TPM state while they operate, slowing things down further. hence, let's avoid all this mess, and just order them against each other so that the shared resource is first used in full by one and then by the other. I opted to order systemd-pcrphase-initrd before systemd-tpm2-setup-early, since there's value in having the former as early as possible in userspace, to be a good marker for the transition from kernel to first userspace. I can see no benefit in the opposite order however.
2024-04-22core: Check for TERM=dumb in show_status()Daan De Meyer4-7/+20
We shouldn't try to use any ANSI escape sequences if TERM=dumb. Also, the "\r\n" we output can get interpreted as a double newline (for example by Github Actions), so let's output just "\n" when TERM=dumb to clean up the CI logs.
2024-04-22tpm2-util: add generic wrapper tpm2_context_new_or_warn() that wrpas ↵Lennart Poettering12-26/+45
tpm2_context_new and logs about errors We so far just print a short log message that is not very useful, let's add some recognizable error codes, and output better log messages if we can't get TPM stuff to work. Fixes: #31925
2024-04-22sd-event: fix fd leak when fd is owned by IO event sourceYu Watanabe3-19/+40
When an IO event source owns relevant fd, replacing with a new fd leaks the previously assigned fd. === sd_event_add_io(event, &s, fd, ...); sd_event_source_set_io_fd_own(s, true); sd_event_source_set_io_fd(s, new_fd); <-- The previous fd is not closed. sd_event_source_unref(s); <-- new_fd is closed as expected. === Without the change, valgrind reports the leak: ==998589== ==998589== FILE DESCRIPTORS: 4 open (3 std) at exit. ==998589== Open file descriptor 4: ==998589== at 0x4F119AB: pipe2 (in /usr/lib64/libc.so.6) ==998589== by 0x408830: test_sd_event_source_set_io_fd (test-event.c:862) ==998589== by 0x403302: run_test_table (tests.h:171) ==998589== by 0x408E31: main (test-event.c:935) ==998589== ==998589== ==998589== HEAP SUMMARY: ==998589== in use at exit: 0 bytes in 0 blocks ==998589== total heap usage: 33,305 allocs, 33,305 frees, 1,283,581 bytes allocated ==998589== ==998589== All heap blocks were freed -- no leaks are possible ==998589== ==998589== For lists of detected and suppressed errors, rerun with: -s ==998589== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
2024-04-22build(deps): bump pkg/arch from `ccc32ea` to `124b1da`dependabot[bot]1-0/+0
Bumps pkg/arch from `ccc32ea` to `124b1da`. --- updated-dependencies: - dependency-name: pkg/arch dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22man: fix typoYu Watanabe2-2/+2
Follow-ups for 418f2dc75564330d4ff6c86193f4a3c8ffbb1f1b.
2024-04-22test-network: add test for [IPv6SendRA] ReachableTimeSec= and RetransmitSec=Yu Watanabe2-0/+5
2024-04-22man: slightly rephrase RetransmitSec= settingYu Watanabe1-4/+6
2024-04-22network/radv: introduce ReachableTimeSec= settingYu Watanabe6-9/+30
To make the reachable time in the RA header sent by networkd configurable.
2024-04-22sd-radv: allow to configure reachable time in RA headerYu Watanabe4-0/+15
2024-04-22mkosi: Explicitly disable fortify for debian/ubuntuDaan De Meyer1-0/+1
We do the same for the other distributions, so let's do so for debian/ubuntu as well.
2024-04-22NEWS: reword a few sentencesZbigniew Jędrzejewski-Szmek1-38/+43
2024-04-22mkosi: Use awk to avoid dpkg-buildpackage warningDaan De Meyer1-4/+4
Let's strip unnecessary whitespace to avoid a dpkg-buildpackage warning.
2024-04-22mkosi: Add environment variable to set the optimization levelDaan De Meyer4-4/+4
2024-04-22sd-path: rename output paramZbigniew Jędrzejewski-Szmek1-18/+18
As requested in review.
2024-04-22Try path without sbin even if compiled with split-bin=trueZbigniew Jędrzejewski-Szmek6-32/+68
I'm working on the transition to merged sbin in Fedora. While the transition is happening (and probably for a while after), we need to compile systemd with split-bin=true to support systems upgraded from previous versions. But when the system has been upgraded and already has /usr/sbin that is a symlink, be nice and give $PATH without sbin. We check for both /usr/sbin and /usr/local/sbin. If either exists and is not a symlink to ./bin, we retain previous behaviour. This means that if both are converted, we get the same behaviour as split-bin=false, and otherwise we get the same behaviour as before. sd-path uses the same logic. This is not a hot path, so I got rid of the nulstr macros that duplicated the logic.
2024-04-22test: Don't allocate scope if already running in unit with delegated cgroupDaan De Meyer3-2/+7
If we're already running in a unit with delegation turned on, let's skip allocation of a scope unit and cgroup subroot. This allows journald to correctly attribute the logs of all subprocesses spawned by tests such as test-execute to the test-execute service when the test is running in a service.
2024-04-22test: Use log_setup()Daan De Meyer1-2/+1
Specifically, this will make tests log to the journal if stderr is connected to the journal. This means we get proper log priorities and such compared to if we just logged to stderr.
2024-04-22test-execute: Use new assertion macrosDaan De Meyer1-138/+138
2024-04-22test: Add ASSERT_ERROR() and ASSERT_ERROR_ERRNO()Daan De Meyer2-0/+46
For when we expect something to fail with a specific error.
2024-04-22test: Make sure test_fdset_close_others does not affect logging fdsDaan De Meyer1-0/+9
2024-04-22test-bpf-restrict-fs: Add @application to allowed filesystems as wellDaan De Meyer1-6/+6
We might be booting from virtiofs which is fuse so we need @application as well.
2024-04-22test-bpf-firewall: Skip if ping is not availableDaan De Meyer1-0/+4
2024-04-22mkosi: Install various system users/groups in opensuse imagesDaan De Meyer1-0/+10
These don't get pulled in automatically and there doesn't seem to be a "system-users" package so install the ones we need for the integration tests manually.
2024-04-22mkosi: Backport Fedora basic users/groups sysusers files to CentOSDaan De Meyer2-0/+37
CentOS does not ship these sysusers dropins which set up basic system users and groups. Until we can move to CentOS Stream 10, let's add the dropins ourselves to make sure the base system users/groups are available on CentOS.
2024-04-22mkosi: Install procps-ng in all imagesDaan De Meyer2-0/+2
Required for TEST-01-BASIC.
2024-04-22mkosi: Make sure systemd-libs is updated on ArchDaan De Meyer1-2/+4
The Arch Linux PKGBUILD does not (yet) have versioned dependencies between the systemd packages, causing systemd-libs to not get updated to 256-devel if systemd 256-devel is installed. Let's explicitly install the newer version of systemd-libs as well for now until this problem is fixed.
2024-04-22mkosi: Make sure ping is installedDaan De Meyer4-1/+5
Required for test-bpf-firewall.
2024-04-22mkosi: Disable rpm package notesDaan De Meyer1-0/+1
This introduces dependencies on various environment variables set by rpmbuild which will not be set when rerunning meson inside the VM/container so let's disable package notes to avoid these dependencies, as the package notes aren't terribly useful in this scenario anyway.
2024-04-22mkosi: Make sure serial console line wrapping is re-enabledDaan De Meyer1-0/+4
2024-04-22mkosi: Update to latestDaan De Meyer1-1/+1
2024-04-20NEWS: fix typoLuca Boccassi1-1/+1
2024-04-20ci: fix systemd-machined component nameFrantisek Sumsal1-1/+1
Follow-up for d762f4d52d31c8eb6a6a7e517f107dfe8d443ee8.
2024-04-20sd-journal: downgrade log message "Unused data (entry_offset==0)"Yu Watanabe1-1/+1
This happens when journal is rotated after a data is written but before an entry that linked to the data is not written yet. This is neither data corruption, nor program error. Let's downgrade the log level. Closes #32153.
2024-04-20test: add test case for sd_journal_{get,seek,test}_cursor()Yu Watanabe1-2/+60
For issue #31516.
2024-04-20update NEWSLennart Poettering1-0/+10
2024-04-20update TODOLennart Poettering1-3/+0
2024-04-20vmspawn: enable vmgenid for all VMsLennart Poettering1-0/+18
This passes an ID derived from the vmgenid down to all VMs. This is useful to have an identifier for this VM generation id. We derive it from the invocation ID, if we have one, otherwise we randomize it. Eventually we should make use of the vmgenid changing to re-acquire MAC addresses, DHCP leases as such. Let's for now enable the VMM side of the concept as first step towards that.
2024-04-20sd-id128: add an app-specific flavour of the invocation ID tooLennart Poettering5-6/+62
2024-04-20vmspawn: add env var that can extend the qemu cmdlineLennart Poettering2-0/+15
This is a bit hackish, but really useful sometimes to play around with some qemu switches.
2024-04-20vmspawn: enable hyperv enlightenmentsLennart Poettering1-1/+7
THese are generally recommended (and libvirt/gnome-boxes default to them hence). They are mostly relevant for Windows, but I think it makes sense to enable them anyway for Linux too, simply to excercise #28001, and they shouldn't hurt.
2024-04-20detect-virt: detect hyperv-enlightened qemu as qemu, not as hypervLennart Poettering1-4/+16
CPUID reporting hyperv should be taken with a grain of salt, and we should prefer other mechanisms then. Fixes: #28001
2024-04-20sd-event: fix sd_event_source_get_inotify_path()Yu Watanabe5-23/+55
Follow-ups for 74c4231ce5f6cddabc2500391a8d5fd69e89b79e. Previously, the path is obtained from the fd, but it is closed in sd_event_loop() to unpin the filesystem. So, let's save the path when the event source is created, and make sd_event_source_get_inotify_path() simply read it.
2024-04-20Replaced "machined" label with "machine" #32373Sarvajith Adyanthaya1-2/+2
2024-04-20po: Translated using Weblate (Indonesian)Andika Triwidada1-26/+18
Currently translated at 100.0% (233 of 233 strings) Co-authored-by: Andika Triwidada <andika@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/id/ Translation: systemd/main
2024-04-20network/radv: sd-radv allows to update MAC address without stoppingYu Watanabe1-20/+1
2024-04-20sd-radv: use sd_radv_is_running()Yu Watanabe1-28/+8
This also drops several unnecessary conditions for checking sd-radv is running or not in setting options, e.g. home agent or mac address.
2024-04-20sd-radv: shorten enumerated type definitionYu Watanabe1-3/+2
2024-04-20test-network: add test for global UseDomains= settingYu Watanabe1-6/+10
2024-04-20network: introduce network- and protocol-independent default for UseDomains=Yu Watanabe10-18/+87
Follow-up for fb573007430ab0dbe45517b58837d2fa5cfa1a48. Prompted by #32273.