summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
* | | NEWS: fix typosJörg Behrmann2024-03-151-3/+3
| | |
* | | NEWS: fix typoMike Yuan2024-03-151-3/+3
| | |
* | | TODO: various things noticed while writing NEWSZbigniew Jędrzejewski-Szmek2024-03-151-0/+6
| | |
* | | NEWS: add initial version of changes in v256Zbigniew Jędrzejewski-Szmek2024-03-151-18/+432
| | |
* | | documentation: fix inconsistencyMax Gautier2024-03-151-1/+1
| | | | | | | | | | | | | | | Since this sentence is in the same section it refers to, it does not make much sense to mention the "section below".
* | | cifuzz,cflite: set mmap_rnd_bits to 28Evgeny Vereshchagin2024-03-152-0/+2
| | | | | | | | | | | | | | | | | | | | | to get MSan jobs to work with the latest Ubuntu images. https://github.com/google/sanitizers/issues/1614 https://github.com/actions/runner-images/issues/9491
* | | Added a test file for the dirent-util.cUnique-Usman2024-03-142-0/+214
| |/ |/|
* | docs: fix typoYu Watanabe2024-03-141-1/+1
| | | | | | | | Follow-up for 34c6b7d9de64e357071005ec49e88d2354cc4e8a.
* | update TODOLennart Poettering2024-03-141-9/+9
| |
* | Merge pull request #31739 from poettering/pid1-sd-notify-tweaksLennart Poettering2024-03-1418-120/+393
|\ \ | | | | | | pid1: send various notifications via sd_notify() reporting boot progress
| * | docs: add a new document describing the VM interface of systemdLennart Poettering2024-03-142-13/+59
| | | | | | | | | | | | | | | | | | This mirrors the existing CONTAINER_INTERFACE.md document, but describes extension points of systemd running in a VM with a machine manager supervising it.
| * | docs: update various linksLennart Poettering2024-03-142-14/+14
| | |
| * | docs: properly line break WRITING_VM_AND_CONTAINER_MANAGERS.mdLennart Poettering2024-03-141-10/+43
| | |
| * | docs: document new sd_notify() extensionsLennart Poettering2024-03-143-22/+116
| | |
| * | nspawn: add some debug logging for sd_notify() messages received by the ↵Lennart Poettering2024-03-141-0/+11
| | | | | | | | | | | | container manager
| * | manager: send an sd_notify() message informing the container manager when ↵Lennart Poettering2024-03-141-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | systemd's special UNIX signals become available From the outside it's difficult to determine whether (and when) the PID1 inside a container supports systemd's more complete set of UNIX process signals or not. Let's make this easier, and simply send a notification message when we are ready.
| * | manager: modernize code that enables special signal delivery to PID 1Lennart Poettering2024-03-141-10/+8
| | |
| * | ssh-generator: introduce ssh-access.targetLennart Poettering2024-03-144-7/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new passive target is supposed to be pulled in by SSH implementations and should be reached when remote SSH access is possible. The idea is that this target can be used as indicator for other components to determine if and when SSH access is possible. One specific usecase for this is the new sd_notify() logic in PID 1 that sends its own supervisor notifications whenever target units are reached. This can be used to precisely schedule SSH connections from host to VM/container, or just to identify systems where SSH is even available.
| * | core: notify supervisor over targets we reach, as we reach themLennart Poettering2024-03-145-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's inform the the supervisor about various happenings of our service manager, specifically the boot milestones we reach. We so far have only a singular READY=1 message, to inform about bootup completion. But sometimes it is interesting to have something for finegrained, in particular something that indicates optional components that have been activated. Usecase for this: in a later PR I intend to introduce a generic "ssh.target" that is supposed to be activated when SSH becomes available on a host. A supervisor (i.e. a VMM/hypervisor/container mgr/…) can watch for that, and know two things: 1. that SSH is generally available in the system 2. when it is available In order to not flood the supervisor with events I only send these out for target units. We could open this up later, in theory, but I think it makes sense to tell people instead to define clear milestone target units if they want a supervisor to be able to track system state.
| * | manager: clean up audit/plymouth code a bitLennart Poettering2024-03-141-10/+13
| | | | | | | | | | | | | | | Let's add assert()s, and let's put checks in similar order to emphasize the symmetry. Also let's do cheap checks first.
| * | machine-id-setup: inform supervisor about chosen machine IDLennart Poettering2024-03-141-2/+7
| | | | | | | | | | | | | | | | | | | | | Similar as the previous commit, it's useful for a supervisor to know what machine ID we settlted on, in particular as various other things are deterministically derived from it, for example MAC addresses and such.
| * | hostname-setup: send chosen hostname to supervisor via sd_notify()Lennart Poettering2024-03-141-28/+26
| | | | | | | | | | | | | | | | | | once we decided on a hostname, let's tell the supervisor about it. This is useful for example in order to recognize the system via mDNS/LLMNR or in a DHCP lease.
| * | hostname-setup: various modernizationsLennart Poettering2024-03-141-11/+10
| | |
| * | manager: make manager_send_ready() more symmetric regarding ↵Lennart Poettering2024-03-141-5/+10
| | | | | | | | | | | | | | | | | | | | | per-user/per-service scope Always check the scope explicitly, always assert(m), and name the two functions in a symmetric way.
| * | core: normalize how we issue sd_notify() from PID 1Lennart Poettering2024-03-142-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | Always cast to (void) if we ignore the return value. Always pass the first arg as boolean. Always prefix the first arg with /* unset_environment= */.
* | | network: introduce link_requeue_request()Yu Watanabe2024-03-143-10/+20
| | |
* | | network: use link_start_dhcp4_server() at one more placeYu Watanabe2024-03-143-6/+5
| | | | | | | | | | | | | | | | | | | | | Otherwise, even if the persistent storage is not ready, the DHCP server may be started e.g. by unplugging and plugging cable. Follow-up for 5582b36c384fc522c23ef1ac032001882d033aff.
* | | man: fix efi var vendor uuid for systemd-bless-boot.serviceAdrian Wannenmacher2024-03-141-1/+1
|/ / | | | | | | | | The specified vendor UUID is not actually a UUID. This changes it to an actual UUID. The new value matches the ones from the systemd-boot man page and [The Boot Loader Interface](https://systemd.io/BOOT_LOADER_INTERFACE/).
* | json: introduce json_dispatch_int8() and json_dispatch_uint8()Yu Watanabe2024-03-142-0/+38
| |
* | stat-util: expose fd_is_read_only_fs()Yu Watanabe2024-03-142-1/+2
| | | | | | | | | | Currently it is not used, but the fucntion is already quite generic and useful.
* | po: add pkg/debian to POTFILES.skipPiotr Drąg2024-03-141-0/+1
| | | | | | | | | | | | | | | | Debian packaging includes the exploded tarball, so scripts used to detect files that should be in POTFILES.in, like intltool-update -m used on https://l10n.gnome.org/module/systemd/, falsely detect its files as needed to be translated. Avoid this behavior by putting the whole submodule in POTFILES.skip.
* | shell-completion: add systemd-cat --namespace=Mike Yuan2024-03-142-1/+5
| | | | | | | | | | | | Follow-up for 45bcab66a9c23a74107118d310e09a46f28494fd Addresses https://github.com/systemd/systemd/pull/31754#discussion_r1524715062
* | Merge pull request #31754 from YHNdnzj/journal-fd-namespaceYu Watanabe2024-03-1414-59/+133
|\ \ | | | | | | journal/cat: allow connecting output to specific journal namespace