package/udisks: add config option to support mounting in /media

Support mounting in /media instead of /run/media for compatibility
with the Filesystem Hierarchy Standard (FHS). This is also required
for backward compatibility with udisks1.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Wolfgang Grandegger 2022-11-10 09:38:02 +01:00 committed by Thomas Petazzoni
parent 16cf45d5dd
commit 3a96199ca1
2 changed files with 16 additions and 1 deletions

View File

@ -49,3 +49,13 @@ comment "udisks needs a toolchain with dynamic library, locale, wchar, threads,
comment "udisks can't be built with Optimize for fast"
depends on BR2_OPTIMIZE_FAST
if BR2_PACKAGE_UDISKS
config BR2_PACKAGE_UDISKS_FHS_MEDIA
bool "Mount devices in /media instead of /run/media"
help
Support mounting in /media for compatibility with the
Filesystem Hierarchy Standard (FHS)
endif

View File

@ -29,7 +29,6 @@ UDISKS_CONF_OPTS = \
--disable-acl \
--disable-bcache \
--disable-btrfs \
--disable-fhs-media \
--disable-introspection \
--disable-iscsi \
--disable-lsm \
@ -40,4 +39,10 @@ UDISKS_CONF_OPTS = \
--disable-vdo \
--disable-zram
ifeq ($(BR2_PACKAGE_UDISKS_FHS_MEDIA),y)
UDISKS_CONF_OPTS += --enable-fhs-media
else
UDISKS_CONF_OPTS += --disable-fhs-media
endif
$(eval $(autotools-package))