-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
libefi: remove efi_type() #12969
libefi: remove efi_type() #12969
Conversation
All it is right now is some #if 0ed Solaris code that returns ENOSYS, and is only applicable for the Solaris blockdev layer. In the Illumos gate, there's a single user: rmformat(1); I recommend a read of the manual as a blast from the past, but, well Ref: openzfs#12844 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this was always dead code which never got removed. Happy to see it go.
This reminds me of #11408 - what is the plan for native handling of (bootable) EFI-legal volumes via ZFS? |
How'd you mean? I'm booting a ZFS root off EFI (GPT[ESP, root pool]) on my laptop and on CSM (GPT[GRUB trampoline, /boot, root pool]; 10th-gen Dell EFIs are Not There) on my flat computer. There's no reason you can't chainload a ZFS rootfs off your platform's favourite bootloader (be it GRUB, the platform firmware, kexec, &c.) for pretty much any disk configuration, is there? e: oops, i seem to've misread the linked issue; that sounds nicer for the common case, yeah. Probably wasn't prioritised for the reason above. |
@nabijaczleweli: thats how everyone's doing it really, because ZFS doesn't support the EFI requirements in its zpool format. The suggestion there is that any pool which is to be bootable must have the relevant space allocated for EFI data and presented as a fat32 slab of contiguous blocks. I pulled in a few commits a while back which help with MBR booting by embedding a boot block into the zpool's starting sector and such, but for EFI its an actual zpool format specification change since you need that slab of other-filesystem. Internally at Semper Victus we have a CI-built Arch image which we use to boot... everything pretty much, and since its on removable media the EFI partition needs to go with it. Leveraging the internal EFI space on the mainboard is also not an option on a ton of systems as their BIOS lock-in the secure boot section to only be allowed to be written by Windows using an MS signing key (like every clevo laptop, some of the major ones, a bunch of supermicro boxes, etc) and don't accept custom keys correctly. |
All it is right now is some #if 0ed Solaris code that returns ENOSYS, and is only applicable for the Solaris blockdev layer. In the Illumos gate, there's a single user: rmformat(1); I recommend a read of the manual as a blast from the past, but, well Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Issue openzfs#12844 Closes openzfs#12969
All it is right now is some #if 0ed Solaris code that returns ENOSYS, and is only applicable for the Solaris blockdev layer. In the Illumos gate, there's a single user: rmformat(1); I recommend a read of the manual as a blast from the past, but, well Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Issue openzfs#12844 Closes openzfs#12969
Motivation and Context
As noted in #12844:
It never was anything but: imported in 5c36312 (Fri Oct 9 15:37:29 2009 -0700), commented out in d603ed6 (Thu Aug 26 11:56:53 2010 -0700), which says
Types of changes
Checklist:
Signed-off-by
.