-
Notifications
You must be signed in to change notification settings - Fork 14
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
Clarifications on the pmbr_boot disk flag #88
Comments
I can't reproduce that, fresh Talos install doesn't set the flag:
|
@smira thanks for the follow-up. I may be getting confused by the function name here. Do I understand you correctly that the |
Yes, it should not set it unless explicitly enabled, but it would preserve the flag value if it's already set. |
Got it. In that case I'm out of explanations to why the disks on the 6 machines ended up this way. They all booted nicely around 1.5.4, were dd-ed and then only Talos with OS upgrades has been running on them (with a mod for the partition size). With that in mind, I'm happy to close the ticket since I haven't been able to reproduce the issue myself either. |
In reference to: siderolabs/talos#7066 (comment) and this code block
go-blockdevice/blockdevice/partition/gpt/gpt.go
Lines 366 to 412 in d9313ea
By some reason my disks were marked with the
pmbr_boot
by the partitioner in what I believe is regardless of thelegacyBIOSSupport
setting in the Talos config. Another machine I was setting up did not have the flag. All disks were wiped with dd before install.As I read the code it seems like it is first and foremost about setting the boot partition active and not about the pmbr flag on the disk? Further, does that mean
pmbr_boot
is in theory set in any case?Example partition table from one of the installs (caveat this is with an installer that sets the EFI partition to 500MB):
In effect, at least on the Mac Mini and for devices following the spec, this leads to the device refusing to boot from EFI, which was the case for me. Removing the flag made the device boot like it should.
So this may in other words be a case that requires clarification in the docs or a bug.
I was also wondering in what cases the disk flags is applied (e.g. when a reset is run)?
The text was updated successfully, but these errors were encountered: