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

Do not crash when changing disklabel on disks with active devices #1037

Conversation

vojtechtrefny
Copy link
Member

The _find_active_devices_on_action_disks function originally
prevented from making any changes on disks with active devices
(active LVs, mounted partitions etc.) This was changed in
b72e957 and the check currently
prevents only reformatting the disklabel on such disks which
should be already impossible on disks with an existing partition.

This change for the 3.4 stable branch keeps the current behaviour
where the active devices are teared down when running in installer
mode to avoid potential issues with the installer.

The _find_active_devices_on_action_disks function originally
prevented from making any changes on disks with active devices
(active LVs, mounted partitions etc.)  This was changed in
b72e957 and the check currently
prevents only reformatting the disklabel on such disks which
should be already impossible on disks with an existing partition.

This change for the 3.4 stable branch keeps the current behaviour
where the active devices are teared down when running in installer
mode to avoid potential issues with the installer.
@vojtechtrefny vojtechtrefny force-pushed the 3.4-devel_disklabel-ignore-problematic-disks branch from 1b49319 to b88686f Compare April 28, 2022 12:27
@vojtechtrefny vojtechtrefny changed the base branch from 3.5-devel to 3.4-devel April 28, 2022 12:31
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.
Loop device related issues are addressed by #1025

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