We are using a LUKS partition containing a GPT table and several partions.
With libguestfs we can open the LUKS partition and the
/dev/mapper/<mapname>
device become available, but nested partition are not seen by the
kernel. partprobe
need to be run
(or may be kpartx) to make partitions available in /dev/mapper
.
AFAIK there are no simple solution.
As a workaround we use guestfs_debug
but it's not a long term solution.
We can see two solutions:
guestfs_partprobe(device)
that can be call by the user when needed.What is the best best solution from your point of
view?
We can help implementing it.
Regards
Philippe Midol-Monnet