Zbigniew Jędrzejewski-Szmek [Tue, 10 Aug 2021 06:37:50 +0000 (08:37 +0200)]
fstab-generator: put What= before Where=
All units in units/ follow this pattern, as do all other generators that we
provide. The question of the order was raised in
https://github.com/systemd/zram-generator/pull/90#discussion_r684965984,
and I think it's nice to make it consistent everywhere
(What= before Where= matches mount(8) and fstab(5)).
Lennart Poettering [Tue, 10 Aug 2021 11:28:48 +0000 (13:28 +0200)]
Merge pull request #19959 from yuwata/udev-reduce-loop
udev: reduce number of times checking event dependency
Yu Watanabe [Tue, 10 Aug 2021 10:44:39 +0000 (19:44 +0900)]
Merge pull request #20410 from yuwata/network-ndisc-cleanups
network: several NDisc cleanups
Yu Watanabe [Tue, 10 Aug 2021 10:44:14 +0000 (19:44 +0900)]
Merge pull request #19939 from yuwata/network-dhcp-client-use-request-queue
network: use request queue to configure DHCP clients
Yu Watanabe [Tue, 10 Aug 2021 10:43:54 +0000 (19:43 +0900)]
Merge pull request #19901 from yuwata/network-reconfigure-after-sleep
network: reconfigure interface after coming back from sleep
Yu Watanabe [Thu, 17 Jun 2021 08:14:10 +0000 (17:14 +0900)]
udev: skip event when its dependency cannot be checked
Yu Watanabe [Thu, 17 Jun 2021 07:57:32 +0000 (16:57 +0900)]
udev: do not try to find blocker again when no blocker found previously
Yu Watanabe [Thu, 17 Jun 2021 07:12:06 +0000 (16:12 +0900)]
list: introduce LIST_FOREACH_BACKWARDS() macro and drop LIST_FOREACH_AFTER/BEFORE()
Yu Watanabe [Thu, 17 Jun 2021 07:14:01 +0000 (16:14 +0900)]
udev: rename is_device_busy() -> event_is_blocked()
Also this rename delaying_seqnum -> blocker_seqnum.
Yu Watanabe [Thu, 17 Jun 2021 06:51:34 +0000 (15:51 +0900)]
udev: do not try to process events if there is no free worker
Yu Watanabe [Thu, 17 Jun 2021 06:47:34 +0000 (15:47 +0900)]
udev: propagate error on spawning a worker
Yu Watanabe [Thu, 17 Jun 2021 06:41:20 +0000 (15:41 +0900)]
udev: add usec_add() at one more place
Yu Watanabe [Thu, 17 Jun 2021 06:29:02 +0000 (15:29 +0900)]
udev: make event_queue_start() return negative errno on error
Yu Watanabe [Thu, 17 Jun 2021 06:21:27 +0000 (15:21 +0900)]
udev: make event_free() return NULL
Yu Watanabe [Wed, 16 Jun 2021 12:02:01 +0000 (21:02 +0900)]
udev: update log message to clarify that the error is ignored
Yu Watanabe [Thu, 17 Jun 2021 06:14:59 +0000 (15:14 +0900)]
udev: move several functions
No functional chage.
Yu Watanabe [Wed, 16 Jun 2021 10:18:56 +0000 (19:18 +0900)]
udev: also rename struct udev_ctrl -> UdevCtrl
Yu Watanabe [Wed, 16 Jun 2021 10:05:39 +0000 (19:05 +0900)]
udev: rename type name e.g. struct worker -> Worker
Yu Watanabe [Wed, 30 Jun 2021 21:42:55 +0000 (06:42 +0900)]
network: use usec_add() at several more places
Yu Watanabe [Wed, 30 Jun 2021 21:37:44 +0000 (06:37 +0900)]
network: make IPv6Token private, and ipv6token_new() static
Yu Watanabe [Wed, 30 Jun 2021 19:12:20 +0000 (04:12 +0900)]
network: ndisc: update a log message
Also slightly rename functions.
Yu Watanabe [Tue, 10 Aug 2021 06:04:01 +0000 (15:04 +0900)]
network: adjust log messages
Follow-up for #19944.
Yu Watanabe [Tue, 10 Aug 2021 06:02:35 +0000 (15:02 +0900)]
network: DHCP[46] -> DHCPv[46] in log messages
Yu Watanabe [Tue, 15 Jun 2021 14:24:46 +0000 (23:24 +0900)]
network: use request queue to configure DHCP{4,6} clients
Previously, when UUID is requested for DUID, then the clients are
configured in callback of bus methods.
But now, 'request queue' was implemented, so we can use it to wait until
the product UUID is obtained.
Yu Watanabe [Tue, 15 Jun 2021 13:20:16 +0000 (22:20 +0900)]
network: do not request UUID frequently on failure
If many interfaces request UUID, and networkd cannot get it for some
reasons, then previously we call the DBus method so frequently.
Yu Watanabe [Tue, 15 Jun 2021 13:16:51 +0000 (22:16 +0900)]
network: downgrade log level in dhcp6_configure()
And make the callers warn about failures.
Yu Watanabe [Tue, 15 Jun 2021 13:07:42 +0000 (22:07 +0900)]
network: downgrade log level in dhcp4_configure()
And make the callers warn about failures.
Yu Watanabe [Tue, 15 Jun 2021 02:57:40 +0000 (11:57 +0900)]
test-network: add a testcase to enter unmanaged state on reconfiguring
Yu Watanabe [Sun, 13 Jun 2021 21:58:06 +0000 (06:58 +0900)]
network: drop configurations in the previous .network file when entering unmanaged state
When reconfiguring an interface and it will enter unmanaged state,
let's drop configurations from the previously assigned .network file.
Yu Watanabe [Sun, 13 Jun 2021 22:13:58 +0000 (07:13 +0900)]
network: do not drop foreign configs for loopback and critical interfaces on carrier lost
Yu Watanabe [Sun, 13 Jun 2021 22:04:18 +0000 (07:04 +0900)]
network: do not drop foreign configs based on the previous .network file
`link_drop_foreign_config()` will be called later in link_configure().
Yu Watanabe [Sat, 12 Jun 2021 03:26:37 +0000 (12:26 +0900)]
network: start/stop LLDP client on carrier gained/lost
Then, link_acquire_dynamic_conf() matches link_stop_engines().
Previously, LLDP client is started on interface is up, and stopped
on both down and carrier loss.
Yu Watanabe [Sat, 12 Jun 2021 03:01:42 +0000 (12:01 +0900)]
network: reconfigure link after coming back from sleep
Previously, link was reconfigured with `link_carrier_reset()`, but it
just re-request to configure static addresses, routes, etc, and restart
engines (e.g. DHCP client).
However, after coming back from sleep, several link information may be
changed, especially the wifi access point may be different. So, we may
need to reconfigure the interface.
Tianlu Shao [Tue, 10 Aug 2021 05:21:51 +0000 (13:21 +0800)]
Update traditional Chinese Translation
Fix the wrong translation and fill in the new translation.
svonohr [Mon, 9 Aug 2021 16:35:07 +0000 (18:35 +0200)]
hwdb: Add Lenovo Thinkpad P14s Gen1/2 rule
Frantisek Sumsal [Mon, 9 Aug 2021 12:32:43 +0000 (14:32 +0200)]
test: use a correct kernel binary on ppc64le machines
Ubuntu calls the kernel binary as `vmlinux-*`, but RHEL/CentOS uses
the "standard" `vmlinuz-` prefix.
Follow-up to
eaa602cb14217f2623c9c8c44b6f3012dc4d0b24.
Dimitry Ishenko [Wed, 7 Jul 2021 17:54:47 +0000 (13:54 -0400)]
timesync: add option to periodically save time
Albert Brox [Tue, 20 Jul 2021 22:24:20 +0000 (18:24 -0400)]
pid1: add support for cgroup.kill
longpanda [Thu, 5 Aug 2021 01:31:44 +0000 (09:31 +0800)]
Fix the "Failed to open random seed ..." message.
When boot ArchLinux from Ventoy, it always print `Failed to open random seed file: write protected.`
As Ventoy emulate the ISO file as a read-only CDROM, I didn't test with a real physical CDROM drive, but maybe it also has such problem.
As we use `EFI_FILE_MODE_WRITE` to open the `loader\random-seed` file, so I think it's better to check the result with both `EFI_WRITE_PROTECTED` and `EFI_NOT_FOUND`.
Yu Watanabe [Fri, 6 Aug 2021 10:37:16 +0000 (19:37 +0900)]
network: use monotonic instead of boot time to handle address creation/update timestamp
Follow-up for
25db3aeaf32ba95bad5e765720ebc23c8ef77a99 and
899034ba8167bd16e802cfbea29a9ee85dee5be5.
Fixes another issue in #20244.
StefanBruens [Fri, 6 Aug 2021 18:56:58 +0000 (20:56 +0200)]
Update 60-autosuspend-fingerprint-reader.hwdb to libfprint-1.92.1
GnunuX [Fri, 6 Aug 2021 18:05:18 +0000 (20:05 +0200)]
man systemd-sysusers: fix password to passwd
Zbigniew Jędrzejewski-Szmek [Mon, 9 Aug 2021 08:12:11 +0000 (10:12 +0200)]
Merge pull request #20395 from takaswie/topic/correct-ieee1394-hwdb-entries
hwdb: ieee1394-unit-function: correct entries for some models
Zbigniew Jędrzejewski-Szmek [Mon, 9 Aug 2021 08:06:23 +0000 (10:06 +0200)]
Merge pull request #20399 from mrc0mmand/test-tweaks
test: yet another fix for ASan detection
Frantisek Sumsal [Sun, 8 Aug 2021 21:47:31 +0000 (23:47 +0200)]
test: skip a harmless ldd error when installing test libs
Skip a harmless error when running the tests on a system with a significantly
older systemd version (ldd tries to resolve the unprefixed RPATH for libsystemd.so.0,
which is in this case older than the already installed libsystemd.so.0 in $initdir).
The issue is triggered by installing test dependencies in install_missing_libraries().
Spotted on CentOS 8.
```
$ ldd /var/tmp/systemd-test.nZO11F/root/lib/systemd/tests/test-sd-device-thread
/var/tmp/systemd-test.nZO11F/root/lib/systemd/tests/test-sd-device-thread: /lib64/libsystemd.so.0: version `LIBSYSTEMD_240' not found (required by /var/tmp/systemd-test.nZO11F/root/lib/systemd/tests/test-sd-device-thread)
linux-vdso64.so.1 (0x00007fffb79d0000)
libclang_rt.asan-powerpc64le.so => /usr/lib64/clang/11.0.0/lib/linux/libclang_rt.asan-powerpc64le.so (0x00007fffb6ef0000)
libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007fffb6d20000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fffb6cd0000)
libc.so.6 => /lib64/libc.so.6 (0x00007fffb6ab0000)
$ LD_LIBRARY_PATH=/var/tmp/systemd-test.nZO11F/root/lib64/ ldd /var/tmp/systemd-test.nZO11F/root/lib/systemd/tests/test-sd-device-thread
linux-vdso64.so.1 (0x00007fffaba80000)
libclang_rt.asan-powerpc64le.so => /usr/lib64/clang/11.0.0/lib/linux/libclang_rt.asan-powerpc64le.so (0x00007fffaafa0000)
libsystemd.so.0 => /var/tmp/systemd-test.nZO11F/root/lib64/libsystemd.so.0 (0x00007fffaa5f0000)
libpthread.so.0 => /var/tmp/systemd-test.nZO11F/root/lib64/libpthread.so.0 (0x00007fffaa5a0000)
libc.so.6 => /var/tmp/systemd-test.nZO11F/root/lib64/libc.so.6 (0x00007fffaa380000)
```
Frantisek Sumsal [Sun, 8 Aug 2021 17:42:25 +0000 (19:42 +0200)]
test: make busybox TEST-13-only dependency
to make running other tests a bit easier on distributions which don't have
busybox in repositories (CentOS).
Frantisek Sumsal [Sun, 8 Aug 2021 17:33:10 +0000 (19:33 +0200)]
test: yet another fix for ASan detection
This time for ppc64le:
```
100737c4: 5d 55 f9 4b bl
10008d20 <
00000024.plt_call.__asan_report_load8>
100737f4: 4d 55 f9 4b bl
10008d40 <
00000024.plt_call.__asan_handle_no_return>
10073884: 5d 50 f9 4b bl
100088e0 <
00000024.plt_call.__asan_init>
1007388c: 75 54 f9 4b bl
10008d00 <
00000024.plt_call.__asan_version_mismatch_check_v8>
100738a0: 41 36 f9 4b bl
10006ee0 <
00000024.plt_call.__asan_register_globals>
100738f0: 71 4c f9 4b bl
10008560 <
00000024.plt_call.__asan_unregister_globals>
```
Frantisek Sumsal [Sun, 8 Aug 2021 11:18:18 +0000 (13:18 +0200)]
test: attempt to install only kernel modules for each subsystem
When `linux-headers` is installed on Arch Linux, it stores the module
source tree in the kernel module directory, which is then picked up by
`find` and we get a lot of harmless but annoying errors:
```
...
modprobe: FATAL: Module Kconfig.iosched not found in directory /lib/modules/5.13.7-arch1-1
modprobe: FATAL: Module Kconfig not found in directory /lib/modules/5.13.7-arch1-1
modprobe: FATAL: Module Kconfig not found in directory /lib/modules/5.13.7-arch1-1
modprobe: FATAL: Module dm-mpath.h not found in directory /lib/modules/5.13.7-arch1-1
modprobe: FATAL: Module dm-bio-prison-v2.h not found in directory /lib/modules/5.13.7-arch1-1
modprobe: FATAL: Module raid0.h not found in directory /lib/modules/5.13.7-arch1-1
...
```
Let's fix this by trying to install only kernel modules (*.ko files with
an optional compression).
Takashi Sakamoto [Sat, 7 Aug 2021 23:37:46 +0000 (08:37 +0900)]
hwdb: ieee1394-unit-function: correct entries for eAR Master One and Terratec Aureon 7.1 FireWire
The configuration ROM of Acoustic Reality eAR Master One, Eroica, Figaro,
and Ciaccona has OUI for TerraTec Electronic GmbH in its vendor ID field.
As a result, modalias for the unit is the same as Terratec Electronic
Aureon 7.1 FireWire.
Linux FireWire subsystem adds the same modalias for units of the models.
ALSA bebob driver had duplicated entries for them and was changed at
Linux kernel v5.14 to remove the duplicated entries.
It's better to improve corresponding entries in systemd hwdb, while
it's impossible to distinguish the models by modalias and force to use
the same entry for them. As last resort, this commit selects more
popular model, Aureon 7.1 FireWire for ID_VENDOR_FROM_DATABASE and
ID_MODEL_FROM_DATABASE.
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=
a07ebc7e050ccdfec508449b2ef8f2b2aa90927b
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 7 Aug 2021 23:37:46 +0000 (08:37 +0900)]
hwdb: ieee1394-unit-function: correct comment for Mackie d.2 and d.2 Pro
I had misunderstanding that BridgeCo ASIC would be used for extension
option for Mackie d.2 and OXFW971 would be used for Mackie d.2 Pro like
Mackie d.4 Pro. However, it's clear that the latter is model with
pre-installed option.
This commit fixes commit to entry for Mackie d.2. I note that the modalias
of unit of Mackie d.4 Pro is still unidentified.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 7 Aug 2021 23:37:46 +0000 (08:37 +0900)]
hwdb: ieee1394-unit-function: correct comment for Mackie Onyx-i series
Some Mackie Onyx-i models are known to have two revisions at least, which
use different ASICS; Oxford Semiconductor FW971 and TC Applied
Technologies TCD2210. I misunderstand that Onyx 1640i had not such
revisions.
This commit fixes comment to entry for the model.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 7 Aug 2021 23:37:46 +0000 (08:37 +0900)]
hwdb: ieee1394-unit-function: correct entries for Phonic products
Some of Phonic Firefly series and Helix Board series have the same
combination of vendor ID, model ID, specifier ID, and software
version in their configuration ROM. On the other hand, the other models
have unique combination.
ALSA bebob driver in Linux kernel v5.14 was changed in its modalias table
for the models.
This commit fixes systemd hwdb for the models.
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=
1586d461f641b60040438275e14c7dbcec5907d6
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Luca Boccassi [Sat, 7 Aug 2021 11:06:00 +0000 (12:06 +0100)]
Merge pull request #20384 from keszybz/udev-code-modernization
Various minor refactorings (basic/log, udev, cryptsetup-tokens)
Zbigniew Jędrzejewski-Szmek [Tue, 3 Aug 2021 14:49:05 +0000 (16:49 +0200)]
udev/builtins: make skip_subsystem() and skip_virtio() alike
The two functions do not implement identical logic, so they shouldn't
have identical structure, but let's make them both a bit simpler and
more alike.
Zbigniew Jędrzejewski-Szmek [Tue, 3 Aug 2021 14:47:37 +0000 (16:47 +0200)]
udev/builtins: inline iterator variables and other small modernizations
Zbigniew Jędrzejewski-Szmek [Mon, 2 Aug 2021 13:44:56 +0000 (15:44 +0200)]
udev-builtin-input_ic: simplify loop in test_key()
We would update 'found' using bit operations, but studiously ignore the actual
value and treat it as boolean. So just use a boolean variable instead. Because
there is a double loop, we would break the inner loop, but repeat the outer
loop, even though the boolean was already set. Add '&& !found' in the loop
conditions to break iteration immediately.
Zbigniew Jędrzejewski-Szmek [Tue, 3 Aug 2021 14:09:52 +0000 (16:09 +0200)]
test-log: move logging call where we can still see it
We crank the level up in the loop, so we wouldn't see message
from log_info_errno().
Also move the loop iterator declaration inline.
Zbigniew Jędrzejewski-Szmek [Mon, 26 Jul 2021 12:57:09 +0000 (14:57 +0200)]
cryptsetup-tokens: inline one interator variable declaration
Zbigniew Jędrzejewski-Szmek [Tue, 3 Aug 2021 14:14:51 +0000 (16:14 +0200)]
basic/log: invert loop to avoid repeated evaluation of condition
Zbigniew Jędrzejewski-Szmek [Mon, 26 Jul 2021 12:56:34 +0000 (14:56 +0200)]
basic/log: use structured initialization, drop unused initialization
We had 'msghdr' and 'mh' in various places. Now 'const struct msghdr msghdr' is
used consistently. With structured init the variable is only used in the call
to sendmsg(), so let's make it a bit more descriptive.
Max Resch [Wed, 4 Aug 2021 15:23:27 +0000 (17:23 +0200)]
sd-boot: time measurements for the ARM64
This adds assembly to read the platform timer from the CP15 coprocessor
register `cntpct_el0` and the frequency from `cntfrq_el0`
Ondrej Kozina [Wed, 4 Aug 2021 09:38:20 +0000 (11:38 +0200)]
cryptsetup: validate optional tpm2 pcr bank field in token.
Zbigniew Jędrzejewski-Szmek [Thu, 5 Aug 2021 11:22:58 +0000 (13:22 +0200)]
units: make sure systemd-tmpfiles-{setup,clean} don't survive switch-root
Normally, these services are killed because we run isolate. But I booted into
emergency mode (because of a futher bug with us timing out improperly on the
luks password prompt), and then continuted to the host system by running
'systemctl start systemd-switch-root.service'. My error, but the results are
confusing and bad: systemd in the host sees 'systemd-tmpfiles-setup.service'
as started successfully, and doesn't restart it, so the setup for /tmp/.X11 is
not done and gdm.service fails. So while we wouldn't encounter this during
normal successful boot, I think it's good to make this more robust.
The dep is added to systemd-tmpfiles-{setup,clean}, because /tmp is not
propagated over switch-root. /dev is, so I didn't touch
systemd-tmpfiles-setup-dev.service.
Luca Boccassi [Thu, 5 Aug 2021 10:18:03 +0000 (11:18 +0100)]
Merge pull request #20375 from yuwata/network-bridge-vlan-issue-20373
network: fix bridge and openvswitch issues
Yu Watanabe [Wed, 4 Aug 2021 13:59:39 +0000 (22:59 +0900)]
sd-dhcp6-client: do not ignore errors in client_receive_advertise()
This also adds several debug log messages.
Luca Boccassi [Thu, 5 Aug 2021 09:25:14 +0000 (10:25 +0100)]
Merge pull request #20381 from yuwata/cgroup-empty-to-root
core: use empty_to_root() for cgroup path in log messages
Yu Watanabe [Wed, 4 Aug 2021 18:14:41 +0000 (03:14 +0900)]
core: wrap cgroup path with empty_to_root() in log messages
This fixes e.g. the following log message:
---
systemd[1]: -.slice: Failed to migrate controller cgroups from , ignoring: Read-only file system
---
Yu Watanabe [Wed, 4 Aug 2021 18:13:48 +0000 (03:13 +0900)]
core/cgroup: fix error handling of cg_remove_xattr()
Yu Watanabe [Wed, 4 Aug 2021 17:44:24 +0000 (02:44 +0900)]
Merge pull request #20377 from yuwata/network-bridge-fdb-20305
network: always append new bridge FDB entries
Zbigniew Jędrzejewski-Szmek [Wed, 4 Aug 2021 17:36:42 +0000 (19:36 +0200)]
Merge pull request #19944 from yuwata/network-radv-introduce-uplink-interface
network: introduce UplinkInterface= in [IPv6SendRA]
Yu Watanabe [Wed, 4 Aug 2021 15:10:52 +0000 (00:10 +0900)]
network: ignore errors on unsetting master ifindex
Fixes #20241.
Yu Watanabe [Wed, 4 Aug 2021 08:23:06 +0000 (17:23 +0900)]
test-network: add a test case for issue #20373
Yu Watanabe [Wed, 4 Aug 2021 04:53:21 +0000 (13:53 +0900)]
network: ignore errors on setting bridge config
For some setups, kernel refuses to set bridge configs with -EOPNOTSUPP.
See kernel's rtnl_bridge_setlink() in net/core/rtnetlink.c.
Fixes #20373.
Yu Watanabe [Wed, 4 Aug 2021 04:52:52 +0000 (13:52 +0900)]
network: add comments
Yu Watanabe [Tue, 15 Jun 2021 19:50:49 +0000 (04:50 +0900)]
test-network: add a testcase for UplinkInterface= in [IPv6SendRA]
Yu Watanabe [Tue, 15 Jun 2021 18:51:57 +0000 (03:51 +0900)]
network: introduce UplinkInterface= in [IPv6SendRA]
Yu Watanabe [Tue, 15 Jun 2021 18:37:57 +0000 (03:37 +0900)]
network: use request queue to configure IPv6 RA engine
Yu Watanabe [Tue, 13 Jul 2021 12:27:51 +0000 (21:27 +0900)]
network: update comment and man page
Luca Boccassi [Wed, 4 Aug 2021 10:35:13 +0000 (11:35 +0100)]
Merge pull request #18567 from Werkov/mkosi-opensuse-v9+
CI for openSUSE Tumbleweed
Yu Watanabe [Wed, 4 Aug 2021 09:33:23 +0000 (18:33 +0900)]
test-network: add a testcase for vxlan with IPv6 local address
Michal Koutný [Fri, 12 Feb 2021 17:17:01 +0000 (18:17 +0100)]
ci: Add openSUSE Tumbleweed among tested distros
Michal Koutný [Mon, 21 Jun 2021 15:18:54 +0000 (17:18 +0200)]
ci: Detect shell prompt with higher specificity
The current pattern '#' triggers on the openSUSE kernel version that is
printed early during boot when no actual prompt is ready
> [ 0.000000] Linux version 5.12.10-1-default (geeko@buildhost) (gcc (SUSE Linux) 11.1.1
20210510 [revision
23855a176609fe8dda6abaf2b21846b4517966eb], GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.36.1.
20210326-4) #1 SMP Fri Jun 11 05:05:06 UTC 2021 (
b92eaf7)
Instead wait for pattern that: a) should have fewer false positives, b)
still be with working on distro shells:
openSUSE (red color)
^[[1m^[[31mimage:~ #^[[m^O
arch
[root@image ~]#
debian
root@image:~#
ubuntu
root@image:~#
fedora
[root@image ~]#
Michal Koutný [Fri, 12 Feb 2021 17:13:59 +0000 (18:13 +0100)]
ci: Do not require network in test images
The current boot test relies on terminal login, therefore network setup
inside image is unnecessary. This opens up possibility to test images
that don't support the network setup via veth devices.
Michal Koutný [Fri, 12 Feb 2021 17:19:06 +0000 (18:19 +0100)]
ci: Bump mkosi version to v10
Use mkosi GH action that includes fixes for openSUSE builds. This
enables testing openSUSE builds in CI.
Yu Watanabe [Wed, 4 Aug 2021 09:16:44 +0000 (18:16 +0900)]
sd-netlink: always append new bridge FDB entries
This partially reverts
192a9d95ea3e058afd824d38a9cea16ad0a84a57 (#19432).
Fixes #20305.
Yu Watanabe [Wed, 4 Aug 2021 04:14:03 +0000 (13:14 +0900)]
network: use address_equal()/route_equal() to compare addresses or routes configured by NDisc
Fixes #20244.
Luca Boccassi [Tue, 3 Aug 2021 23:05:28 +0000 (00:05 +0100)]
Merge pull request #20372 from keszybz/veritysetup-help
Document veritysetup syntax
Luca Boccassi [Tue, 3 Aug 2021 20:15:25 +0000 (21:15 +0100)]
Merge pull request #20368 from keszybz/drop-assert-not-reached-text
Drop the text argument from assert_not_reached()
Luca Boccassi [Tue, 3 Aug 2021 20:14:31 +0000 (21:14 +0100)]
Merge pull request #20371 from bluca/coverity
Two small coverity fixes
Zbigniew Jędrzejewski-Szmek [Sat, 31 Jul 2021 07:16:52 +0000 (09:16 +0200)]
man: describe veritysetup command syntax
It makes it easier to diagnose what the generated units actually do.
Zbigniew Jędrzejewski-Szmek [Sat, 31 Jul 2021 07:00:11 +0000 (09:00 +0200)]
veritysetup: print help for --help/-h/help
In general our commands print help on --help, but here this would trigger
the error that two arguments are needed. Let's make this more user-friendly.
Luca Boccassi [Tue, 3 Aug 2021 14:00:40 +0000 (15:00 +0100)]
tree-wide: voidify unchecked close_nointr calls
These have ignored the return value forever. Two are public APIs so
we can't really change what they return anyway, and the other one is
a cleanup path and the existing error code is more important.
CID#
1461274
CID#
1461275
CID#
1461276
Luca Boccassi [Tue, 3 Aug 2021 13:53:31 +0000 (14:53 +0100)]
creds: assert that credential read from file fits in data struct
Coverity CID#
1458114
Zbigniew Jędrzejewski-Szmek [Tue, 3 Aug 2021 13:46:05 +0000 (15:46 +0200)]
basic/log: use appropriate glyph in log_assert_failed_unreachable()
Per popular demand.
Zbigniew Jędrzejewski-Szmek [Tue, 27 Jul 2021 10:27:28 +0000 (12:27 +0200)]
Drop the text argument from assert_not_reached()
In general we almost never hit those asserts in production code, so users see
them very rarely, if ever. But either way, we just need something that users
can pass to the developers.
We have quite a few of those asserts, and some have fairly nice messages, but
many are like "WTF?" or "???" or "unexpected something". The error that is
printed includes the file location, and function name. In almost all functions
there's at most one assert, so the function name alone is enough to identify
the failure for a developer. So we don't get much extra from the message, and
we might just as well drop them.
Dropping them makes our code a tiny bit smaller, and most importantly, improves
development experience by making it easy to insert such an assert in the code
without thinking how to phrase the argument.
Yu Watanabe [Tue, 3 Aug 2021 02:03:29 +0000 (11:03 +0900)]
Merge pull request #20346 from poettering/strlen-unsigned-fix
CONST_MAX() integer size fix
Egor Ignatov [Wed, 28 Jul 2021 09:13:31 +0000 (12:13 +0300)]
time-set: adjust system clock if rtc is far in future
Luca Boccassi [Mon, 2 Aug 2021 19:31:42 +0000 (20:31 +0100)]
Merge pull request #20352 from poettering/copy-tweaks
various tweaks to copy.c
David Seifert [Mon, 2 Aug 2021 14:09:10 +0000 (16:09 +0200)]
Use correct `<poll.h>` include
* `<sys/poll.h>` is not specified in POSIX
Lennart Poettering [Fri, 26 Feb 2021 14:00:29 +0000 (15:00 +0100)]
btrfs-util: expose COPY_SIGTERM for btrfs_snapshot() too