summaryrefslogtreecommitdiffstats
path: root/libmount/src/optmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/optmap.c')
-rw-r--r--libmount/src/optmap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmount/src/optmap.c b/libmount/src/optmap.c
index 6fdaa7a41..114eb994e 100644
--- a/libmount/src/optmap.c
+++ b/libmount/src/optmap.c
@@ -160,6 +160,13 @@ static const struct libmnt_optmap userspace_opts_map[] =
{ "comment=", MNT_MS_COMMENT, MNT_NOHLPS | MNT_NOMTAB },/* fstab comment only */
+ /*
+ * systemd assumes that x-systemd options namespace is available for umount,
+ * let's use the options as X-*
+ */
+#ifdef HAVE_SYSTEMD
+ { "x-systemd", MNT_MS_XPERSIST, MNT_NOHLPS | MNT_PREFIX }, /* like X-* */
+#endif
{ "X-", MNT_MS_XPERSIST, MNT_NOHLPS | MNT_PREFIX }, /* X- persistent comments (utab) */
{ "x-", MNT_MS_XCOMMENT, MNT_NOHLPS | MNT_NOMTAB | MNT_PREFIX }, /* x- fstab only comments */