Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested partitions in luks partition #115

Open
pmidolmonnet opened this issue Apr 13, 2023 · 0 comments
Open

Nested partitions in luks partition #115

pmidolmonnet opened this issue Apr 13, 2023 · 0 comments

Comments

@pmidolmonnet
Copy link

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 solution:

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant