Yu Watanabe [Sun, 23 Jan 2022 02:11:43 +0000 (11:11 +0900)]
sd-dhcp-server: shorten code a bit
Yu Watanabe [Sat, 22 Jan 2022 17:27:26 +0000 (02:27 +0900)]
sd-dhcp-server: drop unnecessary buffer duplication
The block try to find and remove the existing static lease which matches
the provided client ID, and the provided client ID will not be stored
anywhere. Hence, it is not necessary to duplicate it.
ash [Sat, 22 Jan 2022 14:49:54 +0000 (14:49 +0000)]
man: note more clearly that $SYSTEMD_PAGER requires $SYSTEMD_PAGERSECURE
Thomas Haller [Sat, 22 Jan 2022 14:02:04 +0000 (15:02 +0100)]
sd-event: workaround maybe-uninitalized warning in sd_event_add_inotify()
With LTO, the compiler might think that the variable is uninitialized
(from NetworkManager's fork, with gcc-11.2.1-1.fc35):
src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c: In function 'sd_event_add_inotify':
src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:2120: error: 's' may be used uninitialized in this function [-Werror=maybe-uninitialized]
2120 | *ret = s;
|
src/libnm-systemd-core/src/libsystemd/sd-event/sd-event.c:2102: note: 's' was declared here
2102 | sd_event_source *s;
|
lto1: all warnings being treated as errors
In particular, that would happen for codepaths where event_add_inotify_fd_internal()
returns `-errno`, and the compiler cannot be sure that the returned value will
be negative. Technically, the compiler is right, but we rely on libc functions
to set errno correctly, so this only happens in code paths, where something
bad already happend.
While LTO is prone to such false warnings, we are largely able to build systemd
without warnings. So it is feasible and we should make the effort of working
around warnings as they appear.
Frantisek Sumsal [Sat, 22 Jan 2022 15:00:22 +0000 (16:00 +0100)]
packit: switch the remaining jobs to F35
gcc-12 seems to be very unstable right now, so to keep our CI builds
useful let's move them to stable F35 for a while.
Follow-up to
478c632e00ffbf50012b1946a8a025494c012353.
See:
* https://github.com/systemd/systemd/issues/22215
* https://bugzilla.redhat.com/show_bug.cgi?id=
2043915
Yu Watanabe [Sat, 22 Jan 2022 07:49:36 +0000 (16:49 +0900)]
Merge pull request #22209 from systemd/wip/hadess/chassis-override
hostname: Allow overriding the chassis type from hwdb
Julia Kartseva [Sat, 22 Jan 2022 02:50:26 +0000 (18:50 -0800)]
bpf: name unnamed bpf programs
bpf-firewall and bpf-devices do not have names. This complicates
debugging with bpftool(8).
Assign names starting with 'sd_' prefix:
* firewall program names are 'sd_fw_ingress' for ingress attach
point and 'sd_fw_egress' for egress.
* 'sd_devices' for devices prog
'sd_' prefix is already used in source-compiled programs, e.g.
sd_restrictif_i, sd_restrictif_e, sd_bind6.
The name must not be longer than 15 characters or BPF_OBJ_NAME_LEN - 1.
Assign names only to programs loaded to kernel by systemd since
programs pinned to bpffs are already loaded.
YmrDtnJu [Fri, 21 Jan 2022 17:21:27 +0000 (18:21 +0100)]
Fix journald audit logging with fields > N_IOVEC_AUDIT_FIELDS.
ELEMENTSOF(iovec) is not the correct value for the newly introduced parameter m
to function map_all_fields because it is the maximum number of elements in the
iovec array, including those reserved for N_IOVEC_META_FIELDS. The correct
value is the current number of already used elements in the array plus the
maximum number to use for fields decoded from the kernel audit message.
Jan Janssen [Fri, 21 Jan 2022 17:34:04 +0000 (18:34 +0100)]
boot: Only build with debug symbols in developer mode
The debug symbols are of very limited use in proper deployments
unlike with regular userspace. Unless someone goes through the pain
of setting up an EFI debugger (assuming their firmware even supports
this in the first place) any provided debug symbols will just be
useless.
Debugging under QEMU is possible, but even then it is non-trivial
to set up, so anyone willing to go that far can just build in
developer mode.
Meanwhile, at least x86 firmware tends to refuse binaries that contain
debug symbols. We do strip the files when converted to PE anyway, but
the elf file needs to stay around on other arches as objcopy does not
support PE as input there.
Also, the generated debug symbols seem to be not reproducible when
building with LTO. Whether this is an issue in tooling or our side
is unclear. This works around this issue.
Fixes: #22157
Bastien Nocera [Fri, 21 Jan 2022 17:57:21 +0000 (18:57 +0100)]
hwdb: Add Microsoft Surface Pro 1 chassis quirk
See https://github.com/systemd/systemd/issues/7390#issuecomment-
345546127
Bastien Nocera [Fri, 21 Jan 2022 17:56:42 +0000 (18:56 +0100)]
hostname: Allow overriding the chassis type from hwdb
Closes: #7390
Yu Watanabe [Fri, 21 Jan 2022 17:45:36 +0000 (02:45 +0900)]
Merge pull request #22205 from yuwata/udevadm-info-cleanups
udevadm: keep watch directory and several cleanups
Daan De Meyer [Fri, 21 Jan 2022 14:28:23 +0000 (14:28 +0000)]
meson: Add missing test dependencies
Currently, running "meson build" followed by "meson test -C build"
will result in many failed tests due to missing dependencies. This
commit adds the missing dependencies to make sure no tests fail.
Yu Watanabe [Fri, 21 Jan 2022 15:44:12 +0000 (00:44 +0900)]
udevadm: add more assertions
Yu Watanabe [Fri, 21 Jan 2022 15:35:15 +0000 (00:35 +0900)]
udevadm: simplify the code of removing udev state files
Yu Watanabe [Fri, 21 Jan 2022 15:16:35 +0000 (00:16 +0900)]
udevadm: split assertions
Then we can easily find which pointer is NULL.
Yu Watanabe [Fri, 21 Jan 2022 15:13:28 +0000 (00:13 +0900)]
udevadm: do not remove watch directory
See the comment in the code.
Yu Watanabe [Fri, 21 Jan 2022 15:10:09 +0000 (00:10 +0900)]
Merge pull request #22202 from mwilck/keep-links-02
udevadm info --cleanup-db: don't delete information for kept db entries
Luca Boccassi [Mon, 17 Jan 2022 01:14:14 +0000 (01:14 +0000)]
core: add ExtensionDirectories= setting
Add a new setting that follows the same principle and implementation
as ExtensionImages, but using directories as sources.
It will be used to implement support for extending portable images
with directories, since portable services can already use a directory
as root.
Martin Wilck [Thu, 20 Jan 2022 13:31:45 +0000 (14:31 +0100)]
udevadm: cleanup-db: don't delete information for kept db entries
devices with the db_persist property won't be deleted during database
cleanup. This applies to dm and md devices in particular.
For such devices, we should also keep the files under /run/udev/links,
/run/udev/tags, and /run/udev/watch, to make sure that after restart,
udevd has the same information about the devices as it did before
the cleanup.
If we don't do this, a lower-priority device that is discovered in
the coldplug phase may take over symlinks from a device that persisted.
Not removing the watches also enables udevd to resume watching a device
after restart.
Signed-off-by: Martin Wilck <mwilck@suse.com>
Martin Wilck [Fri, 21 Jan 2022 09:44:26 +0000 (10:44 +0100)]
udevadm: cleanup_dir: use dot_or_dot_dot()
which is safer than just checking dent[0].
Also, fix two style issues.
Luca Boccassi [Fri, 21 Jan 2022 11:22:22 +0000 (11:22 +0000)]
Merge pull request #22195 from keszybz/more-specifiers
Add unit specifiers for fragment path and directory
Zbigniew Jędrzejewski-Szmek [Thu, 20 Jan 2022 15:45:19 +0000 (16:45 +0100)]
core: add %y/%Y specifiers for the fragment path of the unit
Fixes #6308: people want to be able to link a unit file via 'systemctl enable'
from a git checkout or such and refer to other files in the same repo.
The new specifiers make that easy.
%y/%Y is used because other more obvious choices like %d/%D or %p/%P are
not available because at least on of the two letters is already used.
The new specifiers are only available in units. Technically it would be
trivial to add then in [Install] too, but I don't see how they could be
useful, so I didn't do that.
I added both %y and %Y because both were requested in the issue, and because I
think both could be useful, depending on the case. %Y to refer to other files
in the same repo, and %y in the case where a single repo has multiple unit files,
and e.g. each unit has some corresponding asset named after the unit file.
Yu Watanabe [Fri, 21 Jan 2022 00:45:45 +0000 (09:45 +0900)]
Merge pull request #22199 from yuwata/resolve-reduce-attempts-reading-networkd-link-file
resolve: reduce attempts of reading networkd's link file
Yu Watanabe [Thu, 20 Jan 2022 18:03:45 +0000 (03:03 +0900)]
resolve: refuse to resolve empty hostname
Previously, varlink or dbus methods return
io.systemd.Resolve.NoNameServers or BUS_ERROR_NO_NAME_SERVERS if an
empty hostname is provided, and thus nss-resolve returns NSS_STATUS_TRYAGAIN.
That causes getaddrinfo() returns 'Temporary failure in name resolution'
instead of 'Name or service not known'.
This makes calling varlink or dbus method with an empty hostname result
-EINVAL, and hence nss-resolve returns NSS_STATUS_NOTFOUND.
Fixes RHBZ#
2039854 (https://bugzilla.redhat.com/show_bug.cgi?id=
2039854).
Yu Watanabe [Fri, 21 Jan 2022 00:44:12 +0000 (09:44 +0900)]
Merge pull request #22183 from anitazha/oomdkillfix
oomd: fix potential race between killing cgroups and cleaning up cgroups
Jan Janssen [Thu, 20 Jan 2022 20:12:44 +0000 (21:12 +0100)]
meson: Add missing boot headers and use @INPUT@ for linking
Anita Zhang [Wed, 19 Jan 2022 21:26:01 +0000 (13:26 -0800)]
oomd: handle situations when no cgroups are killed
Currently if systemd-oomd doesn't kill anything in a selected cgroup, it
selects a new candidate immediately. But if a selected cgroup wasn't killed,
it is likely due to it disappearing or getting cleaned up between the time
it was selected as a candidate and getting sent SIGKILL(s). We should handle
it as though systemd-oomd did perform a kill so that it will check
swap/pressure again before it tries to select a new candidate.
Anita Zhang [Wed, 19 Jan 2022 18:40:46 +0000 (10:40 -0800)]
oomd: fix race with path unavailability when killing cgroups
There can be a situation where systemd-oomd would kill all of the processes
in a cgroup, pid1 would clean up that cgroup, and systemd-oomd would get
ENODEV trying to iterate the cgroup a final time to ensure it was empty.
systemd-oomd sees this as an error and immediately picks a new candidate even
though pressure may have recovered. To counter this, check and handle
path unavailability errnos specially.
Fixes: #22030
Zbigniew Jędrzejewski-Szmek [Thu, 20 Jan 2022 14:47:22 +0000 (15:47 +0100)]
shared/specifier: treat NULL the same as ""
We would busily allocate an empty string to concatenate all of it's
zero characters to the output. Let's make things a bit simpler by letting
the specifier functions return NULL to mean "nothing to append".
Yu Watanabe [Thu, 20 Jan 2022 20:22:33 +0000 (05:22 +0900)]
resolve: reduce attempts of reading link file
The function `link_relevant()` is called repeatedly in `link_allocate_scopes()`.
Let's not read networkd's link file in `link_relevant()`.
Closes #22190.
Yu Watanabe [Thu, 20 Jan 2022 21:15:31 +0000 (06:15 +0900)]
wait-online: use network_link_get_operational_state()
Yu Watanabe [Thu, 20 Jan 2022 20:45:09 +0000 (05:45 +0900)]
network-util: introduce network_link_get_operational_state()
Yu Watanabe [Thu, 20 Jan 2022 20:07:28 +0000 (05:07 +0900)]
resolve: use FLAGS_SET() macro
Yu Watanabe [Thu, 20 Jan 2022 20:05:04 +0000 (05:05 +0900)]
resolve: use netif_has_carrier()
Yu Watanabe [Thu, 20 Jan 2022 20:02:42 +0000 (05:02 +0900)]
netif-util: introduce netif_has_carrier()
Yu Watanabe [Thu, 20 Jan 2022 19:46:14 +0000 (04:46 +0900)]
resolve: drop redundant call of link_allocate_scopes() and link_add_rrs()
In `manager_process_link()`, the function `link_update()` is called just
after `link_process_rtnl()`, and `link_update()` also calls
`link_allocate_scopes()` and `link_add_rrs()`. Hence, the calls in
`link_process_rtnl()` are redundant.
Yu Watanabe [Thu, 20 Jan 2022 19:43:37 +0000 (04:43 +0900)]
resolve: use log_link_warning_errno() or freinds more
Yu Watanabe [Thu, 20 Jan 2022 19:32:38 +0000 (04:32 +0900)]
resolve: add debuging log of interface name change
Evgeny Vereshchagin [Thu, 20 Jan 2022 13:41:56 +0000 (13:41 +0000)]
tests: make fuzz-journal-remote less flaky
by always calling journal_remote_server_destroy, which resets global
variables like journal_remote_server_global. It should prevent crashes like
```
Assertion 'journal_remote_server_global == NULL' failed at src/journal-remote/journal-remote.c:312, function int journal_remote_server_init(RemoteServer *, const char *, JournalWriteSplitMode, _Bool, _Bool)(). Aborting.
AddressSanitizer:DEADLYSIGNAL
=================================================================
==24769==ERROR: AddressSanitizer: ABRT on unknown address 0x0539000060c1 (pc 0x7f23b4d5818b bp 0x7ffcbc4080c0 sp 0x7ffcbc407e70 T0)
SCARINESS: 10 (signal)
#0 0x7f23b4d5818b in raise /build/glibc-eX1tMB/glibc-2.31/sysdeps/unix/sysv/linux/raise.c:51:1
#1 0x7f23b4d37858 in abort /build/glibc-eX1tMB/glibc-2.31/stdlib/abort.c:79:7
#2 0x7f23b5731809 in log_assert_failed systemd/src/basic/log.c:866:9
```
Zbigniew Jędrzejewski-Szmek [Wed, 19 Jan 2022 17:09:22 +0000 (18:09 +0100)]
Use ASSERT_PTR() in more places
Evgeny Vereshchagin [Thu, 20 Jan 2022 08:54:54 +0000 (08:54 +0000)]
ci: switch to fedora-35 on i386 on Packit
systemd seems to be failing to compile there with gcc-12 but considering
that gcc-12 hasn't been released yet it doesn't seem to make sense
to add workarounds to get it to compile there. Until gcc-12 is
stabilized it should be enough to build systemd on fedora-35 to
make sure it's buildable on i386.
Thomas Batten [Thu, 20 Jan 2022 08:54:00 +0000 (19:24 +1030)]
hwdb: Add accel orientation quirk for the GPD Pocket 3
Tyson Whitehead [Thu, 20 Jan 2022 03:38:21 +0000 (22:38 -0500)]
hwdb: CH Pro Pedals not classified correctly due to no buttons
Evgeny Vereshchagin [Thu, 20 Jan 2022 05:06:49 +0000 (05:06 +0000)]
tests: fuzz etc_hosts_parse
That's just a follow-up to https://github.com/systemd/systemd/pull/22179
Yu Watanabe [Wed, 19 Jan 2022 20:24:31 +0000 (05:24 +0900)]
resolve: fix assertion triggered when r == 0
Fixes #22178.
Jan Janssen [Wed, 19 Jan 2022 09:15:36 +0000 (10:15 +0100)]
bus: Use OrderedSet for introspection
Otherwise, the generated xml files are not reproducible.
Luca Boccassi [Wed, 19 Jan 2022 22:38:00 +0000 (22:38 +0000)]
Merge pull request #21865 from yuwata/network-sr-iov
udev/net: support configuring SR-IOV virtual functions through .link file
Jan Janssen [Wed, 19 Jan 2022 15:37:25 +0000 (16:37 +0100)]
boot: Use -ffile-prefix-map when present
This should make sure the stub elf binary is reproducible.
Fixes: #22157
Zbigniew Jędrzejewski-Szmek [Wed, 19 Jan 2022 14:11:48 +0000 (15:11 +0100)]
Merge pull request #22172 from yuwata/udev-sd-device-more-debugging-logs
udev, sd-device: more debugging logs
Yu Watanabe [Wed, 19 Jan 2022 10:03:52 +0000 (19:03 +0900)]
test: replace multiple echo with cat
Suggested by shell check SC2129.
Yu Watanabe [Wed, 19 Jan 2022 09:20:49 +0000 (18:20 +0900)]
udev-util: add event UUID to debugging logs
Yu Watanabe [Wed, 19 Jan 2022 07:07:26 +0000 (16:07 +0900)]
sd-device: add more debugging logs in device_set_syspath()
On failure, the function previously sometimes logs in debug level, but
sometimes does not. Let's always log the error cause.
Yu Watanabe [Wed, 19 Jan 2022 09:46:09 +0000 (18:46 +0900)]
meson: skip to search clang, llvm-string, and bpftool, if libbpf not found
Prompted by https://github.com/systemd/systemd/pull/22093#issuecomment-
1016254914.
Yu Watanabe [Wed, 19 Jan 2022 06:48:20 +0000 (15:48 +0900)]
test: wait for newly created btrfs triggered
Fixes the second issue in #21819.
Zbigniew Jędrzejewski-Szmek [Wed, 19 Jan 2022 07:57:15 +0000 (08:57 +0100)]
Merge pull request #22163 from bluca/extension_images_validation
Improve ExtensionImages validation
Luca Boccassi [Wed, 19 Jan 2022 00:27:45 +0000 (00:27 +0000)]
sysext: use LO_FLAGS_PARTSCAN when opening image
Jan 17 12:34:59 myguest1 (sd-sysext)[486]: Device '/var/lib/extensions/myext.raw' is loopback block device with partition scanning turned off, please turn it on.
Fixes https://github.com/systemd/systemd/issues/22146
Yu Watanabe [Sat, 15 Jan 2022 00:26:32 +0000 (09:26 +0900)]
test-network: add testcases for configuring SR-IOV by .link file
Yu Watanabe [Fri, 14 Jan 2022 23:54:36 +0000 (08:54 +0900)]
test-network: split out SR-IOV test to new class
Yu Watanabe [Sat, 15 Jan 2022 00:30:21 +0000 (09:30 +0900)]
test-network: silence check for alternative names
Yu Watanabe [Sat, 15 Jan 2022 00:08:47 +0000 (09:08 +0900)]
network: show driver in debug log
Yu Watanabe [Fri, 14 Jan 2022 22:03:20 +0000 (07:03 +0900)]
udev/net: check if the requested SR-IOV virtual function exists before configuring it
Yu Watanabe [Fri, 14 Jan 2022 18:35:27 +0000 (03:35 +0900)]
udev/net: allow to set number of SR-IOV virtual functions
This adds SR-IOVVirtualFunctions= setting in [Link] section.
Yu Watanabe [Fri, 14 Jan 2022 08:24:49 +0000 (17:24 +0900)]
udev/net: also support [SR-IOV] section in .link files
The same section is already supported by .network files. But such
low-level inteerface setting should be done by udevd, instead of
networkd. Let's also support the same semantics by .link files.
Prompted by https://github.com/systemd/systemd/issues/20474#issuecomment-
901901360.
Yu Watanabe [Mon, 27 Dec 2021 02:09:02 +0000 (11:09 +0900)]
network: move SR-IOV related functions to src/shared/netif-sriov.[ch]
Yu Watanabe [Mon, 27 Dec 2021 01:34:24 +0000 (10:34 +0900)]
network: rename NetworkConfigSection -> ConfigSection
And move it and relevant functions to conf-parser.[ch].
Yu Watanabe [Fri, 14 Jan 2022 21:17:27 +0000 (06:17 +0900)]
network: sr-iov: add missing assertion
Yu Watanabe [Thu, 23 Dec 2021 03:59:52 +0000 (12:59 +0900)]
network: sr-iov: drop conflicting sections
Yu Watanabe [Thu, 23 Dec 2021 03:59:08 +0000 (12:59 +0900)]
network: sr-iov: fix section name in log messages
Yu Watanabe [Wed, 19 Jan 2022 05:43:10 +0000 (14:43 +0900)]
Merge pull request #22161 from kreijack/ignore-boot-entries
bootctl: Ignore boot entries (continue #22041)
Luca Boccassi [Wed, 19 Jan 2022 00:08:57 +0000 (00:08 +0000)]
core: refuse to mount ExtensionImages if the base layer doesn't at least have ID in os-release
We can't match an extension if we don't at least have an ID,
so refuse to continue
Luca Boccassi [Wed, 19 Jan 2022 00:01:48 +0000 (00:01 +0000)]
dissect-image: validate extension-release even if the host has only ID in os-release
A rolling distro won't set VERSION_ID or SYSEXT_LEVEL in os-release,
which means we skip validation of ExtensionImages.
Validate even with just an ID, the lower level helper already
recognizes and accepts this use case.
Fixes https://github.com/systemd/systemd/issues/22146
Luca Boccassi [Tue, 18 Jan 2022 22:40:58 +0000 (22:40 +0000)]
Merge pull request #22159 from medhefgo/boot-xbootldr
boot: xbootldr improvements
Ludwig Nussel [Tue, 18 Jan 2022 13:47:41 +0000 (14:47 +0100)]
machined: provide more details to polkit auth
Goffredo Baroncelli [Tue, 18 Jan 2022 18:32:35 +0000 (19:32 +0100)]
bootctl: removed unused parameter only_auto
Remove the parameter 'only_auto' from the function
boot_entries_augment_from_loader() because each caller set it always to
true.
Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Goffredo Baroncelli [Tue, 18 Jan 2022 18:32:35 +0000 (19:32 +0100)]
bootctl: ignore the bootloader boot entries
When bootctl lists the boot entries, considers also the ones
returned by systemd-boot (via the efi LoaderEntries variable),
created at boot time.
Unfortunately this list may became incorrect if (e.g.) the user remove a
kernel package.
This patch changes this behaviour, so bootctl ignores some the
boot entries returned by systemd-boot.
In any case, bootctl still considers the 'auto-xxx' boot entries
listed below:
Boot entrie name Title
----------------------------- ------------------------------
auto-osx macOS boot loader
auto-windows Windows Boot Manager
auto-efi-shell EFI Shell
auto-efi-default EFI Default Loader
auto-reboot-to-firmware-setup Reboot Into Firmware Interface
The other entries that systemd-boot synthetizes (e.g. the ones loaded from
/efi/loader/entries/<uuid>) can be synthetized by bootctl too, so no
information is lost.
Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Jan Janssen [Tue, 18 Jan 2022 12:35:53 +0000 (13:35 +0100)]
boot: Pass around HARDDRIVE_DEVICE_PATH
Jan Janssen [Tue, 18 Jan 2022 12:01:39 +0000 (13:01 +0100)]
boot: Simplify looking for the xboot hard drive
The device path should not contain multiple hard drive nodes in it,
so looking at them all should not be needed.
If some crazy firmware/driver were to make nested GPT drives
available like that, we should be only looking at the last partition
and its containing GPT drive anyway.
Jan Janssen [Tue, 18 Jan 2022 11:24:26 +0000 (12:24 +0100)]
boot: Search for the partition node directly
Some firmware creates partition device paths without a messaging
device path node, making the search for the xboot loader partition
fail.
Fixes: #17756
Zbigniew Jędrzejewski-Szmek [Tue, 18 Jan 2022 14:20:37 +0000 (15:20 +0100)]
Merge pull request #21805 from наб
A trivial merge conflict was fixed manually.
Zbigniew Jędrzejewski-Szmek [Tue, 18 Jan 2022 14:09:47 +0000 (15:09 +0100)]
Merge pull request #22093 from yuwata/meson-bpftool-version
meson: require bpftool version >= 5.6
Evgeny Vereshchagin [Sun, 16 Jan 2022 06:06:15 +0000 (06:06 +0000)]
meson: force ctags to use absolute paths
Looks like https://github.com/mesonbuild/meson/issues/957 was
reintroduced in meson-0.57.0 (and looking and https://mesonbuild.com/Release-notes-for-0-57-0.html
I'm not sure whether it was intentional or not) so run_command can no
longer be used to get around
https://github.com/mesonbuild/meson/issues/3589. Let's just force
ctags to always use absolute paths to fix it once and for all.
Luca Boccassi [Tue, 18 Jan 2022 11:54:35 +0000 (11:54 +0000)]
Merge pull request #22153 from evverx/switch-to-bullseye
ci: switch Debian from unstable to testing on mkosi
Yu Watanabe [Wed, 12 Jan 2022 15:09:38 +0000 (00:09 +0900)]
pid1,cgroup-show: ignore -EOPNOTSUPP in cg_read_pid()
The function is called in recursion, and cgroup.procs in some subcgroups
may not be read.
Fixes #22089.
Evgeny Vereshchagin [Tue, 18 Jan 2022 10:30:33 +0000 (10:30 +0000)]
ci: point mkosi to commit where "testing" is fixed
https://github.com/systemd/mkosi/pull/886
Evgeny Vereshchagin [Mon, 17 Jan 2022 22:17:04 +0000 (22:17 +0000)]
ci: switch from unstable to testing on mkosi
Yu Watanabe [Tue, 18 Jan 2022 05:13:02 +0000 (14:13 +0900)]
test: fix a copy-and-paste error
Follow-up for
12727c2bc2859995cbd561ffc3d9a4d571202254.
Addresses https://github.com/systemd/systemd/pull/22125#discussion_r786358474.
Fixes CID#
1469023.
Luca Boccassi [Mon, 17 Jan 2022 15:11:29 +0000 (15:11 +0000)]
man: add more references for extensions to portablectl
Link in systemd.io and systemd-sysext
Fixes #22146
Evgeny Vereshchagin [Mon, 17 Jan 2022 21:15:56 +0000 (00:15 +0300)]
Merge pull request #22142 from evverx/libxkbcommon-dev
ci: get Coverity and CodeQL to analyze the "libxkbcommon" part
Luca Boccassi [Mon, 17 Jan 2022 21:15:14 +0000 (21:15 +0000)]
Merge pull request #22125 from DaanDeMeyer/copy-holes
shared: Copy holes in sparse files in copy_bytes_full()
Daan De Meyer [Fri, 14 Jan 2022 16:49:06 +0000 (16:49 +0000)]
journal: Copy holes when archiving BTRFS journal files
Previously, the holes we punched earlier would get removed when
copying the file. Let's enable the new COPY_HOLES flag to make
sure this doesn't happen.
In my test, this drops a 800MB btrfs journal (without compression)
to 720 MB.
Fixes #22087
Luca Boccassi [Mon, 17 Jan 2022 14:11:53 +0000 (14:11 +0000)]
Merge pull request #22147 from keszybz/stdio-bridge-docs
More docs for systemd-stdio-bridge
Yu Watanabe [Fri, 14 Jan 2022 18:37:40 +0000 (03:37 +0900)]
kernel-install: also remove modules.builtin.alias.bin
Fixes RHBZ#
2016630.
Zbigniew Jędrzejewski-Szmek [Mon, 17 Jan 2022 10:49:41 +0000 (11:49 +0100)]
meson: drop unused SYSTEMD_STDIO_BRIDGE_BINARY_PATH
The whole point of systemd-stdio-bridge is to be executed on "foreign" systems
where the path might be different, so we use $PATH to find the binary everywhere.
Zbigniew Jędrzejewski-Szmek [Mon, 17 Jan 2022 10:44:59 +0000 (11:44 +0100)]
stdio-bridge: trim whitespace and braces
Zbigniew Jędrzejewski-Szmek [Mon, 17 Jan 2022 10:44:44 +0000 (11:44 +0100)]
stdio-bridge: make the error more straightforward
Zbigniew Jędrzejewski-Szmek [Mon, 17 Jan 2022 10:43:48 +0000 (11:43 +0100)]
man: enhance the description of systemd-stdio-bridge
I hope that this fixes the comment
https://github.com/systemd/systemd/pull/22141#issuecomment-
1013960371
> As someone who doesn't know what this prog does
The listing in the man page is sorted according to logical
use: all the options setting the address are now together.
Luca Boccassi [Sun, 16 Jan 2022 18:41:10 +0000 (18:41 +0000)]
systemd-stdio-bridge: add manpage
dependabot[bot] [Mon, 17 Jan 2022 05:26:55 +0000 (05:26 +0000)]
build(deps): bump github/codeql-action from 1.0.26 to 1.0.27
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.0.26 to 1.0.27.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
5f532563584d71fdef14ee64d17bafb34f751ce5...
cd783c8a29bdcf5a5c79c5137889e24651fa626c)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Evgeny Vereshchagin [Mon, 17 Jan 2022 01:59:55 +0000 (01:59 +0000)]
ci: trigger CodeQL on PRs when its dependencies change