1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +03:00

72113 Commits

Author SHA1 Message Date
Adrian Vovk
7555fc9122
homed: Minor function name cleanup
It's not actually a dbus method, just function that all the various dbus
methods end up calling to update the user record. So rename it to
reflect as such
2024-03-18 15:31:17 -04:00
Adrian Vovk
5d490208a8
Revert "homed: Add InhibitSuspend() method"
I'm moving this functionality into logind instead.

This reverts commit 691b99160de4bc856e676dba6e07b33d2fa0908e.
2024-03-18 15:31:16 -04:00
Daan De Meyer
01285611b0
Merge pull request #31838 from DaanDeMeyer/opensuse
mkosi: OpenSUSE fixes
2024-03-18 17:20:15 +01:00
Edson Juliano Drosdeck
f1c198719d Fix Positivo N14NPE-N and N15NPE-N key toggle touchpad and search key 2024-03-18 15:35:50 +00:00
Daan De Meyer
a1eeb4d753 mkosi: Install systemd-experimental in OpenSUSE initrd
systemd-repart is part of systemd-experimental and we need systemd-repart
in the initrd so let's install systemd-experimental in the initrd.
2024-03-18 16:20:15 +01:00
Daan De Meyer
bd9bec99d0 mkosi: Install python3-pefile in OpenSUSE image
ukify is part of systemd-experimental on OpenSUSE and not its own
package. Because the OpenSUSE systemd maintainers do not want to
introduce a python dependency for systemd-experimental, we have to
install python3-pefile manually to make sure ukify works properly.
2024-03-18 16:20:00 +01:00
Yu Watanabe
cdb88ae4e5 fuzz: test NDisc packet with more low level functions
Also, test send back the test packet.

Co-authored-by: Evgeny Vereshchagin <evvers@ya.ru>
2024-03-18 23:19:44 +09:00
Yu Watanabe
fcfb691fc1 icmp6-packet: expose icmp6_packet_get_header() 2024-03-18 23:18:43 +09:00
Luca Boccassi
399560aa30
Merge pull request #31747 from yuwata/ptyfwd
ptyfwd: do not erase line after NL
2024-03-18 14:10:45 +00:00
Yu Watanabe
d112b4454c icmp6-util: drop unused icmp6_send_router_solicitation() 2024-03-18 22:52:29 +09:00
Yu Watanabe
349d51e7a1 sd-ndisc: use sd_ndisc_option and ndisc_send() 2024-03-18 22:52:29 +09:00
Yu Watanabe
ca11446217 ndisc-option: introduce ndisc_send()
This will be used when sending Router Solicitation and Advertisement.
2024-03-18 22:52:29 +09:00
Yu Watanabe
af0d593b32 ndisc-option: add a way to specify invalid or unsupported options
Mostly for testing.
2024-03-18 22:52:29 +09:00
Yu Watanabe
8430c4d91d test-ndisc-rs: send Router Solicit message before sending test packet 2024-03-18 22:52:29 +09:00
Yu Watanabe
c73f2b7295 test: fix typo
Follow-up for fcf38e2cb33a9bc0c17352f64d47c270075b3cbb.
2024-03-18 22:48:24 +09:00
Yu Watanabe
93126bb0fa test-network: extend test case for DHCP server with null server address 2024-03-18 22:33:14 +09:00
Yu Watanabe
7a89aeb138 network/address: acquire address from DHCP server lease file
If the DHCP server on an interface is configured with its server
address is null, then let's reuse the previous server address if
possible.

Otherwise, if networkd is restarted or the host is rebooted, then
possibly new subnet is picked, and clients that already have addresses
in the previous subnet cannot access the server.

