Skip to content

Commit

Permalink
Merge branch 'jb50452' into 'master'
Browse files Browse the repository at this point in the history
[udisks2] Pass extra mount options to mount-sd service. Contributes to JB#50452

See merge request mer-core/udisks2!26
  • Loading branch information
rainemak committed Nov 3, 2020
2 parents 4a9ceab + 1c7129c commit 518af91
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rpm/0013-Pass-extra-mount-options-to-mount-sd-service.patch
@@ -0,0 +1,24 @@
From c6aa264dbf46c5f8aabb63bd90ddf41a409039a2 Mon Sep 17 00:00:00 2001
From: Dmitry Gerasimov <d.gerasimov@omprussia.ru>
Date: Tue, 3 Nov 2020 17:17:46 +0300
Subject: [PATCH] Pass extra mount options to mount-sd service

---
data/mount-sd@.service | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/data/mount-sd@.service b/data/mount-sd@.service
index c1aa7de3..22433391 100644
--- a/data/mount-sd@.service
+++ b/data/mount-sd@.service
@@ -7,5 +7,6 @@ Conflicts=rescue.target actdead.target factory-test.target
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/bin/udisksctl-user mount -b /dev/%i
+EnvironmentFile=-/var/lib/environment/udisks2/*.conf
+ExecStart=/usr/bin/udisksctl-user mount $UDISKS2_MOUNT_OPTIONS -b /dev/%i
ExecStop=-/usr/bin/udisksctl-user unmount -b /dev/%i
--
2.25.1

1 change: 1 addition & 0 deletions rpm/udisks2.spec
Expand Up @@ -28,6 +28,7 @@ Patch9: 0009-Reduce-reserved-blocks-percentage-to-zero-for-ext2-e.patch
Patch10: 0010-Allow-rescan-for-inactive.patch
Patch11: 0011-Allow-whitelisting-filesystems-that-can-be-mounted.patch
Patch12: 0012-Add-option-to-set-group-permissions.patch
Patch13: 0013-Pass-extra-mount-options-to-mount-sd-service.patch

BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gobject-introspection-1.0)
Expand Down

0 comments on commit 518af91

Please sign in to comment.