Skip to content

Support LVM #201

Description

@rgayon

Target Component

Other (Please specify in description)

What problem does this solve?

Update lib/openrelik_worker_common/mount_utils.py to support LVM2_member partition type

Proposed Solution

This is probably going to be quite a lot of work, but for every partition (and the whole qcow2 file if it's not coming with a partition table) we will have to:

  • get the VG name with sudo pvs --noheadings -o vg_name /dev/nbd0 | tr -d " "
  • sudo vgchange -ay <vg_name>
  • iterate over /dev/<vg_name>/* to get all the partitions that we might want to parse

Alternatives Considered

No response

Contribution

  • I am willing to submit a PR to implement this feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions