From 5e9750533586efa3d480ac2bc4cf8549993bc3f1 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 6 Mar 2023 07:15:12 +0900 Subject: [PATCH] man: mention systemd-fsck-usr.service --- man/rules/meson.build | 2 +- man/systemd-fsck@.service.xml | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/man/rules/meson.build b/man/rules/meson.build index 2bf5936d641..601cfc84c7e 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -911,7 +911,7 @@ manpages = [ ['systemd-firstboot', '1', ['systemd-firstboot.service'], 'ENABLE_FIRSTBOOT'], ['systemd-fsck@.service', '8', - ['systemd-fsck', 'systemd-fsck-root.service'], + ['systemd-fsck', 'systemd-fsck-root.service', 'systemd-fsck-usr.service'], ''], ['systemd-fstab-generator', '8', [], ''], ['systemd-getty-generator', '8', [], ''], diff --git a/man/systemd-fsck@.service.xml b/man/systemd-fsck@.service.xml index a9aa0ffd0a2..e928aebdb33 100644 --- a/man/systemd-fsck@.service.xml +++ b/man/systemd-fsck@.service.xml @@ -18,6 +18,7 @@ systemd-fsck@.service systemd-fsck-root.service + systemd-fsck-usr.service systemd-fsck File system checker logic @@ -25,18 +26,20 @@ systemd-fsck@.service systemd-fsck-root.service + systemd-fsck-usr.service /usr/lib/systemd/systemd-fsck Description - systemd-fsck@.service and systemd-fsck-root.service are - services responsible for file system checks. They are instantiated for each device that is configured for - file system checking. systemd-fsck-root.service is responsible for file system - checks on the root file system, but only if the root filesystem was not checked in the initrd. - systemd-fsck@.service is used for all other file systems and for the root file - system in the initrd. + systemd-fsck@.service, systemd-fsck-root.service, and + systemd-fsck-usr.service are services responsible for file system checks. They are + instantiated for each device that is configured for file system checking. + systemd-fsck-root.service and systemd-fsck-usr.service are + responsible for file system checks on the root and /usr file system, respectively, but only if the root + filesystem was not checked in the initrd. systemd-fsck@.service is used for all + other file systems and for the root file system in the initrd. These services are started at boot if in /etc/fstab for the @@ -52,10 +55,9 @@ the filesystem should actually be checked based on the time since last check, number of mounts, unclean unmount, etc. - systemd-fsck-root.service will activate - reboot.target if /sbin/fsck - returns the "System should reboot" condition, or - emergency.target if /sbin/fsck + systemd-fsck-root.service and systemd-fsck-usr.service + will activate reboot.target if /sbin/fsck returns the "System + should reboot" condition, or emergency.target if /sbin/fsck returns the "Filesystem errors left uncorrected" condition. systemd-fsck@.service will fail if