Jan Janssen
acac88340a
bus: Use OrderedSet for introspection
...
Otherwise, the generated xml files are not reproducible.
2022-01-19 23:07:59 +00:00
Luca Boccassi
de843f8582
Merge pull request #21865 from yuwata/network-sr-iov
...
udev/net: support configuring SR-IOV virtual functions through .link file
2022-01-19 22:38:00 +00:00
Jan Janssen
1bc8417cfe
boot: Use -ffile-prefix-map when present
...
This should make sure the stub elf binary is reproducible.
Fixes : #22157
2022-01-19 21:06:24 +00:00
Zbigniew Jędrzejewski-Szmek
b09869eaf7
Merge pull request #22172 from yuwata/udev-sd-device-more-debugging-logs
...
udev, sd-device: more debugging logs
2022-01-19 15:11:48 +01:00
Yu Watanabe
5ab9addd68
test: replace multiple echo with cat
...
Suggested by shell check SC2129.
2022-01-19 20:48:36 +09:00
Yu Watanabe
e916276016
udev-util: add event UUID to debugging logs
2022-01-19 20:48:36 +09:00
Yu Watanabe
d7cb60daf6
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.
2022-01-19 20:48:36 +09:00
Yu Watanabe
30b6f7d714
meson: skip to search clang, llvm-string, and bpftool, if libbpf not found
...
Prompted by https://github.com/systemd/systemd/pull/22093#issuecomment-1016254914 .
2022-01-19 14:23:41 +03:00
Yu Watanabe
39f83dd760
test: wait for newly created btrfs triggered
...
Fixes the second issue in #21819 .
2022-01-19 09:32:23 +00:00
Zbigniew Jędrzejewski-Szmek
01f5177ffd
Merge pull request #22163 from bluca/extension_images_validation
...
Improve ExtensionImages validation
2022-01-19 08:57:15 +01:00
Luca Boccassi
70a5c6dce0
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
2022-01-19 08:54:50 +01:00
Yu Watanabe
1e8e9730d2
test-network: add testcases for configuring SR-IOV by .link file
2022-01-19 15:00:53 +09:00
Yu Watanabe
a03ff4c0fe
test-network: split out SR-IOV test to new class
2022-01-19 15:00:53 +09:00
Yu Watanabe
0eed039c92
test-network: silence check for alternative names
2022-01-19 15:00:53 +09:00
Yu Watanabe
df25b9e48c
network: show driver in debug log
2022-01-19 15:00:53 +09:00
Yu Watanabe
252e96eaa9
udev/net: check if the requested SR-IOV virtual function exists before configuring it
2022-01-19 15:00:53 +09:00
Yu Watanabe
41ce9d769d
udev/net: allow to set number of SR-IOV virtual functions
...
This adds SR-IOVVirtualFunctions= setting in [Link] section.
2022-01-19 15:00:53 +09:00
Yu Watanabe
bd29dfef8b
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 .
2022-01-19 15:00:49 +09:00
Yu Watanabe
b4fd34d81c
network: move SR-IOV related functions to src/shared/netif-sriov.[ch]
2022-01-19 14:57:59 +09:00
Yu Watanabe
307fe3cdf2
network: rename NetworkConfigSection -> ConfigSection
...
And move it and relevant functions to conf-parser.[ch].
2022-01-19 14:57:59 +09:00
Yu Watanabe
e5c4289a9d
network: sr-iov: add missing assertion
2022-01-19 14:57:59 +09:00
Yu Watanabe
e217e22a77
network: sr-iov: drop conflicting sections
2022-01-19 14:57:59 +09:00
Yu Watanabe
cfd1d61fe4
network: sr-iov: fix section name in log messages
2022-01-19 14:57:59 +09:00
Yu Watanabe
edaca18739
Merge pull request #22161 from kreijack/ignore-boot-entries
...
bootctl: Ignore boot entries (continue #22041 )
2022-01-19 14:43:10 +09:00
Luca Boccassi
78ab2b5064
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
2022-01-19 00:08:57 +00:00
Luca Boccassi
37361f46d5
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
2022-01-19 00:01:48 +00:00
Luca Boccassi
095162d721
Merge pull request #22159 from medhefgo/boot-xbootldr
...
boot: xbootldr improvements
2022-01-18 22:40:58 +00:00
Ludwig Nussel
8dd3f6a3fd
machined: provide more details to polkit auth
2022-01-18 22:35:09 +00:00
Goffredo Baroncelli
2fbf50d675
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 >
2022-01-18 19:32:35 +01:00
Goffredo Baroncelli
9914d89b51
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 >
2022-01-18 19:32:35 +01:00
Jan Janssen
9e814b7715
boot: Pass around HARDDRIVE_DEVICE_PATH
2022-01-18 16:20:09 +01:00
Jan Janssen
d81edd5ad7
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.
2022-01-18 16:20:09 +01:00
Jan Janssen
45a24eb7e9
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
2022-01-18 16:20:09 +01:00
Zbigniew Jędrzejewski-Szmek
8513c34bec
Merge pull request #21805 from наб
...
A trivial merge conflict was fixed manually.
2022-01-18 15:20:37 +01:00
Zbigniew Jędrzejewski-Szmek
ba900c1719
Merge pull request #22093 from yuwata/meson-bpftool-version
...
meson: require bpftool version >= 5.6
2022-01-18 15:09:47 +01:00
Evgeny Vereshchagin
691db9a718
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.
2022-01-18 15:07:11 +01:00
Luca Boccassi
5a2de315ff
Merge pull request #22153 from evverx/switch-to-bullseye
...
ci: switch Debian from unstable to testing on mkosi
2022-01-18 11:54:35 +00:00
Yu Watanabe
1fb50408ce
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 .
2022-01-18 12:34:30 +01:00
Evgeny Vereshchagin
881b152660
ci: point mkosi to commit where "testing" is fixed
...
https://github.com/systemd/mkosi/pull/886
2022-01-18 10:30:33 +00:00
Evgeny Vereshchagin
b0f1f76ca1
ci: switch from unstable to testing on mkosi
2022-01-18 10:27:28 +00:00
Yu Watanabe
f67b4351f3
test: fix a copy-and-paste error
...
Follow-up for 12727c2bc2 .
Addresses https://github.com/systemd/systemd/pull/22125#discussion_r786358474 .
Fixes CID#1469023.
2022-01-18 09:30:46 +01:00
Luca Boccassi
e91aa2ea23
man: add more references for extensions to portablectl
...
Link in systemd.io and systemd-sysext
Fixes #22146
2022-01-18 14:28:03 +09:00
Evgeny Vereshchagin
cd7b60a7ed
Merge pull request #22142 from evverx/libxkbcommon-dev
...
ci: get Coverity and CodeQL to analyze the "libxkbcommon" part
2022-01-18 00:15:56 +03:00
Luca Boccassi
8f502f09c3
Merge pull request #22125 from DaanDeMeyer/copy-holes
...
shared: Copy holes in sparse files in copy_bytes_full()
2022-01-17 21:15:14 +00:00
Daan De Meyer
12727c2bc2
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
2022-01-17 16:10:18 +00:00
Luca Boccassi
682a9f2e88
Merge pull request #22147 from keszybz/stdio-bridge-docs
...
More docs for systemd-stdio-bridge
2022-01-17 14:11:53 +00:00
Yu Watanabe
06006691b5
kernel-install: also remove modules.builtin.alias.bin
...
Fixes RHBZ#2016630.
2022-01-17 12:10:03 +00:00
Zbigniew Jędrzejewski-Szmek
2979c8b7fc
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.
2022-01-17 11:59:08 +01:00
Zbigniew Jędrzejewski-Szmek
0d8930fd6d
stdio-bridge: trim whitespace and braces
2022-01-17 11:59:08 +01:00
Zbigniew Jędrzejewski-Szmek
a80f17844e
stdio-bridge: make the error more straightforward
2022-01-17 11:59:08 +01:00