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 [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
Jan Janssen [Sun, 16 Jan 2022 14:57:38 +0000 (15:57 +0100)]
boot: Beep n times for n-th entry
Luca Boccassi [Sun, 16 Jan 2022 12:44:52 +0000 (12:44 +0000)]
man: change 'allow[s] to' -> 'allow[s] one to'
Lintian is opinionated about this and we get nagged
Evgeny Vereshchagin [Sun, 16 Jan 2022 15:30:22 +0000 (15:30 +0000)]
ci: get Coverity and CodeQL to analyze the "libxkbcommon" part
By analogy with https://github.com/systemd/systemd/pull/22138, to get
the static analyzers to analyze that part of code that package should
be installed there as well.
Yu Watanabe [Sun, 16 Jan 2022 06:32:27 +0000 (15:32 +0900)]
core: add missing dependency DBus properties
Follow-up for
0bc488c99ab2ed3464237607e381f4d72cd321d5.
Also sort dependency properties to make them match the definition of
`enum UnitDependency` in basic/unit-def.h.
Fixes #22133.
Yu Watanabe [Sun, 16 Jan 2022 11:19:19 +0000 (20:19 +0900)]
core: update log message
Fixes CID#
1469009.
Luca Boccassi [Sun, 16 Jan 2022 14:04:30 +0000 (14:04 +0000)]
Merge pull request #22136 from yuwata/network-wireguard-disable-adding-routes-to-allowed-ips-by-default
network: wireguard: disable adding routes to allowed ips by default
Evgeny Vereshchagin [Sun, 16 Jan 2022 08:32:17 +0000 (08:32 +0000)]
ci: install libbpf-dev in the unit_tests workflow
Those dependencies are also used by Coverity and Codeql so
it should be installed there to get them to analyze that code.
Judging by https://github.com/systemd/systemd/pull/22137 it seems
to be working.
Jan Janssen [Fri, 14 Jan 2022 13:27:08 +0000 (14:27 +0100)]
boot: Add PC speaker support
Fixes: #17508
Yu Watanabe [Sun, 16 Jan 2022 06:59:45 +0000 (15:59 +0900)]
network: wireguard: also accept negative boolean values to disable adding routes
RouteTable=off was introduced to provide consistency with wg-quick
command. This makes the RouteTable= settings accepts other negative
boolean values.
Yu Watanabe [Sun, 16 Jan 2022 06:53:13 +0000 (15:53 +0900)]
network: wireguard: do not add routes to AllowedIPs= by default
As setting such routes may break existing setups.
Closes #21964.
Luca Boccassi [Sat, 15 Jan 2022 16:22:59 +0000 (16:22 +0000)]
Merge pull request #22130 from keszybz/silence-gcc-warning-in-sd-device
Silence gcc warning in sd-device
Zbigniew Jędrzejewski-Szmek [Sat, 15 Jan 2022 12:38:49 +0000 (13:38 +0100)]
sd-device: drop unnecessary parenthesis
Zbigniew Jędrzejewski-Szmek [Sat, 15 Jan 2022 12:38:30 +0000 (13:38 +0100)]
sd-device: silence gcc warning with newest gcc
Daan De Meyer [Fri, 14 Jan 2022 16:41:28 +0000 (16:41 +0000)]
shared: Copy holes in sparse files in copy_bytes_full()
Previously, all holes in sparse files copied with copy_bytes_full()
would be expanded in the target file. Now, we correctly detect holes
in the input file and we replicate them in the target file.
Yu Watanabe [Fri, 14 Jan 2022 12:23:32 +0000 (21:23 +0900)]
Merge pull request #22098 from DaanDeMeyer/journal-corrupt-2
journal: Fixes for handling of corrupt entry objects
Yu Watanabe [Fri, 14 Jan 2022 12:21:08 +0000 (21:21 +0900)]
Merge pull request #22096 from keszybz/networkctl-bus-once
Open the bus once in networkctl
Daan De Meyer [Wed, 12 Jan 2022 18:10:54 +0000 (18:10 +0000)]
journal: Fix entry array iteration corruption checks
Previously, we'd try to handle corruption by bumping the index even
if it was an entry array object that was corrupted (which we can't
deal with).
Now, we only try to deal with corrupted entry objects by moving the
corruption handling into generic_array_get().
On top, we also add an additional check for -EADDRNOTAVAIL which can
also be caused by corrupted journal data.
Evgeny Vereshchagin [Thu, 13 Jan 2022 17:36:56 +0000 (17:36 +0000)]
ci: switch to requirements.txt in the unit tests workflow
Yu Watanabe [Thu, 13 Jan 2022 06:43:24 +0000 (15:43 +0900)]
meson: use the compiler command array as is
Also check if the flags used when building bpf are supported by clang.
Yu Watanabe [Thu, 13 Jan 2022 06:33:46 +0000 (15:33 +0900)]
meson: check if clang supports bpf
Yu Watanabe [Wed, 12 Jan 2022 13:42:18 +0000 (22:42 +0900)]
meson: require bpftool version >= 5.6
Closes #22051.
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 16:44:49 +0000 (17:44 +0100)]
networkctl: use xsprintf a bit more
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jan 2022 14:12:42 +0000 (15:12 +0100)]
networkctl: open the bus just once
We'd connect to the bus twice: the first time to check networkd namespace,
and then the second time to do the deed we were asked to do. It's nicer
to open the bus just once, for efficience and also to avoid the open call
in all functions.
An ASSERT_PTR helper is added:
- sd_bus *bus = userdata;
...
- assert(bus);
+ sd_bus *bus = ASSERT_PTR(userdata);
...
It can be used in other place too, but I'm leaving that for a later
refactoring.
Benjamin Berg [Thu, 13 Jan 2022 17:47:08 +0000 (18:47 +0100)]
man: Add more details about desktop file processing
In particular, mention the contract the generator has with external
ExecCondition= binaries that may be provided by desktop environments.
But, also mention all the other relevant keys. In particular
X-systemd-skip= is important to be documented.
Evgeny Vereshchagin [Thu, 13 Jan 2022 12:28:09 +0000 (12:28 +0000)]
ci: turn meson warnings into errors
Luca Boccassi [Thu, 13 Jan 2022 22:50:52 +0000 (22:50 +0000)]
Merge pull request #22111 from medhefgo/boot-cleanup
boot: Cleanup
Yu Watanabe [Thu, 13 Jan 2022 12:42:28 +0000 (21:42 +0900)]
network: use scope link for direct unicast routes by default
Strictly speaking, this breaks the backward compatibility, but I guess
in most cases people already sets Scope=link for such routes.
This behavior matches with how 'ip route' command adds such route by
default.
Prompted by https://twitter.com/jplitza/status/
1480500562391179270.
Luca Boccassi [Thu, 13 Jan 2022 22:43:07 +0000 (22:43 +0000)]
Merge pull request #22106 from yuwata/dhcp6-broken-NTP
sd-dhcp6-client: handle broken NTP server option gracefully
Daan De Meyer [Thu, 13 Jan 2022 13:26:25 +0000 (13:26 +0000)]
journal: Don't discard -b arg when followed by -e
Allowing -e to be used to view the last logs of a previous boot seems
like a useful feature so let's not discard -b options anymore when
followed by -e.
Fixes #22107
Jan Janssen [Thu, 13 Jan 2022 12:47:39 +0000 (13:47 +0100)]
boot: Use FreePool from boot services directly
This should hopefully allow the compiler to optimize this a bit even
when gnu-efi is not compiled with LTO.
Jan Janssen [Thu, 13 Jan 2022 12:43:29 +0000 (13:43 +0100)]
boot: Add missing assert to file_read()
Jan Janssen [Thu, 13 Jan 2022 12:41:57 +0000 (13:41 +0100)]
boot: Use _cleanup_ in shim
Also, better be safe than sorry and check the return value.
Jan Janssen [Thu, 13 Jan 2022 13:29:46 +0000 (14:29 +0100)]
boot: Don't try to free loaded_image
EFI_LOADED_IMAGE is a protocol pointer and thus, we shouldn't try
to free it.
Jan Janssen [Thu, 13 Jan 2022 11:34:35 +0000 (12:34 +0100)]
boot: Use EFI_FILE* instead of EFI_FILE_HANDLE
They are both the same, but the former is shorter and also closer
to how file handles are represented in the UEFI spec.
Jan Janssen [Thu, 13 Jan 2022 11:32:07 +0000 (12:32 +0100)]
boot: Fix invalid free
LocateDevicePath() advances the device path pointer, making it invalid
when freed.
Yu Watanabe [Thu, 13 Jan 2022 06:57:57 +0000 (15:57 +0900)]
boot: add missing error check
Follow-up for
661615a0afacee3545cde0a48286c0fef983f8fe.
Fixes CID#
1468973.
Evgeny Vereshchagin [Thu, 13 Jan 2022 07:01:17 +0000 (07:01 +0000)]
{build|unit}-test: show meson-log.txt when meson fails
to make it easier to figure out why it fails.
For example in https://github.com/systemd/systemd/runs/
4799774735?check_suite_focus=true
it failed with
```
meson.build:1003:8: ERROR: Command "/usr/bin/clang -print-targets" failed with status 1.
A full log can be found at /home/runner/work/systemd/systemd/build/meson-logs/meson-log.txt
Error: Process completed with exit code 1.
```
and it wasn't clear what exactly happened there.
Hugo Carvalho [Thu, 13 Jan 2022 11:16:35 +0000 (12:16 +0100)]
po: Translated using Weblate (Portuguese)
Currently translated at 100.0% (189 of 189 strings)
Co-authored-by: Hugo Carvalho <hugokarvalho@hotmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/pt/
Translation: systemd/main
Yu Watanabe [Thu, 13 Jan 2022 11:19:46 +0000 (20:19 +0900)]
test: add testcase for broken NTP server option
For issue #22099.
Yu Watanabe [Thu, 13 Jan 2022 09:55:51 +0000 (18:55 +0900)]
test: voidify test functions
This also drops unnecessary arguments, and unbreak several lines.
Yu Watanabe [Thu, 13 Jan 2022 11:19:01 +0000 (20:19 +0900)]
sd-dhcp6-client: expose client_parse_message()
To introduce tests for the function in later commits.
Yu Watanabe [Thu, 13 Jan 2022 11:13:03 +0000 (20:13 +0900)]
sd-dhcp6-client: ignore broken non-critical options
The commit
b89a3758e92894162e3c2dcb594a55acff3274d5 made the validity
check of the received message stricter. E.g. if the client received a
message with broken NTP server option, then the entire message is
dropped.
This relaxes the check. If some non-critical options are broken, then
ignore the options, but the message itself is still accepted.
Fixes #22099.
Yu Watanabe [Thu, 13 Jan 2022 05:00:36 +0000 (14:00 +0900)]
Merge pull request #22100 from bluca/test_part
Fix TEST-58-REPART on ppc64el
Luca Boccassi [Wed, 12 Jan 2022 22:38:22 +0000 (22:38 +0000)]
test: do not assume x86-64 arch in TEST-58-REPART
Luca Boccassi [Wed, 12 Jan 2022 22:38:04 +0000 (22:38 +0000)]
test: add partition IDs for s390x and ppc64el to TEST-50-DISSECT
Daan De Meyer [Wed, 12 Jan 2022 14:44:50 +0000 (14:44 +0000)]
journal: Skip data objects with invalid offsets
We already skip invalid objects, but don't yet skip invalid offsets.
Let's skip these as well to improve robustness when we're dealing with
corrupted journals.
Before:
```
➜ systemd git:(main) build/journalctl -r -n 5 --file ~/Downloads/system@
0005d2b275abaaf8-
f243a2818cb39b98.journal_
Failed to get journal fields: Cannot assign requested address
-- No entries --
```
After:
```
➜ systemd git:(main) ✗ build/journalctl -r -n 5 --file ~/Downloads/system@
0005d2b275abaaf8-
f243a2818cb39b98.journal_
Dec 09 08:32:38 snowball3 NetworkManager[911]: <info> [
1639038758.1464] device (wlp1s0): supplicant interface state: scanning -> authenticating
Dec 09 08:32:38 snowball3 kernel: wlp1s0: send auth to ec:a9:40:79:fb:ad (try 1/3)
Dec 09 08:32:38 snowball3 kernel: wlp1s0: authenticate with ec:a9:40:79:fb:ad
Dec 09 08:32:38 snowball3 wpa_supplicant[1003]: wlp1s0: SME: Trying to authenticate with ec:a9:40:79:fb:ad (SSID='UPC949397B' freq=5500 MHz)
```
Daan De Meyer [Wed, 12 Jan 2022 17:31:57 +0000 (17:31 +0000)]
journal: Remove unused arguments from journal_file_next_entry_for_data()
Benjamin Berg [Mon, 10 Jan 2022 11:35:46 +0000 (12:35 +0100)]
xdg-autostart-service: Ignore missing desktop-sepcific condition binary
If a desktop specific ExecCondition= binary does not exist, this just
means that the desktop environment is not available. As such, it is not
an error condition that should prevent the service from being installed
in the .wants target.
Fix this by simply returning zero.
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 15:06:39 +0000 (16:06 +0100)]
Merge pull request #22092 from keszybz/docs-links
Add more doc pages, adjust links, add explanatory headers to examples and relax license to CC-0
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 10:34:03 +0000 (11:34 +0100)]
docs: promise stability for the journal json format too
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 10:32:53 +0000 (11:32 +0100)]
man+docs: adjust links to the new page
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 10:19:02 +0000 (11:19 +0100)]
docs: import the Journal JSON Format description as subsection
I don't think we need a separate page for this, so both "export" formats share
a page. We can just link to the approprate section when necessary.
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 10:12:30 +0000 (11:12 +0100)]
docs: import the Journal Export Format description from the wiki
This is a straightforward import, only links are adjusted.
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 09:42:22 +0000 (10:42 +0100)]
policy files: adjust landing page link
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 09:39:00 +0000 (10:39 +0100)]
docs: use https:// for fd.o links
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 09:33:57 +0000 (10:33 +0100)]
README: link to the new page
Lennart's blog is now mostly of historical interest, and the wiki
landing page has been replaced by systemd.io.
Zbigniew Jędrzejewski-Szmek [Wed, 12 Jan 2022 09:33:10 +0000 (10:33 +0100)]
NEWS: adjust links to moved pages
All those pages contain a redirect at the top of the page, so it doesn't
make much sense to tell people to take the detour. Linking directly will
also increase the search rankings of the new pages.
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jan 2022 17:31:38 +0000 (18:31 +0100)]
shutdown: adjust log message
Instead of saying "with options 'n/a'", let's just say "with options ''".
We really don't have any options.
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jan 2022 17:04:02 +0000 (18:04 +0100)]
network: add example file that enables DHCP on ethernet links
The file has instructions how to "enable" it by symlinking into the
appropriate place. If we create a different mechanism to do enablement
later on, we can always adjust the instructions.
Closes #3998.
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jan 2022 16:52:35 +0000 (17:52 +0100)]
network: license all config files as CC0
Same justification as the previous commit.
$ for i in network/*-*; do git blame $i;done | less
shows that those files were written by Tom Gundersen, Lennart Poettering, Yu
Watanabe, me, and Marc-André Lureau.
Luca Boccassi [Wed, 12 Jan 2022 15:03:00 +0000 (15:03 +0000)]
Merge pull request #22090 from mbiebl/units-oomd-alias
units: don't install dbus-org.freedesktop.oom1.service alias
Yu Watanabe [Wed, 12 Jan 2022 13:22:43 +0000 (22:22 +0900)]
Merge pull request #21728 from Werkov/bfq-io-weight
bfq.io.weight followups and cleanup
Yu Watanabe [Wed, 12 Jan 2022 13:09:50 +0000 (22:09 +0900)]
Merge pull request #22037 from fbuihuu/watchdog-minor-improvements
Watchdog minor improvements
Lidong Zhong [Tue, 11 Jan 2022 05:19:32 +0000 (13:19 +0800)]
shutdown: release the watchdog finally
During reboot or kexec, watchdog will be setup before systemd is
replaced by systemd-shutdown binary. But while systemd-shutdown is
executed, the watchdog will not really be released. Log shown as
following:
[ 39.371202] watchdog: watchdog0: watchdog did not stop!
[ 39.383659] systemd-shutdown[1]: Syncing filesystems and block
devices.
[ 39.423727] systemd-shutdown[1]: Sending SIGTERM to remaining
processes...
[ 39.440857] systemd-journald[526]: Received SIGTERM from PID 1
(systemd-shutdow).
[ 39.461047] systemd-shutdown[1]: Sending SIGKILL to remaining
processes...
[ 39.466736] systemd-shutdown[1]: Using hardware watchdog 'iTCO_wdt',
version 0, device /dev/watchdog
[ 39.467835] systemd-shutdown[1]: Unmounting file systems.
[ 39.469721] [2171]: Remounting '/' read-only in with options
'attr2,inode64,logbufs=8,logbsize=32k,noquota'.
[ 39.550266] systemd-shutdown[1]: All filesystems unmounted.
[ 39.550274] systemd-shutdown[1]: Deactivating swaps.
[ 39.550443] systemd-shutdown[1]: All swaps deactivated.
[ 39.550449] systemd-shutdown[1]: Detaching loop devices.
[ 39.550697] systemd-shutdown[1]: All loop devices detached.
[ 39.550703] systemd-shutdown[1]: Detaching DM devices.
[ 39.551269] systemd-shutdown[1]: Not all DM devices detached, 1
left.
[ 39.551277] systemd-shutdown[1]: Cannot finalize remaining DM
devices, continuing.
[ 39.580044] systemd-shutdown[1]: Successfully changed into root
pivot.
[ 39.580050] systemd-shutdown[1]: Returning to initrd...
[ 39.587921] watchdog: watchdog0: watchdog did not stop!
[ 39.774130] dracut Warning: Break before pre-shutdown
after applying fix
[ 59.520379] watchdog: watchdog0: watchdog did not stop!
[ 59.542286] systemd-shutdown[1]: Syncing filesystems and block
devices.
[ 59.583313] systemd-shutdown[1]: Sending SIGTERM to remaining
processes...
[ 59.600133] systemd-journald[517]: Received SIGTERM from PID 1
(systemd-shutdow).
[ 59.624435] systemd-shutdown[1]: Sending SIGKILL to remaining
processes...
[ 59.629288] systemd-shutdown[1]: Using hardware watchdog
'iTCO_wdt', version 0, device /dev/watchdog
[ 59.630468] systemd-shutdown[1]: Unmounting file systems.
[ 59.632219] [2172]: Remounting '/' read-only in with options
'attr2,inode64,logbufs=8,logbsize=32k,noquota'.
[ 59.727588] systemd-shutdown[1]: All filesystems unmounted.
[ 59.727596] systemd-shutdown[1]: Deactivating swaps.
[ 59.727719] systemd-shutdown[1]: All swaps deactivated.
[ 59.727725] systemd-shutdown[1]: Detaching loop devices.
[ 59.727974] systemd-shutdown[1]: All loop devices detached.
[ 59.727979] systemd-shutdown[1]: Detaching DM devices.
[ 59.728547] systemd-shutdown[1]: Not all DM devices detached, 1
left.
[ 59.728556] systemd-shutdown[1]: Cannot finalize remaining DM
devices, continuing.
[ 59.758160] systemd-shutdown[1]: Successfully changed into root
pivot.
[ 59.758167] systemd-shutdown[1]: Returning to initrd...
[ 59.950305] dracut Warning: Break before pre-shutdown
Luca Boccassi [Wed, 12 Jan 2022 13:05:30 +0000 (13:05 +0000)]
Merge pull request #22043 from medhefgo/boot-bitlocker
boot: Add BitLocker TPM key sealing workaround
Yu Watanabe [Wed, 12 Jan 2022 13:01:27 +0000 (22:01 +0900)]
Merge pull request #22088 from medhefgo/meson
meson: Small improvements
Michael Biebl [Wed, 12 Jan 2022 11:29:34 +0000 (12:29 +0100)]
test: enable systemd-oomd.service
Enable the service to ensure dbus-org.freedesktop.oom1.service exists
and D-Bus activation works.
See #18469
Zbigniew Jędrzejewski-Szmek [Tue, 11 Jan 2022 16:40:47 +0000 (17:40 +0100)]
network: say that our example files are licensed as CC0
This matches what we have for example programs under man/, and is nice
because it allows people to copy the files as they wish without worrying
about copyright. The files are too trivial to copyright anyway.
Michael Biebl [Wed, 12 Jan 2022 07:16:45 +0000 (08:16 +0100)]
units: don't install dbus-org.freedesktop.oom1.service alias
The systemd-oomd.service unit contains
[Install]
WantedBy=multi-user.target
Alias=dbus-org.freedesktop.oom1.service
which means the symlink is supposed to be created dynamically when the
service is enabled.
yangmingtai [Tue, 11 Jan 2022 12:22:11 +0000 (20:22 +0800)]
fix test-string-util failed when locale is not utf8