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

blockdev: strengthen device mapper path detection #499

Merged
merged 1 commit into from Mar 19, 2021
Merged

blockdev: strengthen device mapper path detection #499

merged 1 commit into from Mar 19, 2021

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Mar 17, 2021

Apart from the /dev/mapper symlinks, there's a bunch of other possible
symlinks which also point to the same devmapper device. Instead of
trying to catch them all, simply resolve all symlinks and then check
that it starts with dm-.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1886229#c39

@jlebon
Copy link
Member Author

jlebon commented Mar 17, 2021

(Not tested yet.)

Apart from the `/dev/mapper` symlinks, there's a bunch of other possible
symlinks which also point to the same devmapper device. Instead of
trying to catch them all, simply resolve all symlinks and then check
that it starts with `dm-`.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1886229#c39
@jlebon
Copy link
Member Author

jlebon commented Mar 17, 2021

OK, yup this fixes https://bugzilla.redhat.com/show_bug.cgi?id=1886229#c39! ✔️

@jlebon
Copy link
Member Author

jlebon commented Mar 17, 2021

We should probably add a testiso scenario which tests installing on a device mapper block device.

@bgilbert bgilbert closed this Mar 19, 2021
@bgilbert bgilbert reopened this Mar 19, 2021
@jlebon jlebon merged commit 6a7eafe into coreos:master Mar 19, 2021
@jlebon jlebon deleted the pr/canon-dm branch March 19, 2021 13:24
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.

None yet

2 participants