summaryrefslogtreecommitdiff
path: root/man/systemd-fsck@.service.xml
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-05-15 19:07:43 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-16 18:33:59 +0200
commitf1f0198cb61a3398557cc9ec596e1e90ac731ed3 (patch)
treea4d59f5550aff83187b88561c6d2064f428e7498 /man/systemd-fsck@.service.xml
parente16cb2e4efaba83f47da8355adc65fd83bbe8327 (diff)
fsck: Allow to specify the fsck repair option in the cmdline
Some unattended systems do not have a console attached and entering the default rescue mode will not be too helpful. Allow to specify the "-y" option to attempt to fix all filesystem errors. Manually verified by downloading an image.gz of e2fsprogs, using losetup and running systemd-fsck on the loop device and varying the fsck.repair=preen|yes|no option.
Diffstat (limited to 'man/systemd-fsck@.service.xml')
-rw-r--r--man/systemd-fsck@.service.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/man/systemd-fsck@.service.xml b/man/systemd-fsck@.service.xml
index c653dc59d4..afd8d9b5ea 100644
--- a/man/systemd-fsck@.service.xml
+++ b/man/systemd-fsck@.service.xml
@@ -98,6 +98,22 @@
skips any file system
checks.</para></listitem>
</varlistentry>
+
+ <varlistentry>
+ <term><varname>fsck.repair=</varname></term>
+
+ <listitem><para>One of
+ <literal>preen</literal>,
+ <literal>yes</literal>,
+ <literal>no</literal>. Controls the
+ mode of operation. The default is <literal>
+ preen</literal>, and will automatically repair
+ problems that can be safely fixed. <literal>yes
+ </literal> will answer yes to all questions by
+ fsck and <literal>no</literal> will answer no to
+ all questions.
+ </para></listitem>
+ </varlistentry>
</variablelist>
</refsect1>