[opensuse] add a command line or small script just after an update
hello on my small computer, updating kills my UEFI 32 bits grub.efi. What I need i run the grub2-install --target i386-efi after any update how can I do it? thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
01.03.2016 19:00, jdd пишет:
hello
on my small computer, updating kills my UEFI 32 bits grub.efi.
What I need i run the grub2-install --target i386-efi after any update
*any* update? What means "kill"? grub.cfg is recreated after kernel update. It should not affect you (you still did not say whether full grub2 works for you with grub.cfg created by grub2-mkconfig). Replacing NVRAM menu entry with pointer to 64 bit GRUB2 would of course break boot, but it happens only after grub2 update. As you are not going to get 32 bit grub2 updates anyway, just set LOADER_TYPE="" in /etc/sysconfig/bootloader. You will need to manually maintain grub.cfg (wither by running grub2-mkconfig or editing directly).
how can I do it?
thanks jdd
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 01/03/2016 19:44, Andrei Borzenkov a écrit :
*any* update? What means "kill"?
not grub.cfg, but grub.efi (32 bits replaced by 64 bits), but it's easier to recreate the grub config than to check if grub is updated
grub.cfg is recreated after kernel update. It should not affect you (you still did not say whether full grub2 works for you with grub.cfg created by grub2-mkconfig).
I said yes several times since yesterday. I need grub2-install --target i386-efi, not grub-mkconfig :-) summary here: http://dodin.info/wiki/pmwiki.php?n=Doc.UEFIBoot Replacing NVRAM menu entry with pointer to 64 bit
GRUB2 would of course break boot, but it happens only after grub2 update.
then there was one since yesterday, or may be it was not done after the initial install, as I had network problems
As you are not going to get 32 bit grub2 updates anyway, just set LOADER_TYPE="" in /etc/sysconfig/bootloader. You will need to manually maintain grub.cfg (wither by running grub2-mkconfig or editing directly).
oh, yes, of course just disable Leap bootloader... done and I noticed than the real grub.cfg read by grub-efi is the one next to EFI/grub.efi, in openSUSE it's a link to the usual one, but I could copy it to my own EFI/32 folder and it works (this one is untouched by openSUSE), I keep it as backup thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
jdd