summaryrefslogtreecommitdiff
path: root/src/home
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2022-09-29 18:51:03 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-09-30 15:01:41 +0100
commit13556724379a52951eb1977c2b7989a0159fd77c (patch)
tree88784b2757be7edb5e80af6716d8c344dab585b9 /src/home
parentace212f577572bcbab5a464d13bf09418a6e7fa4 (diff)
downloadsystemd-13556724379a52951eb1977c2b7989a0159fd77c.tar.gz
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.
Diffstat (limited to 'src/home')
-rw-r--r--src/home/homework-luks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c
index 0369e285a7..993a3143c9 100644
--- a/src/home/homework-luks.c
+++ b/src/home/homework-luks.c
@@ -217,7 +217,7 @@ static int run_fsck(const char *node, const char *fstype) {
assert(node);
assert(fstype);
- r = fsck_exists(fstype);
+ r = fsck_exists_for_fstype(fstype);
if (r < 0)
return log_error_errno(r, "Failed to check if fsck for file system %s exists: %m", fstype);
if (r == 0) {