mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
Merge pull request #31777 from keszybz/unit-retitling-and-comments
Unit retitling and comments
This commit is contained in:
commit
c78e86ab8d
@ -3329,8 +3329,8 @@ static int context_dump(Context *context, bool late) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
/* Make sure we only write the partition bar once, even if we're writing the partition table twice to
|
/* Only write the partition bar once, even if we're writing the partition table twice to communicate
|
||||||
* communicate roothashes. */
|
* roothashes. */
|
||||||
if (FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF) && !late) {
|
if (FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF) && !late) {
|
||||||
putc('\n', stdout);
|
putc('\n', stdout);
|
||||||
|
|
||||||
@ -4239,7 +4239,7 @@ static int partition_format_verity_hash(
|
|||||||
if (PARTITION_EXISTS(p)) /* Never format existing partitions */
|
if (PARTITION_EXISTS(p)) /* Never format existing partitions */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Minimized partitions will use the copy blocks logic so let's make sure to skip those here. */
|
/* Minimized partitions will use the copy blocks logic so skip those here. */
|
||||||
if (p->copy_blocks_fd >= 0)
|
if (p->copy_blocks_fd >= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -4986,7 +4986,7 @@ static int context_mkfs(Context *context) {
|
|||||||
if (!p->format)
|
if (!p->format)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Minimized partitions will use the copy blocks logic so let's make sure to skip those here. */
|
/* Minimized partitions will use the copy blocks logic so skip those here. */
|
||||||
if (p->copy_blocks_fd >= 0)
|
if (p->copy_blocks_fd >= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -4997,7 +4997,7 @@ static int context_mkfs(Context *context) {
|
|||||||
assert(p->new_size != UINT64_MAX);
|
assert(p->new_size != UINT64_MAX);
|
||||||
assert(p->new_size >= (p->encrypt != ENCRYPT_OFF ? LUKS2_METADATA_KEEP_FREE : 0));
|
assert(p->new_size >= (p->encrypt != ENCRYPT_OFF ? LUKS2_METADATA_KEEP_FREE : 0));
|
||||||
|
|
||||||
/* If we're doing encryption, we make sure we keep free space at the end which is required
|
/* If we're doing encryption, keep free space at the end which is required
|
||||||
* for cryptsetup's offline encryption. */
|
* for cryptsetup's offline encryption. */
|
||||||
r = partition_target_prepare(context, p,
|
r = partition_target_prepare(context, p,
|
||||||
p->new_size - (p->encrypt != ENCRYPT_OFF ? LUKS2_METADATA_KEEP_FREE : 0),
|
p->new_size - (p->encrypt != ENCRYPT_OFF ? LUKS2_METADATA_KEEP_FREE : 0),
|
||||||
@ -5046,8 +5046,8 @@ static int context_mkfs(Context *context) {
|
|||||||
return r;
|
return r;
|
||||||
|
|
||||||
/* The mkfs binary we invoked might have removed our temporary file when we're not operating
|
/* The mkfs binary we invoked might have removed our temporary file when we're not operating
|
||||||
* on a loop device, so let's make sure we open the file again to make sure our file
|
* on a loop device, so open the file again to make sure our file descriptor points to actual
|
||||||
* descriptor points to any potential new file. */
|
* new file. */
|
||||||
|
|
||||||
if (t->fd >= 0 && t->path && !t->loop) {
|
if (t->fd >= 0 && t->path && !t->loop) {
|
||||||
safe_close(t->fd);
|
safe_close(t->fd);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Boot Control (Varlink)
|
Description=Boot Entries Service Socket
|
||||||
Documentation=man:bootctl(1)
|
Documentation=man:bootctl(1)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=local-fs.target
|
After=local-fs.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Boot Control (Varlink)
|
Description=Boot Entries Service
|
||||||
Documentation=man:bootctl(1)
|
Documentation=man:bootctl(1)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Credential Encryption/Decryption (Varlink)
|
Description=Credential Encryption/Decryption
|
||||||
Documentation=man:systemd-creds(1)
|
Documentation=man:systemd-creds(1)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=sockets.target
|
Before=sockets.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Credential Encryption/Decryption (Varlink)
|
Description=Credential Encryption/Decryption
|
||||||
Documentation=man:systemd-creds(1)
|
Documentation=man:systemd-creds(1)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target initrd-switch-root.target
|
Conflicts=shutdown.target initrd-switch-root.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Hostname Service Varlink Socket
|
Description=Hostname Service Socket
|
||||||
Documentation=man:systemd-hostnamed.service(8)
|
Documentation=man:systemd-hostnamed.service(8)
|
||||||
Documentation=man:hostname(5)
|
Documentation=man:hostname(5)
|
||||||
Documentation=man:machine-info(5)
|
Documentation=man:machine-info(5)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Journal Socket
|
Description=Journal Sockets
|
||||||
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=sockets.target
|
Before=sockets.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Journal Socket for Namespace %i
|
Description=Journal Sockets for Namespace %i
|
||||||
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
Documentation=man:systemd-journald.service(8) man:journald.conf(5)
|
||||||
StopWhenUnneeded=yes
|
StopWhenUnneeded=yes
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Commit a transient machine-id on disk
|
Description=Save Transient machine-id to Disk
|
||||||
Documentation=man:systemd-machine-id-commit.service(8)
|
Documentation=man:systemd-machine-id-commit.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Extension (Varlink)
|
Description=TPM PCR Measurements
|
||||||
Documentation=man:systemd-pcrextend(8)
|
Documentation=man:systemd-pcrextend(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=tpm2.target
|
After=tpm2.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Extension (Varlink)
|
Description=TPM PCR Measurements
|
||||||
Documentation=man:systemd-pcrphase.service(8)
|
Documentation=man:systemd-pcrphase.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=tpm2.target
|
After=tpm2.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Root File System Measurement
|
Description=TPM PCR Root File System Measurement
|
||||||
Documentation=man:systemd-pcrfs-root.service(8)
|
Documentation=man:systemd-pcrfs-root.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR File System Measurement of %f
|
Description=TPM PCR File System Measurement of %f
|
||||||
Documentation=man:systemd-pcrfs@.service(8)
|
Documentation=man:systemd-pcrfs@.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
BindsTo=%i.mount
|
BindsTo=%i.mount
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lock File Systems to TPM2 PCR Policy
|
Description=Lock File Systems to TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lock Firmware Code to TPM2 PCR Policy
|
Description=Lock Firmware Code to TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lock Firmware Configuration to TPM2 PCR Policy
|
Description=Lock Firmware Configuration to TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lock Machine ID to TPM2 PCR Policy
|
Description=Lock Machine ID to TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Make TPM2 PCR Policy
|
Description=Make TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lock UEFI SecureBoot Authority to TPM2 PCR Policy
|
Description=Lock UEFI SecureBoot Authority to TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lock UEFI SecureBoot Policy to TPM2 PCR Policy
|
Description=Lock UEFI SecureBoot Policy to TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Make TPM2 PCR Policy (Varlink)
|
Description=Make TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=tpm2.target
|
After=tpm2.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Make TPM2 PCR Policy (Varlink)
|
Description=Make TPM PCR Policy
|
||||||
Documentation=man:systemd-pcrlock(8)
|
Documentation=man:systemd-pcrlock(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Machine ID Measurement
|
Description=TPM PCR Machine ID Measurement
|
||||||
Documentation=man:systemd-pcrmachine.service(8)
|
Documentation=man:systemd-pcrmachine.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Barrier (initrd)
|
Description=TPM PCR Barrier (initrd)
|
||||||
Documentation=man:systemd-pcrphase-initrd.service(8)
|
Documentation=man:systemd-pcrphase-initrd.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target initrd-switch-root.target
|
Conflicts=shutdown.target initrd-switch-root.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Barrier (Initialization)
|
Description=TPM PCR Barrier (Initialization)
|
||||||
Documentation=man:systemd-pcrphase-sysinit.service(8)
|
Documentation=man:systemd-pcrphase-sysinit.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 PCR Barrier (User)
|
Description=TPM PCR Barrier (User)
|
||||||
Documentation=man:systemd-pcrphase.service(8)
|
Documentation=man:systemd-pcrphase.service(8)
|
||||||
After=remote-fs.target remote-cryptsetup.target tpm2.target
|
After=remote-fs.target remote-cryptsetup.target tpm2.target
|
||||||
Before=systemd-user-sessions.service
|
Before=systemd-user-sessions.service
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=System Extension Image Management (Varlink)
|
Description=System Extension Image Management
|
||||||
Documentation=man:systemd-sysext(8)
|
Documentation=man:systemd-sysext(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=local-fs.target
|
After=local-fs.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=System Extension Image Management (Varlink)
|
Description=System Extension Image Management
|
||||||
Documentation=man:systemd-sysext(8)
|
Documentation=man:systemd-sysext(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=local-fs.target
|
After=local-fs.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 SRK Setup (Early)
|
Description=Early TPM SRK Setup
|
||||||
Documentation=man:systemd-tpm2-setup.service(8)
|
Documentation=man:systemd-tpm2-setup.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TPM2 SRK Setup
|
Description=TPM SRK Setup
|
||||||
Documentation=man:systemd-tpm2-setup.service(8)
|
Documentation=man:systemd-tpm2-setup.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
Loading…
Reference in New Issue
Block a user