2010-10-19 22:13:23 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2010-10-19 22:13:23 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=File System Check on Root Device
|
|
|
|
DefaultDependencies=no
|
|
|
|
After=systemd-readahead-collect.service systemd-readahead-replay.service
|
2011-04-15 23:58:43 +00:00
|
|
|
Before=local-fs.target shutdown.target
|
2010-10-19 22:13:23 +00:00
|
|
|
|
2011-02-14 10:42:47 +00:00
|
|
|
# Dracut informs us with this flag file if the root fsck was already run
|
2011-03-25 04:07:20 +00:00
|
|
|
ConditionPathExists=!/run/initramfs/root-fsck
|
2012-04-22 11:38:46 +00:00
|
|
|
ConditionPathIsReadWrite=!/
|
2011-02-14 10:42:47 +00:00
|
|
|
|
2010-10-19 22:13:23 +00:00
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=no
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-fsck
|
2012-01-12 04:09:06 +00:00
|
|
|
StandardOutput=journal+console
|
2010-10-20 12:22:23 +00:00
|
|
|
FsckPassNo=1
|
2011-02-20 19:27:59 +00:00
|
|
|
TimeoutSec=0
|