Prompted by https://github.com/systemd/systemd/pull/30021#discussion_r1518478633.
2024-03-18 22:33:14 +09:00
Ronan Pigott
88123aa21c dnssd: support service subtypes
A service subtype is used for selective enumeration of services.
2024-03-18 13:16:48 +00:00
Luca Boccassi
15d4bedf3d
Merge pull request #31778 from yuwata/kbd-util
kbd-util: allow to override the default keymap directories
2024-03-18 12:20:36 +00:00
Nick Rosbrook
6fec0fed10 shared/install: correctly install alias for units outside search path
Currently, if a unit file is enabled from outside of the search path,
and that unit has an alias, then the symlink ends up pointing outside of
the search path too. For example:

 $ cat /tmp/a.service
 [Service]
 ExecStart=sleep infinity

 [Install]
 Alias=b.service
 WantedBy=multi-user.target

 $ systemctl enable /tmp/a.service
 Created symlink /etc/systemd/system/a.service → /tmp/a.service.
 Created symlink /etc/systemd/system/b.service → /tmp/a.service.
 Created symlink /etc/systemd/system/multi-user.target.wants/a.service → /tmp/a.service.

This then means the alias is treated as a separate unit:

 $ systemctl start a.service
 $ sudo systemctl status a
 ● a.service
  Loaded: loaded (/etc/systemd/system/a.service; enabled; preset: enabled)
  Active: active (running) since Fri 2024-03-15 15:17:49 EDT; 9s ago
 Main PID: 769593 (sleep)
   Tasks: 1 (limit: 18898)
  Memory: 220.0K
     CPU: 5ms
  CGroup: /system.slice/a.service
          └─769593 sleep infinity

 Mar 15 15:17:49 six systemd[1]: Started a.service.
 $ sudo systemctl status b
 ○ b.service
  Loaded: loaded (/etc/systemd/system/b.service; alias)
  Active: inactive (dead)

To fix this, make sure the alias uses a target that is inside the search
path. Since the unit file itself is outside of the search path, a
symlink inside the search path will have been created already. Hence,
just point the alias symlink to that recently created symlink.
2024-03-18 11:58:07 +00:00
Ronan Pigott
ce88017255 resolved: wait to gc transactions if they might still give an answer
In some cases when a query completes there are still pending
transactions that are no longer useful to answer the query. But if this
query is repeated in the future and we don't have the answers cached,
we're going to ask and ignore the answer again.

Instead of purging these superfluous transactions, let's wait and see if
they produce an answer, since we already asked the question, and use it
to fill our cache.
2024-03-18 11:10:11 +00:00
Luca Boccassi
48570c9273
Merge pull request #31811 from yuwata/network-pin-persistent-storage
network: pin file descriptor of persistent storage
2024-03-18 11:08:21 +00:00
Abraham Samuel Adekunle
fcf38e2cb3 Add unittest file for basic:label 2024-03-18 11:04:42 +00:00
Luca Boccassi
9cebda59e8
Merge pull request #31829 from keszybz/more-header-checks
Update c/c++ version checks and add test for -std=c++26
2024-03-17 17:58:59 +00:00
Daan De Meyer
e4bdf1d830
Merge pull request #31831 from DaanDeMeyer/opensuse
Update opensuse packaging specs submodule to latest
2024-03-17 17:03:09 +01:00
Daan De Meyer
4c8ab1e0ee Update arch/debian packaging source URLs
Let's use the actual URL to avoid warnings from git about getting
redirected.
2024-03-17 16:47:19 +01:00
Daan De Meyer
99cc65a0c9 Switch opensuse packaging specs source url to src.opensuse.org
opensuse's OBS has two git mirrors, code.opensuse.org uses pagure,
src.opensuse.org uses gitea. Let's try src.opensuse.org as pagure
doesn't seem to work properly when more advanced git functionality
is used.
2024-03-17 16:45:33 +01:00
Luca Boccassi
a0f288c3e7
Merge pull request #31821 from behrmann/news256
NEWS: more reformulations and fixlets
2024-03-17 13:14:16 +00:00
Daan De Meyer
966e05af04 tpm2-setup: Add --graceful
Currently the associated units fail if full tpm support is not available
on the system. Similar to systemd-pcrextend, let's add a --graceful option
that exits gracefully if no full TPM support is detected and use it in both
units.
2024-03-17 13:34:51 +01:00
Daan De Meyer
c0aeff4b99 units: Accept modules_load and rd.modules_load in systemd-modules-load.service
The service will use either, so let's make sure either of them starts
the service as well.
2024-03-17 13:33:45 +01:00
Zbigniew Jędrzejewski-Szmek
3317aedff0 meson: test with c++26 too
The docs say that support is experimental, but it's better for us if we know
about any problems early.

