Files
packages/utils/lvm2
Josef Schlehofer 3cc71150f7 lvm2: conflict with the selinux variants
libdevmapper and libdevmapper-selinux both install
/usr/lib/libdevmapper.so.1.02, and lvm2 and lvm2-selinux both install
/sbin/lvm, /sbin/dmsetup and /etc/lvm/lvm.conf. The selinux variants
provide the plain names, so apk never installs both of a pair, but
Kconfig lets both be selected, and the image then silently gets only
the selinux variant.

Declare the conflicts on libdevmapper and lvm2 and mark them as the
default variant, as include/package-pack.mk asks for variants that
share a provide. cryptsetup, autopart and nfs-utils-v4 depend on them,
and Kconfig selects them depending on the selinux variants, so a
conflict in the other direction creates a Kconfig dependency cycle.

Checked with defconfig: libdevmapper drops to m when
libdevmapper-selinux is selected, and lvm2 drops to m when lvm2-selinux
is selected.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-11-03 12:01:12 +01:00
..
2026-08-31 17:30:15 +01:00