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

Fix DMDevice hard dependency on kpartx #1165

Conversation

vojtechtrefny
Copy link
Member

DMDevice now depends on kpartx which means all DM devices (LUKS, LVM etc.) depend on kpartx which is really needed only for multipath. This PR moves the dependency to multipath and also allows avoids unnecessary exceptions when kpartx is not available.

We don't need kpartx for all DM devices (and devices that are
based on it like LUKS or LVM) so we are moving the dependency to
the MultipathDevice where we can expect partitions to be present
on a device mapper device.
We don't need to fail just because kpartx is missing, we can just
log warning and not activate the partitions.
Copy link
Contributor

@japokorn japokorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@vojtechtrefny vojtechtrefny merged commit e02a6b8 into storaged-project:3.9-devel Nov 1, 2023
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants