]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/fsck/fsck.c
generator: skip fsck if fsck command is missing
authorJonas Kümmerlin <jonas@kuemmerlin.eu>
Thu, 29 Sep 2022 16:51:03 +0000 (18:51 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 30 Sep 2022 14:01:41 +0000 (15:01 +0100)
commit13556724379a52951eb1977c2b7989a0159fd77c
tree88784b2757be7edb5e80af6716d8c344dab585b9
parentace212f577572bcbab5a464d13bf09418a6e7fa4
generator: skip fsck if fsck command is missing

This is useful for systems which don't have any fsck.

We already skip emitting the fsck dependency when the fsck.$fstype helper
is missing, but fstab-generator doesn't necessarily know the fstype when
handling the root= parameter.

Previously, systemd-fsck was started for these mounts and then exited
immediately because it couldn't find the fsck.$fstype helper.
src/basic/path-util.c
src/basic/path-util.h
src/fsck/fsck.c
src/home/homework-luks.c
src/mount/mount-tool.c
src/shared/dissect-image.c
src/shared/generator.c
src/test/test-path-util.c