1

How to automatically force fsck disks after crash in `systemd`?

view story
linux-howto

http://unix.stackexchange.com – Sorry for bad english. How to set systemd for automatically force fsck disks after crash (hard poweroff)? When I used sysvinit (in Arch Linux) as /sbin/init I used the hack: in the rc.local I create /forcefsck file; in the rc.local.shutdown I remove it. At boot-up rc.sysinit enable force fsck if /forcefsck exists. How to do same in systemd? Maybe it has built-in facilities for automatic fsck after crush? (HowTos)