Pigmy-penguin
cd933f14bd
userdbctl: fix "Password OK" shown even when password is empty or locked ( #21308 )
...
userdbctl: fix "Password OK" shown even when password is empty or locked
2022-01-06 16:01:38 +00:00
Yu Watanabe
8cc8a073a8
test: add test cases for fstab-generator
2022-01-07 00:58:50 +09:00
Yu Watanabe
7611946ebc
tree-wide: fix typo
2022-01-06 22:20:11 +09:00
Yu Watanabe
c0b28d44a9
NEWS: sort entries
2022-01-06 22:18:05 +09:00
Jan Janssen
ad9962bb7e
boot: Simplify line_edit
2022-01-06 14:16:34 +01:00
Jan Janssen
6893c4c553
boot: Switch to insertion sort
...
We can do a little better than bubble sort without ramping up the
code complexity.
2022-01-06 14:16:34 +01:00
Jan Janssen
163d1ea5dd
boot: Do more config handling in config_load_all_entries
2022-01-06 14:16:34 +01:00
Jan Janssen
b00e37daa6
boot: Remove no_autoselect
2022-01-06 14:16:34 +01:00
Jan Janssen
dd4ddc82e6
boot: Close xbootldr root_dir
2022-01-06 14:16:34 +01:00
Jan Janssen
a45d4f3543
boot: Simplify config_entry_add_osx
2022-01-06 14:16:34 +01:00
Yu Watanabe
b322e683ac
meson: install test-network-generator-conversion.sh even if networkd is not enabled
...
Follow-up for 987dd89c77 .
2022-01-06 20:14:39 +09:00
Yu Watanabe
155e1bb4e7
fstab-generator: also skip other network filesystems and live image
2022-01-06 20:14:35 +09:00
Yu Watanabe
77b8e92de8
fstab-generator: skip root directory handling when nfsroot is requested
...
Fixes RHBZ#2037233 (https://bugzilla.redhat.com/show_bug.cgi?id=2037233 ).
2022-01-06 20:14:16 +09:00
Yu Watanabe
795e86b4f1
udev-util: ignore USB-C ports in power source mode when detecting system is running on AC power
...
Fixes #21988 .
2022-01-06 18:28:56 +09:00
Yu Watanabe
01d4ad3bde
udev-util: re-implement on_ac_power() with sd-device
2022-01-06 18:28:50 +09:00
Yu Watanabe
06795b02e3
util: move on_ac_power() from util.c -> udev-util.c
2022-01-06 18:06:22 +09:00
Michael Biebl
cfd4c84add
oomd: move oomctl to bindir
...
We don't really need oomctl during early boot, so bindir seems like a
more suitable place for the binary.
2022-01-06 12:52:01 +09:00
Mike Gilbert
70652c2a6f
test-watchdog: mark as unsafe
...
If something goes wrong with this test it may result in an unsafe
system restart. Let's avoid running it automatically.
See https://github.com/systemd/systemd/issues/22001 .
2022-01-06 02:11:20 +09:00
Jason A. Donenfeld
06511ba559
random-seed: cleanup code nits
...
This incorporates various nits from the post-merge review on #21986 .
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2022-01-06 02:09:22 +09:00
Yu Watanabe
9cca5f4cda
Merge pull request #22018 from keszybz/logind-survive-aborted-suspend
...
Make logind survive aborted suspend
2022-01-06 02:08:14 +09:00
Yu Watanabe
4c77ed48fb
Merge pull request #22016 from yuwata/small-cleanups
...
assorted trivial cleanups
2022-01-06 01:18:34 +09:00
Frantisek Sumsal
1b51599f29
test: use full date & time when checking for coredumps
...
Otherwise we might hit a window where the coredump happens before
midnight, but we check for it after midnight, which yields no results.
E.g.:
```
$ coredumpctl --no-legend --no-pager --file system.journal
Wed 2022-01-05 01:00:06 CET 359 0 0 SIGABRT journal /usr/bin/udevadm n/a
$ coredumpctl --since 23:59:55 --no-legend --no-pager --file system.journal
No coredumps found.
$ coredumpctl --since "2022-01-04 23:59:59" --no-legend --no-pager --file system.journal
Wed 2022-01-05 01:00:06 CET 359 0 0 SIGABRT journal /usr/bin/udevadm n/a
```
2022-01-06 01:18:12 +09:00
Yu Watanabe
a68f95a5dc
Merge pull request #22012 from DaanDeMeyer/journal-full-message
...
journal: Log a better message when we're rotating because a file is full
2022-01-06 01:17:31 +09:00
Yu Watanabe
defb4dd429
Merge pull request #22014 from keszybz/networkd-reduce-append-logging
...
Drop detailed error messages for netlink message append operations
2022-01-06 01:17:09 +09:00
Zbigniew Jędrzejewski-Szmek
8207b8321b
logind: do not propagate error in delayed action
...
If the action failed, we should log about the issue, and continue.
Exiting would bring the graphical session down, which of course is not
appreciated by users.
As documented in previous commits, a non-negative return from the callback
doesn't matter, so the callback is simplified a bit.
Fixes #21991 .
2022-01-05 15:19:13 +01:00
Zbigniew Jędrzejewski-Szmek
5ca99dfabd
man: add example of sd_event_add_child()
...
The thing with blocking SIGCHLD is rather annoying. I think we could/should
make this automatic.
2022-01-05 15:19:13 +01:00
Zbigniew Jędrzejewski-Szmek
9809a788e4
man: add better descriptions of what event handlers do
...
The meaning of the return value, the default handlers, and loop exiting are now
described.
2022-01-05 15:19:13 +01:00
Ludwig Nussel
2dbb54788e
systemctl: Fix --show timestamp
2022-01-05 14:19:11 +01:00
Yu Watanabe
f0f6508783
backlight: ignore error if the backlight device is already removed
...
Fixes #21997 .
2022-01-05 12:56:37 +00:00
Frantisek Sumsal
c01b58e454
Merge pull request #21974 from yuwata/test-repart-find-sfdisk
...
test-repart: find sfdisk
2022-01-05 12:40:11 +00:00
Zbigniew Jędrzejewski-Szmek
a8d50a3575
Merge pull request #21981 from medhefgo/boot-cleanup
...
boot: Cleanup
2022-01-05 12:55:59 +01:00
Daan De Meyer
5b4a634a03
journal: Log filename when we fail to write an entry
2022-01-05 11:17:47 +00:00
Daan De Meyer
eff79e4e22
journal: Log a better message when we're rotating because a file is full
...
The previous message was confusing errors. When we're rotating because
we've reached the file size limit, let's log a better message.
Fixes #22007 .
2022-01-05 11:17:44 +00:00
Yu Watanabe
e37d30f334
sd-boot: select newest kernel entry matching with the default glob pattern
...
This fixes a bug introduced by 0c674ce5f2 .
Fixes #22004 .
2022-01-05 12:15:24 +01:00
Yu Watanabe
769020c092
watchdog: adjust comment
2022-01-05 20:13:59 +09:00
Yu Watanabe
e28df39269
resolve: add missing initialization of libgcrypt
...
Fixes #21951 .
2022-01-05 12:12:54 +01:00
Evgeny Vereshchagin
85ed912479
oss-fuzz: drop line-tables-only
...
It was copy-pasted directly from OSS-Fuzz where it makes sense to
kind of strip binaries to get nice backtraces but when the fuzzers
are built and run locally with gdb it would be nice to have a little
bit more than that.
It was initially discovered in elfutils where I put the same flags
and was surprised when I couldn't run the fuzzer comfortably step
by step, which led to the same change there: https://github.com/google/oss-fuzz/pull/7092
:-)
2022-01-05 12:04:27 +01:00
Zbigniew Jędrzejewski-Szmek
4a55ce8f83
tests: log_tests_skipped() already appends ", skipping tests"
...
We would say:
test-bpf-lsm: Can't use mlock(), skipping., skipping tests.
2022-01-05 11:59:22 +01:00
Zbigniew Jędrzejewski-Szmek
3bcb5dc1a5
network: move logging from route_set_netlink_message() to the callers
...
Overall size change for the whole series:
$ size build/systemd-networkd{.0,}
text data bss dec hex filename
1878634 394016 36 2272686 22adae build/systemd-networkd.0
1755066 394080 36 2149182 20cb3e build/systemd-networkd
i.e. 121 kb.
2022-01-05 11:58:13 +01:00
Zbigniew Jędrzejewski-Szmek
7bd36e490f
network: move logging from routing_policy_rule_set_netlink_message() to the callers
2022-01-05 11:45:16 +01:00
Zbigniew Jędrzejewski-Szmek
907e277fdd
network: move logging from qdisc_configure()/tclass_configure() to the caller
2022-01-05 11:45:16 +01:00
Zbigniew Jędrzejewski-Szmek
bd187da8c4
network: simplify logging in request_process_bridge_fdb()
2022-01-05 11:45:16 +01:00
Zbigniew Jędrzejewski-Szmek
16924f54af
network: move logging from tc .fill_message to the callers
...
Structured initialization is used a bit more.
There were two kinds of log messages: about failed size calculations and
about failed appends to the message. I "downgraded" the first type to log_debug,
and moved the latter to the caller. This way there should be at most one high-priority
message.
I also changed sizeof(<type>) to sizeof(var) — there is less chance of select-and-paste
error in the second form.
2022-01-05 11:45:16 +01:00
Zbigniew Jędrzejewski-Szmek
0d75a90bb6
network: split out neighbor_configure_message(), simplify logging
2022-01-05 11:45:16 +01:00
Zbigniew Jędrzejewski-Szmek
f2b78e0e91
network: split out dhcp4_pd_create_6rd_tunnel_message(), simplify logging
2022-01-05 11:45:16 +01:00
Zbigniew Jędrzejewski-Szmek
51762897c6
network: adjust log message about MACsec associations
2022-01-05 11:45:11 +01:00
Zbigniew Jędrzejewski-Szmek
9e369704a8
network: simplify logging in macsec netdev code
2022-01-05 11:43:36 +01:00
Zbigniew Jędrzejewski-Szmek
b471fc9456
network: simplify logging in l2tp_create_session() and l2tp_create_tunnel()
...
All the detailed logging is replaced by a simple "Failed to create netlink message",
which should be enough for the user in the unlikely case that this ever fails.
2022-01-05 11:43:36 +01:00
Zbigniew Jędrzejewski-Szmek
bb2f88ff7b
network: split out link_configure_fill_message(), simplify logging
2022-01-05 11:43:36 +01:00
Zbigniew Jędrzejewski-Szmek
9a93dabc40
network: move logging from can_set_netlink_message() to the caller
2022-01-05 11:43:36 +01:00