From f1f0198cb61a3398557cc9ec596e1e90ac731ed3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 15 May 2014 19:07:43 +0200 Subject: 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. --- man/systemd-fsck@.service.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'man/systemd-fsck@.service.xml') 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. + + + fsck.repair= + + One of + preen, + yes, + no. Controls the + mode of operation. The default is + preen, and will automatically repair + problems that can be safely fixed. yes + will answer yes to all questions by + fsck and no will answer no to + all questions. + + -- cgit v1.2.3-54-g00ecf