Skip to content

bsdinstall(8): Fix GPT label conflicts with disks not managed by us #1735

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tuffnatty
Copy link

When doing a ZFS install on a machine having another installation made by bsdinstall(8), with GPT labels kept as efiboot0, gptboot0, boot0, zfs0, or swap0, bsdinstall(8) creates conflicting GPT labels and calls newfs_msdos(8) on existing gpt/efiboot0 device from unmanaged disk.

This patch checks for potential GPT label conflicts and prevents them by adjusting the numeric index to an unused value.

Signed-off-by: Phil Krylov <phil@krylov.eu>
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.

1 participant