chiark / gitweb /
fsck: Allow to specify the fsck repair option in the cmdline
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Thu, 15 May 2014 17:07:43 +0000 (19:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 May 2014 16:33:59 +0000 (18:33 +0200)
commitf1f0198cb61a3398557cc9ec596e1e90ac731ed3
treea4d59f5550aff83187b88561c6d2064f428e7498
parente16cb2e4efaba83f47da8355adc65fd83bbe8327
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/kernel-command-line.xml
man/systemd-fsck@.service.xml
src/fsck/fsck.c