1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-27 18:04:05 +03:00

66401 Commits

Author SHA1 Message Date
Yu Watanabe
6c713961ab meson: move declarations of several generators 2023-08-01 05:52:50 +09:00
Yu Watanabe
81fe141ba3 meson: move declarations of cryptsetup and friends 2023-08-01 05:52:50 +09:00
Yu Watanabe
7e6ca26fe5 meson: move declarations of backlight, rfkill, and sysupdate-generator 2023-08-01 05:52:50 +09:00
Yu Watanabe
bab54d1fde meson: move declarations of homed and friends 2023-08-01 05:52:50 +09:00
Yu Watanabe
250e597fe7 meson: move declarations of userdbd and friends 2023-08-01 05:52:50 +09:00
Yu Watanabe
8c75dfdd40 meson: move declaration of sysext 2023-08-01 05:52:50 +09:00
Yu Watanabe
f1d95540ef meson: move declarations of portabled and friends 2023-08-01 05:52:50 +09:00
Yu Watanabe
c212163086 meson: move declaration of systemctl 2023-08-01 05:52:50 +09:00
Yu Watanabe
5add5c5834
Merge pull request #28606 from DaanDeMeyer/kernel-install
Kernel install fixes
2023-08-01 05:48:27 +09:00
Yu Watanabe
0770f613b5
Merge pull request #28605 from yuwata/meson-use-template
meson: use template (part2)
2023-08-01 05:46:08 +09:00
Daan De Meyer
4435da1f17 kernel-install: Make sure KERNEL_INSTALL_BYPASS is disabled in tests 2023-07-31 20:58:31 +02:00
Daan De Meyer
b4afa94c5f kernel-install: Only bypass "add" and "remove"
KERNEL_INSTALL_BYPASS should only bypass verbs that actually change
the system, not harmless verbs such as "inspect".
2023-07-31 20:56:14 +02:00
Yu Watanabe
114085932c udev: fix typo in comment
Follow-ups for ded2b1d0933b24d5e0a503e3bd37f8030a11d9a7 and
3327877ca332ad8188acd608807c64470a845125.
2023-08-01 02:39:16 +09:00
Yu Watanabe
22f37744ca meson: move declaration of socket-activate 2023-08-01 02:31:36 +09:00
Yu Watanabe
bd31a348bf meson: move declarations of bootctl and friends
This also drops unnecessary dependency on libblkid from
systemd-boot-check-no-failures.
2023-08-01 02:31:36 +09:00
Yu Watanabe
dbab4fb9e5 meson: move declaration of user-sessions 2023-08-01 02:31:36 +09:00
Yu Watanabe
b8ed1bf8ee meson: move declarations of logind and friends 2023-08-01 02:31:36 +09:00
Yu Watanabe
c19cd86542 meson: move declarations of resolved and friends 2023-08-01 02:31:36 +09:00
Yu Watanabe
ec57a4ea49 meson: move declarations of dissect and friends 2023-08-01 02:31:36 +09:00
Yu Watanabe
7409342236 meson: move declarations of hibernate-resume 2023-08-01 02:31:36 +09:00
Yu Watanabe
2a4566203e meson: move declarations of several generators 2023-08-01 02:31:36 +09:00
Yu Watanabe
dd1f738e40 meson: move declarations of journald and friends 2023-08-01 02:31:36 +09:00
Yu Watanabe
f727f3b963 meson: move declaration of systemd-analyze 2023-08-01 02:31:36 +09:00
Frantisek Sumsal
f7e5f39d61 resolvectl: initialize the server state
Since not all fields of the dispatch table are mandatory we might end up
reading garbage if the optional field is not set.

In CIs we were lucky enough (or probably unfortunate enough) that the
garbage was printable, but in other cases the `show-server-state` verb
would just fail with:

$ resolvectl show-server-state
Failed to print table: Invalid argument

