NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/49510: gpt(8) fails w/o drvctl and breaks sysinst
On Dec 29, 10:57am, Martin Husemann wrote:
} On Mon, Dec 29, 2014 at 02:05:01AM +0000, John Nemeth wrote:
} > I disagree that this is a bug in gpt(8). Every INSTALL kernel
} > where gpt(8) is going to be used should have drvctl, or gpt(8)
} > shouldn't be used.
}
} Yes, sysinst should not try to find out wether a disk has a GPT by invoking
} gpt(8), as that tool is obviously not up to the task.
It obviously is up to the task. Politics do not belong in a PR!
} I would change it to just open the disk, read a few kb and check the GPT
} (master copy) signature, but others claim this would violate the UEFI
} spec that forces us to check the backup copy.
This would be a terrible idea. You could end up accidentally
trashing a disk. Or, you could set it up to be trashed later when
a properly functioning tool finds the backup copy and restores it.
BTW, GPT headers are guaranteed to be in the second block and
the last block. Finding the last block of the disk would leave
you in the same place as gpt(8).
}-- End of excerpt from Martin Husemann
Home |
Main Index |
Thread Index |
Old Index