https://bugzilla.novell.com/show_bug.cgi?id=782891 https://bugzilla.novell.com/show_bug.cgi?id=782891#c4 --- Comment #4 from Michael Chang <mchang@suse.com> 2012-10-22 03:11:53 UTC --- (In reply to comment #3)
(In reply to comment #1)
Andrey,
You're right.
Please check out home:arvidjaar:bnc782891/grub2.devel_openSUSE_Factory. It builds grub2-efi with "grub2" transform. It still does not combine packages for two reasons
- grub2-efi builds and installs \EFI\opensuse\grub.efi. What is it used for? It is created during build time so may not match user system at all and it is not referenced by anything after that. I really think it can be dropped.
It can be dropped for now, but we'll need it in the future for the secure boot as module loading would have to be disabled. We'll thus have to use a monolithic image, compared to the one build and installed by grub2-install which is a basic minimum image and loads module by request or implicitly auto loaded by command. For now, it could only be useful for debugging, afaics, as with correct prefix and root environment set in rescue mode it could almost work to tackle any circumstance as most relevant modules are built-in and ready to go.
- grub2-efi pulls in egibootmgr. This probably is not needed on non-UEFI systems.
Yes. I think it's a good movement to make it only required by grub2-efi.
The tricky part is that we have many tools which manipulates grub2 settings with hard coded name (grub2-efi ..). They have to be sorted out in case they would break in the new package.
Afaics, the tools affected are wildly spread perl-bootloader , pm-utils, kiwi and other probably tools for configuring xen host
Package installs compatibility links for those commands used by perl-Bootloader and migrates configuration from /boot/grub2-efi into /boot/grub2 if current loader is grub2-efi. I have tested it for
- update from previous version (migrating configuration) - update from updated version (just to make sure it does not do something funny) - switch from grub2-efi to elilo - switch from elilo back to grub2-efi
Seems to work. I do not have possibility to test it in other environments.
I could help to test the media installation and other scenarios I could comprehend to have potential impact, please be patient and wait my result (I'll probably have to branch from yours and would SR for any new fixings)
And this implies YaST shouldn't have loader type grub2-efi.
It depends on whether you want to keep separate grub2-efi package. If yes, you need to know when perform bootloader refresh on update. Also UEFI is still sufficiently different so having is as separate loader type may prove useful. But that is something for YaST2 experts.
Yeah, you made very good point. The grub2-efi loader type should be kept, I made those comment is too quick and without much thinking. The only benefit we don't have a separate grub2-efi package is less or no code duplicate (in yast and perl bootloader) but the optimization have to be compromised with our current practice. JFYI. I've created a branch and working on this topic as well.. home:michael-chang:branches:devel:openSUSE:Factory grub2 But since you're moving faster than me and let's based on yours (I'll see if I could merge any thing from my change to yours) Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.