summaryrefslogtreecommitdiff
path: root/src/mount
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/mount
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/mount')
-rw-r--r--src/mount/mount-tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index dd0afc6e11..25e18d279c 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -1497,7 +1497,7 @@ static int run(int argc, char* argv[]) {
arg_fsck = false;
if (arg_fsck && arg_mount_type && arg_transport == BUS_TRANSPORT_LOCAL) {
- r = fsck_exists(arg_mount_type);
+ r = fsck_exists_for_fstype(arg_mount_type);
if (r < 0)
log_warning_errno(r, "Couldn't determine whether fsck for %s exists, proceeding anyway.", arg_mount_type);
else if (r == 0) {