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

Improved handling of corrupt or otherwise unsupported disklabels #427

Merged
merged 3 commits into from May 31, 2016

Conversation

dwlehman
Copy link
Contributor

This is a total reversal from the "unusable storage" dialog I added last year. The idea here is that blivet should not be constrained by what disklabels parted supports. If there are partitions in the system for it, we should be able to identify them and whatever it built on them. We should also be able to completely clear them so that users can get to a known-good state. Here are the main points of what this patch set does:

  • include partitions and their descendants even if parted doesn't support the disklabel
    • we cannot support modifying the partition table in this case
    • we can, however, use the devices as-is or completely wipe the disk to start over
  • make a better effort to find the disk a partition belongs on, regardless of whether udev/blkid provide expected data

The corresponding anaconda piece will hide all devices built on an unsupported disklabel from the user while allowing them to clear the disk or just ignore it. Kickstart's clearpart should also work as expected now with unsupported disklabels.

@dwlehman
Copy link
Contributor Author

jenkins, test this please

@dwlehman dwlehman force-pushed the unsupported-disklabels branch 3 times, most recently from 3e7bd50 to b06db0c Compare May 27, 2016 17:27
Even if we won't have proper support for the disklabel we can at
least have a complete view of the storage layout, which will make
it possible to completely clear the disk if asked to.
@vpodzime
Copy link
Contributor

Looks good to me.

@vpodzime vpodzime added the ACK label May 30, 2016
@dwlehman dwlehman merged commit 95aa291 into storaged-project:2.0-devel May 31, 2016
@dwlehman dwlehman deleted the unsupported-disklabels branch May 31, 2016 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants