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

rdcore/rootmap: properly handle linear md devices #696

Merged
merged 1 commit into from
Nov 30, 2021
Merged

rdcore/rootmap: properly handle linear md devices #696

merged 1 commit into from
Nov 30, 2021

Conversation

bgilbert
Copy link
Contributor

Devices that report type linear are md devices, even though the type doesn't start with raid.

Devices that report type "linear" are md devices, even though the type
doesn't start with "raid".
@lucab
Copy link
Contributor

lucab commented Nov 30, 2021

LGTM, but I do remember we were doing some dm-linear hacks for LUKS in the past. So I'm not sure if this will conflict with systems still having that layout. I'll defer to @jlebon review.

@lucab lucab requested a review from jlebon November 30, 2021 09:51
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

LGTM!

LGTM, but I do remember we were doing some dm-linear hacks for LUKS in the past. So I'm not sure if this will conflict with systems still having that layout.

It should be fine. This code is only relevant for first boots, so we don't need to worry about interfering with upgraded systems.

@bgilbert
Copy link
Contributor Author

dm-linear shows up in the lsblk TYPE field as dm rather than linear, so there shouldn't be a conflict in any event.

@bgilbert bgilbert merged commit 73c6f17 into coreos:main Nov 30, 2021
@bgilbert bgilbert deleted the linear branch November 30, 2021 17:19
@lucab
Copy link
Contributor

lucab commented Nov 30, 2021

Thanks for the feedback, sorry if was overzealous :)

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.

3 participants