From 13556724379a52951eb1977c2b7989a0159fd77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20K=C3=BCmmerlin?= Date: Thu, 29 Sep 2022 18:51:03 +0200 Subject: 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/home/homework-luks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/home') 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) { -- cgit v1.2.1