Header tests pass without any issue with gcc-14.0.1-0.8.fc40.x86_64.
2024-03-17 12:23:07 +01:00
Zbigniew Jędrzejewski-Szmek
345ef6eb56 meson: gcc docs say that name "c2x" is deprecated 2024-03-17 12:23:06 +01:00
Zbigniew Jędrzejewski-Szmek
62dfaa229e meson: use loops to unify repeated checks 2024-03-17 12:23:05 +01:00
Jörg Behrmann
28ec58298f NEWS: style fixes and a few reformulations
- mention the version format spec for sytsemd-vpick
- say what "systemd-creds --user" can be used by unprivileged users as well
- say what importctl does
- use en dash instead of em dash
- add a missing article
2024-03-16 15:16:01 +01:00
samuelvw01
3623a7ea83 Update _udevadm 2024-03-16 21:51:56 +09:00
Jörg Behrmann
80e748155e man: add missing "and" to importctl description 2024-03-16 12:52:48 +01:00
Yu Watanabe
7b799b870f units: use relative path 2024-03-16 05:31:44 +09:00
Daan De Meyer
e48c170f51 mkosi: Do disk space cleanup asynchronously
This can actually take a rather long time (multiple minutes) so
make sure we do it asynchronously.
2024-03-16 05:31:25 +09:00
Tycho Andersen
af668ab10a docs: update footer to 2024 2024-03-16 03:14:23 +09:00
Yu Watanabe
1716bac658
Merge pull request #31808 from keszybz/sundry-cleanups
Sundry cleanups
2024-03-16 01:40:56 +09:00
Daan De Meyer
6233a76932 meson: Rename add-git-hook.sh to git-setup.sh and configure git in it
Let's automatically apply the recommended git config with meson.
2024-03-15 17:27:49 +01:00
Daan De Meyer
c735424908 docs: Update HACKING guide with recommended git config 2024-03-15 17:27:49 +01:00
Yu Watanabe
7eafdbeb00 network/dhcp-server: use the pinned fd of persistent storge 2024-03-16 01:12:05 +09:00
Yu Watanabe
e1254d0616 network/varlink: return earlier from SetPersistentStorage method if nothing changed 2024-03-16 01:12:05 +09:00
Yu Watanabe
013359ac65 network: pin file descriptor of persistent storage
This also drop the support of /run/systemd/netif/persistent-storage-ready,
as the file is anyway removed when networkd is stopped.
Let's use $SYSTEMD_NETWORK_PERSISTENT_STORAGE_READY=1 instead on testing.
2024-03-16 01:12:05 +09:00
Luca Boccassi
09e99a41f0 NEWS: mention portablectl --copy=mixed 2024-03-15 15:16:12 +00:00
Luca Boccassi
ab16e4852e shell completion: add --copy=mixed in portablectl
Follow-up for 82047a6aa7230031d2a579e81d5f8871c23e0616
2024-03-16 00:11:41 +09:00
Zbigniew Jędrzejewski-Szmek
3df28dd9b6 test/TEST-46: drop whitespace after redirection operators 2024-03-15 16:07:58 +01:00
Zbigniew Jędrzejewski-Szmek
c7fa1470f9 portablectl: add forgotten value to --help
Followup for 82047a6aa7230031d2a579e81d5f8871c23e0616.
2024-03-15 16:07:58 +01:00
Zbigniew Jędrzejewski-Szmek
80fcdb731d journal: use empty_to_null() in one more place
Follow-up for 45bcab66a9c23a74107118d310e09a46f28494fd.
2024-03-15 16:07:58 +01:00