summaryrefslogtreecommitdiffstats
path: root/src/test/test-path-util.c
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 16:01:41 +0200
commit13556724379a52951eb1977c2b7989a0159fd77c (patch)
tree88784b2757be7edb5e80af6716d8c344dab585b9 /src/test/test-path-util.c
parentportablectl: add --force attach/detach (diff)
downloadsystemd-13556724379a52951eb1977c2b7989a0159fd77c.tar.xz
systemd-13556724379a52951eb1977c2b7989a0159fd77c.zip
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/test/test-path-util.c')
-rw-r--r--src/test/test-path-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index a26e351233..e3fcbd4513 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -445,10 +445,10 @@ TEST(fsck_exists) {
assert_se(unsetenv("PATH") == 0);
/* fsck.minix is provided by util-linux and will probably exist. */
- assert_se(fsck_exists("minix") == 1);
+ assert_se(fsck_exists_for_fstype("minix") == 1);
- assert_se(fsck_exists("AbCdE") == 0);
- assert_se(fsck_exists("/../bin/") == 0);
+ assert_se(fsck_exists_for_fstype("AbCdE") == 0);
+ assert_se(fsck_exists_for_fstype("/../bin/") == 0);
}
static void test_path_make_relative_one(const char *from, const char *to, const char *expected) {