On Thu, 3 Jun 2021 13:33:02 +0200 Chris Hofstaedtler <[email protected]>
wrote:
* Thorsten Glaser <[email protected]> [210531 21:09]:
> I’m trying to use partx instead of kpartx to make partitions
> available to the system, but it completely fails:
>
> tglase@tglase:~ $ sudo partx -a -v - /dev/vg-tglase/ufs
> partition: none, disk: /dev/vg-tglase/ufs, lower: 0, upper: 0
> /dev/vg-tglase/ufs: partition table type 'dos' detected
> range recount: max partno=4, lower=0, upper=0
> partx: /dev/vg-tglase/ufs: adding partition #4 failed: Invalid argument
> partx: /dev/vg-tglase/ufs: error adding partition 4
>
> Doing this with kpartx works…
[..]
Right. Thanks for the report, however could I ask you to directly
report this to upstream? I don't think this is a Debian peculiarity
and I cannot think of anything useful that I could add to an
upstream bug report.
AFAIK, LVM logical volumes are not partitionable from the kernel point
of view and there is nothing util-linux upstream can do about it.
kpartx works because it creates device-mapper devices instead of partitions.