core/mount: filter out "fail" option as well

This commit is contained in:
Mike Yuan
2025-02-12 14:43:06 +01:00
parent 5fe4c30ca7
commit 7e9a78d6be
+1 -1
View File
@@ -1149,7 +1149,7 @@ static int mount_set_mount_command(Mount *m, ExecCommand *c, const MountParamete
}
_cleanup_free_ char *opts = NULL;
r = fstab_filter_options(p->options, "nofail\0" "noauto\0" "auto\0", NULL, NULL, NULL, &opts);
r = fstab_filter_options(p->options, "nofail\0" "fail\0" "noauto\0" "auto\0", NULL, NULL, NULL, &opts);
if (r < 0)
return r;