Hi
I have already fulfill a an issue, but it looks like it's not the
recommended process.
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:
* adding a udev rule that will automatically run partpobe when a new
device appeared in /dev/mapper
* adding a new API in libguestfs |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
--
*This email and any attachment contains EasyMile’s confidential
information, and must not be modified or circulated without EasyMile’s
prior written consent. It is intended exclusively for their recipient.s. If
you received this message by mistake, please notify us promptly and
immediately delete this email and any of its attachments.*
*As data
controller, EasyMile processes personal data, in compliance with the
European GDPR (EU) 2016/679 of 27 April 2016. To exercise your rights, you
can contact EasyMile at privacy(a)easymile.com, and if necessary, you may
contact the local competent supervisory authority.”*
*Cet e-mail et toute
pièce jointe contiennent des informations confidentielles d'EasyMile et ne
doivent pas être modifiés ou diffusés sans le consentement écrit préalable
d'EasyMile. Ils sont destinés exclusivement à leur destinataire.s. Si vous
avez reçu ce message par erreur, veuillez nous en informer rapidement et
supprimer immédiatement cet e-mail et toutes ses pièces jointes. *
*En
tant que responsable de traitement, EasyMile traite des données
personnelles, conformément au RGPD européen (UE) 2016/679 du 27 avril 2016.
Pour exercer vos droits, vous pouvez contacter EasyMile à
privacy(a)easymile.com <mailto:privacy@easymile.com>, et si nécessaire, vous
pouvez contacter l'autorité de contrôle locale compétente.*