udevadm: improve symlink query output

Implement the TODO item for `udevadm info -q symlink`: keep the
default space-separated output pager-free, and make `--value` print
one symlink per line with an empty separator line between devices.
This commit is contained in:
dongshengyuan
2026-08-02 19:16:19 +09:00
committed by Yu Watanabe
parent 56d2162bff
commit 574eed3b0d
4 changed files with 105 additions and 9 deletions
-4
View File
@@ -2804,10 +2804,6 @@ SPDX-License-Identifier: LGPL-2.1-or-later
- re-enable ProtectClock= once only cgroupsv2 is supported.
See f562abe2963bad241d34e0b308e48cf114672c84.
- **udevadm: to make symlink querying with udevadm nicer:**
- do not enable the pager for queries like 'udevadm info -q symlink -r'
- add mode with newlines instead of spaces (for grep)?
- udevd: extend memory pressure logic: also kill any idle worker processes
- unify how blockdev_get_root() and sysupdate find the default root block device