fsck: look for fsck binary not just in /sbin
authorFlorian Klink <flokli@flokli.de>
Thu, 13 Apr 2023 20:54:54 +0000 (22:54 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 15 Apr 2023 09:29:50 +0000 (10:29 +0100)
commita108fcbacee859036f5613177321889bc34fd597
treebbcd4cbddd97b9be226e4dc42c49ca0ba8422cd0
parent4d7a06b322d2bb01a9ce2957dbe085bb4da9f57e
fsck: look for fsck binary not just in /sbin

This removes remaining hardcoded occurences of `/sbin/fsck`, and instead
uses `find_executable` to find `fsck`.

We also use `fsck_exists_for_fstype` to check for the `fsck.*`
executable, which also checks in `$PATH`, so it's fair to assume fsck
itself is also available.
man/systemd-fsck@.service.xml
src/fsck/fsck.c
src/home/homework-luks.c
src/shared/dissect-image.c