diff options
author | Florian Klink <flokli@flokli.de> | 2023-04-13 22:54:54 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-04-15 11:29:50 +0200 |
commit | a108fcbacee859036f5613177321889bc34fd597 (patch) | |
tree | bbcd4cbddd97b9be226e4dc42c49ca0ba8422cd0 /man/systemd-fsck@.service.xml | |
parent | Merge pull request #27273 from mrc0mmand/test-generators (diff) | |
download | systemd-a108fcbacee859036f5613177321889bc34fd597.tar.xz systemd-a108fcbacee859036f5613177321889bc34fd597.zip |
fsck: look for fsck binary not just in /sbin
This removes remaining hardcoded occurences of `/sbin/fsck`, and instead
uses `find_executable` to find `fsck`.
We also use `fsck_exists_for_fstype` to check for the `fsck.*`
executable, which also checks in `$PATH`, so it's fair to assume fsck
itself is also available.
Diffstat (limited to 'man/systemd-fsck@.service.xml')
-rw-r--r-- | man/systemd-fsck@.service.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/systemd-fsck@.service.xml b/man/systemd-fsck@.service.xml index e928aebdb3..403286829e 100644 --- a/man/systemd-fsck@.service.xml +++ b/man/systemd-fsck@.service.xml @@ -51,17 +51,17 @@ <para><filename>systemd-fsck</filename> does not know any details about specific filesystems, and simply executes file system checkers specific to each filesystem type - (<filename>/sbin/fsck.<replaceable>type</replaceable></filename>). These checkers will decide if + (<filename>fsck.<replaceable>type</replaceable></filename>). These checkers will decide if the filesystem should actually be checked based on the time since last check, number of mounts, unclean unmount, etc.</para> <para><filename>systemd-fsck-root.service</filename> and <filename>systemd-fsck-usr.service</filename> - will activate <filename>reboot.target</filename> if <filename>/sbin/fsck</filename> returns the "System - should reboot" condition, or <filename>emergency.target</filename> if <filename>/sbin/fsck</filename> + will activate <filename>reboot.target</filename> if <filename>fsck</filename> returns the "System + should reboot" condition, or <filename>emergency.target</filename> if <filename>fsck</filename> returns the "Filesystem errors left uncorrected" condition.</para> <para><filename>systemd-fsck@.service</filename> will fail if - <filename>/sbin/fsck</filename> returns with either "System should reboot" + <filename>fsck</filename> returns with either "System should reboot" or "Filesystem errors left uncorrected" conditions. For filesystems listed in <filename>/etc/fstab</filename> without <literal>nofail</literal> or <literal>noauto</literal> options, <literal>local-fs.target</literal> |