summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* test-network: extend test case for DHCP server with null server addressYu Watanabe2024-03-181-0/+22
|
* network/address: acquire address from DHCP server lease fileYu Watanabe2024-03-184-1/+54
| | | | | | | | | | | | 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.
* dnssd: support service subtypesRonan Pigott2024-03-1810-8/+109
| | | | A service subtype is used for selective enumeration of services.
* Merge pull request #31778 from yuwata/kbd-utilLuca Boccassi2024-03-184-25/+68
|\ | | | | kbd-util: allow to override the default keymap directories
| * kbd-util: allow to override the default keymap directoriesYu Watanabe2024-03-144-19/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces $SYSTEMD_KEYMAP_DIRECTORIES environment variable to override the hardcoded keymap directories. I think it is not necessary to provide the first class configuration option for controlling the keymap directories, but it is not good to hardcode the paths. So, let's introduce an environment variable to override that. Prompted by #31759. Closes #31759.
| * locale: use O_PATH directory fd and faccessat() in find_converted_keymap()Yu Watanabe2024-03-141-9/+16
| | | | | | | | | | | | | | | | | | Previously, it is assumed that the paths in KBD_KEYMAP_DIRS are ended with a slash. But, in the next commit, paths will become controllable by users, and each path may not be ended with a slash. This should not change any effective behaviors. Just refactoring and preparation.
* | shared/install: correctly install alias for units outside search pathNick Rosbrook2024-03-183-10/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | resolved: wait to gc transactions if they might still give an answerRonan Pigott2024-03-183-1/+34
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #31811 from yuwata/network-pin-persistent-storageLuca Boccassi2024-03-186-51/+87
|\ \ | | | | | | network: pin file descriptor of persistent storage
| * | network/dhcp-server: use the pinned fd of persistent storgeYu Watanabe2024-03-151-19/+27
| | |
| * | network/varlink: return earlier from SetPersistentStorage method if nothing ↵Yu Watanabe2024-03-151-0/+13
| | | | | | | | | | | | changed
| * | network: pin file descriptor of persistent storageYu Watanabe2024-03-156-33/+48
| | | | | | | | | | | | | | | | | | 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.
* | | Add unittest file for basic:labelAbraham Samuel Adekunle2024-03-184-0/+162
| | |
* | | Merge pull request #31829 from keszybz/more-header-checksLuca Boccassi2024-03-171-19/+18
|\ \ \ | | | | | | | | Update c/c++ version checks and add test for -std=c++26
| * | | meson: test with c++26 tooZbigniew Jędrzejewski-Szmek2024-03-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | meson: gcc docs say that name "c2x" is deprecatedZbigniew Jędrzejewski-Szmek2024-03-171-1/+1
| | | |
| * | | meson: use loops to unify repeated checksZbigniew Jędrzejewski-Szmek2024-03-171-19/+17
| | | |
* | | | Merge pull request #31831 from DaanDeMeyer/opensuseDaan De Meyer2024-03-172-4/+4
|\ \ \ \ | | | | | | | | | | Update opensuse packaging specs submodule to latest
| * | | | Update arch/debian packaging source URLsDaan De Meyer2024-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Let's use the actual URL to avoid warnings from git about getting redirected.
| * | | | Switch opensuse packaging specs source url to src.opensuse.orgDaan De Meyer2024-03-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #31821 from behrmann/news256Luca Boccassi2024-03-172-10/+12
|\ \ \ \ \ | | | | | | | | | | | | NEWS: more reformulations and fixlets
| * | | | | NEWS: style fixes and a few reformulationsJörg Behrmann2024-03-161-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| * | | | | man: add missing "and" to importctl descriptionJörg Behrmann2024-03-161-1/+1
| | | | | |
* | | | | | tpm2-setup: Add --gracefulDaan De Meyer2024-03-173-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | units: Accept modules_load and rd.modules_load in systemd-modules-load.serviceDaan De Meyer2024-03-171-0/+2
| |/ / / / |/| | | | | | | | | | | | | | | | | | | The service will use either, so let's make sure either of them starts the service as well.
* | | | | Update _udevadmsamuelvw012024-03-161-1/+1
|/ / / /
* | | | units: use relative pathYu Watanabe2024-03-155-6/+6
| | | |
* | | | mkosi: Do disk space cleanup asynchronouslyDaan De Meyer2024-03-151-2/+6
| | | | | | | | | | | | | | | | | | | | This can actually take a rather long time (multiple minutes) so make sure we do it asynchronously.
* | | | docs: update footer to 2024Tycho Andersen2024-03-151-1/+1
| | | |
* | | | Merge pull request #31808 from keszybz/sundry-cleanupsYu Watanabe2024-03-153-16/+11
|\ \ \ \ | | | | | | | | | | Sundry cleanups
| * | | | test/TEST-46: drop whitespace after redirection operatorsZbigniew Jędrzejewski-Szmek2024-03-151-7/+7
| | | | |
| * | | | portablectl: add forgotten value to --helpZbigniew Jędrzejewski-Szmek2024-03-151-1/+2
| | | | | | | | | | | | | | | | | | | | Followup for 82047a6aa7230031d2a579e81d5f8871c23e0616.
| * | | | journal: use empty_to_null() in one more placeZbigniew Jędrzejewski-Szmek2024-03-151-8/+2
| |/ / / | | | | | | | | | | | | Follow-up for 45bcab66a9c23a74107118d310e09a46f28494fd.
* | | | meson: Rename add-git-hook.sh to git-setup.sh and configure git in itDaan De Meyer2024-03-153-4/+9
| | | | | | | | | | | | | | | | Let's automatically apply the recommended git config with meson.
* | | | docs: Update HACKING guide with recommended git configDaan De Meyer2024-03-151-0/+8
| |/ / |/| |
* | | NEWS: mention portablectl --copy=mixedLuca Boccassi2024-03-151-0/+5
| | |
* | | shell completion: add --copy=mixed in portablectlLuca Boccassi2024-03-151-1/+1
| | | | | | | | | | | | Follow-up for 82047a6aa7230031d2a579e81d5f8871c23e0616
* | | portable: when logging about attaching, include the used profileLuca Boccassi2024-03-151-2/+7
| | | | | | | | | | | | | | | | | | Useful information to have in the logs. Mar 14 16:45:27 H systemd-portabled[510]: Successfully attached ephemeral '/usr/share/minimal_0.raw' and its extension(s) '/usr/share/app0.raw' using profile 'default'
* | | Merge pull request #31791 from yuwata/sd-dhcp-server-several-preparationsLuca Boccassi2024-03-157-42/+116
|\ \ \ | |/ / |/| | sd-dhcp-server: several cleanups and extension
| * | sd-dhcp-server: also save the server address and netmask to the leases fileYu Watanabe2024-03-142-1/+37
| | | | | | | | | | | | | | | And introduce a tiny helper to retrieve these information. The function is not used at this time, but will be used later.
| * | sd-dhcp-server: rearrange the parser of the leases fileYu Watanabe2024-03-141-26/+35
| | | | | | | | | | | | | | | No functional changes, just refactoring and preparation for later commits.
| * | sd-dhcp-server: make sd_dhcp_server_set_lease_file() optionally take ↵Yu Watanabe2024-03-146-17/+46
| | | | | | | | | | | | | | | | | | | | | directory fd Currently, though, no valid directory fd is passed to the function call. Preparation for later commits.
* | | Merge pull request #31777 from keszybz/unit-retitling-and-commentsZbigniew Jędrzejewski-Szmek2024-03-1530-36/+36
|\ \ \ | | | | | | | | Unit retitling and comments
| * | | src/partition: remove unnecessary uses of "make sure"Zbigniew Jędrzejewski-Szmek2024-03-141-7/+7
| | | |
| * | | units: retitle systemd-bootctl*.{service,socket}Zbigniew Jędrzejewski-Szmek2024-03-142-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | "Starting Boot Control…" would be a fairly confusing message in the boot logs. Use "… Service" to mirror what we have in other services like systemd-{hostnamed,timedated,portabled,machined,…}.service.
| * | | units: drop "(Varlink)"Zbigniew Jędrzejewski-Szmek2024-03-1411-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We generally don't specify the protocol implementation in unit descriptions. For journald, we have: $ git grep Description 'units/*journald*' units/systemd-journald-audit.socket:Description=Journal Audit Socket units/systemd-journald-dev-log.socket:Description=Journal Socket (/dev/log) units/systemd-journald-varlink@.socket:Description=Journal Varlink Socket for Namespace %i units/systemd-journald.service.in:Description=Journal Service units/systemd-journald.socket:Description=Journal Sockets units/systemd-journald@.service.in:Description=Journal Service for Namespace %i units/systemd-journald@.socket:Description=Journal Sockets for Namespace %i so we need to keep "Varlink" in the name. But also use "Sockets" (plural) for the "main" socket unit, since it opens multiple sockets.
| * | | units/systemd-machine-id-commit: retitleZbigniew Jędrzejewski-Szmek2024-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | Our docs say that the Description should be capitalized. Also, change "commit" to "save" to make this more accessible.
| * | | units: retitle systemd-pcrextend.{service,socket}, change TPM2→TPMZbigniew Jędrzejewski-Szmek2024-03-1419-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I was looking at the logs in some bug and saw this: Mar 13 15:55:12 fedora systemd[1]: systemd-pcrmachine.service - TPM2 PCR Machine ID Measurement was skipped because of an unmet condition check (ConditionSecurity=measured-uki). Mar 13 15:55:12 fedora systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems... Mar 13 15:55:12 fedora systemd[1]: systemd-tpm2-setup-early.service - TPM2 SRK Setup (Early) was skipped because of an unmet condition check (ConditionSecurity=measured-uki). This is overly technical, for most units we don't provide this level of detail about the implementation. So retitle the units to be more accessible. Also, the fact that it's a v. 2 of the TPM is not that important. We don't support TPM 1.2, but computers without TPM v2 are getting rare. For other units we don't advertise the version of hardware, and let's not do this here, to reduce some complexity.
* | | | network/address: acquire address in address_process_request()Yu Watanabe2024-03-151-64/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if an [Address] section is configured with a null address, e.g. Address=0.0.0.0/24, then we acquired a free address in link_request_address(). With this commit, we queue a request with the null address as is, and acquire a free address later in address_process_request(). Similary, now IPv4ACD daemon is configured in address_process_request(). With this change, we can make the address acquisition depend on other conditions, e.g. if the persistent storage is ready or not.
* | | | NEWS: fix typo and reword a couple of entriesLuca Boccassi2024-03-151-8/+12
| | | |