From ac6086fdf63f1c2b26baa955d13faa21afb2aeb1 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 11 Oct 2022 18:28:10 +0100 Subject: [PATCH] mount-util: do not pass 'x-*' options to mount syscall They will not be recognized. libmount filters them manually. --- src/shared/mount-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c index c504ce8fee..6742b7c755 100644 --- a/src/shared/mount-util.c +++ b/src/shared/mount-util.c @@ -765,7 +765,9 @@ int mount_option_mangle( } /* If 'word' is not a mount flag, then store it in '*ret_remaining_options'. */ - if (!ent->name && !strextend_with_separator(&ret, ",", word)) + if (!ent->name && + !startswith_no_case(word, "x-") && + !strextend_with_separator(&ret, ",", word)) return -ENOMEM; } -- 2.25.1