Files
operating-system/buildroot-external/package/udisks2/udisks2.mk
Stefan Agner 82db02756c Make D-Bus and udisks2 available early (#1291)
* Disable systemd-logind support for udisks2

Currently udisks2 uses systemd-logind to prevent the system from
rebooting or similar operations while udisks operations are ongoing.
Unfortunately this stops us from using udisks2 during early boot since
systemd-logind is not ready at this point. Make the dependency
configureable so we can opt-out of using systemd-logind.

* Make dbus.service/socket and udisks2.service/socket available early

Disable default dependencies. This avoids those services to be ordered
after sysinit.target, and makes them available before local-fs.target
is reached. All mounts like mnt-data.mount are ordered before
local-fs.target, so breaking this dependency allows to use D-Bus before
mounting local file systems.

This seems fine when using the system bus directly from /run (instead of
/var/run, which is anyway a symlink to /run normally). It seems that
udisks misses /var/lib/udisks2 but it seems not to be required for the
features used so far.
2021-03-31 21:46:02 +02:00

42 lines
1.1 KiB
Makefile

################################################################################
#
# udisks2
#
################################################################################
UDISKS2_VERSION = 2.9.2
UDISKS2_SITE = https://github.com/storaged-project/udisks/releases/download/udisks-$(UDISKS2_VERSION)
UDISKS2_SOURCE = udisks-$(UDISKS2_VERSION).tar.bz2
UDISKS2_LICENSE = GPL-2.0+
UDISKS2_LICENSE_FILES = COPYING
# For 0002-Make-polkit-dependency-optional.patch
# Running autoreconf when GObject Introspection is not selected
# requires 0003-Avoid-autoreconf-error-if-introspection-macros-are-n.patch
UDISKS2_AUTORECONF = YES
UDISKS2_DEPENDENCIES = \
host-pkgconf \
dbus \
dbus-glib \
libatasmart \
libblockdev \
libgudev \
lvm2 \
parted \
udev
UDISKS2_CONF_OPTS = --disable-polkit --disable-man --disable-libsystemd-login
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
UDISKS2_CONF_OPTS += --enable-introspection
UDISKS2_DEPENDENCIES += gobject-introspection
else
UDISKS2_CONF_OPTS += --disable-introspection
endif
ifeq ($(BR2_PACKAGE_UDISKS2_LVM2),y)
UDISKS2_CONF_OPTS += --enable-lvm2
endif
$(eval $(autotools-package))