Follow-up to bc837621a38.
2023-08-01 02:31:20 +09:00
Yu Watanabe
279b5d4a8c
Merge pull request #28153 from yuwata/meson-use-template
meson: use template to declare executables and modules
2023-08-01 02:22:15 +09:00
Yu Watanabe
983d329450
Merge pull request #28568 from yuwata/network-address-next
network: bunch of cleanups and fixes for addressing
2023-08-01 02:14:19 +09:00
Yu Watanabe
2668d040c1 fstab-util: use pointer returned by startswith() 2023-08-01 02:12:29 +09:00
Yu Watanabe
e4f2f14f1e
Merge pull request #28577 from yuwata/udev-split-files
udev: split files
2023-08-01 02:12:05 +09:00
Yu Watanabe
0bf67ba2d4 test: update comment to make it consistent with the condition
Follow-up for 6425dec88b9dedf53d12a970339ab88f948c201a.
2023-07-31 15:48:54 +01:00
Luca Boccassi
26172880f2
Merge pull request #28599 from keszybz/two-compilation-fixes
Two compilation fixes
2023-07-31 15:37:59 +01:00
Yu Watanabe
c0af9dee0d udev: move declaration of ResolveNameTiming to udev-rules.c
It is only used by udevd and udevadm, not necessary in src/shared.

This also moves UDEV_NAME_SIZE and friends.
2023-07-31 23:23:00 +09:00
Yu Watanabe
04a1ee5867 udev: move udev_parse_config_full() to udevd.c
Then, rename it to manager_parse_udev_config().

No functional change, just refactoring.
2023-07-31 23:23:00 +09:00
Yu Watanabe
5d7e51b10e udev: rename test-udevd.c -> test-udev-manager.c 2023-07-31 23:23:00 +09:00
Yu Watanabe
81c32b1d41 udev: split udevd.c into two 2023-07-31 23:23:00 +09:00
Yu Watanabe
6bd4bad6b9 udev: move arg_xyz into Manager
No functional changes, just preparation for later commits.
2023-07-31 23:23:00 +09:00
Yu Watanabe
79d2ecaf63 udev: drop mostly unused Manager.pid
It is only used by the assertion in event_queue_insert().
We have similar check e.g. in sd-bus or sd-event, but udevd.c is not a
library code, hence such check is not necessary.
2023-07-31 23:23:00 +09:00
Yu Watanabe
8ebc7314e8 udev: merge manager_clear_for_worker() with manager_free()
The function manager_clear_for_worker() is now not called by workers,
and only called from manager_free(). Let's merge them.

This also drops unused Manager.rtnl, and outdated comment in
event_free().
2023-07-31 23:23:00 +09:00
Yu Watanabe
987b90f93f udev: split-out worker code from udevd.c
While doing that, the Manager object allocated by the main process
is now _not_ freed in the spawned worker process, to follow our usual
coding style. See discussion in #24043.
2023-07-31 23:23:00 +09:00
Yu Watanabe
0226729181 udev: move several functions from udev-util.c to relevant udevd source files
The functions are only used by udevd (and relevant tests), hence it is
not necessary to be in src/shared.
2023-07-31 23:23:00 +09:00
Yu Watanabe
162d516834 udev: rename test-udev-event.c -> test-udev-spawn.c 2023-07-31 23:23:00 +09:00
Yu Watanabe
0b76cc2fdf udev: split-out formatter and spawning commands from udev-event.c
No functional changes, just refactoring.
2023-07-31 23:23:00 +09:00
Yu Watanabe
1c3edc2ee3 udev: move DEVICE_TRACE() to udev-trace.h
It is only used by udevd, and not necessary in src/shared.
2023-07-31 23:23:00 +09:00
Yu Watanabe
2f7862cc57 meson: sort files 2023-07-31 23:23:00 +09:00
Yu Watanabe
9daec33938 udev-util: drop udev_queue_init() from shared
It is only used in libudev, let's move it.
2023-07-31 23:23:00 +09:00
Yu Watanabe
6d06af80d0 meson: move declaration of PID1 2023-07-31 22:17:34 +09:00
Yu Watanabe
2080c0978d meson: move declarations of nss modules 2023-07-31 22:17:34 +09:00
Yu Watanabe
07e43306b3 meson: move declaration of cryptsetup token modules 2023-07-31 22:17:34 +09:00
Yu Watanabe
c335921e13 meson: introduce infra to build executables and shared libraries by using dictionary
That is not used yet. It will be used later.
2023-07-31 22:17:34 +09:00
Yu Watanabe
1d21a7bd99 meson: move declarations of arrays 2023-07-31 22:17:34 +09:00
Yu Watanabe
6756b61626 resolve: initialize 'current' when SD_RESOLVED_NO_STALE is set
Otherwise, the check below is always fail.
```
if (FLAGS_SET(query_flags, SD_RESOLVED_NO_STALE) && j->until_valid < current)
```

Follow-up for 5ed91481abea382dc486507556e5cdf0f36b796f.
2023-07-31 22:11:58 +09:00