chiark / gitweb /
fsck: skip root fsck if dracut already did it
[elogind.git] / units / fsck-root.service.in
1 #  This file is part of systemd.
2 #
3 #  systemd is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU General Public License as published by
5 #  the Free Software Foundation; either version 2 of the License, or
6 #  (at your option) any later version.
7
8 [Unit]
9 Description=File System Check on Root Device
10 DefaultDependencies=no
11 After=systemd-readahead-collect.service systemd-readahead-replay.service
12 Before=local-fs.target shutdown.target remount-rootfs.service quotacheck.service
13
14 # Dracut informs us with this flag file if the root fsck was already run
15 ConditionPathExists=!/dev/.initramfs/fsck
16
17 [Service]
18 Type=oneshot
19 RemainAfterExit=no
20 ExecStart=@rootlibexecdir@/systemd-fsck
21 StandardOutput=syslog
22 FsckPassNo=1