Op vrijdag 22 juli 2016 11:22:39 CEST schreef Carlos E. R.:
Hi,
I have finally upgraded my main hard disk, grom 500GB to 2000GB. So I had to also migrate my 13.1 system with grub1 to a GPT disk. Worked fine. The problem is elsewhere.
The computer is oldish, BIOS only. The main disk is GPT. The protective MBR has "Syslinux GPTMBR (4.04-5.01)", which boots the partition that has the flag legacy_boot.
In that partition there is a grub 2 boot system pertaining to a Leap 42.1 install. This system, instead of automatically generating entries for other systems, has manual entries in /boot/grub2/custom.cfg like:
menuentry 'Main (with uuid)' { insmod part_gpt insmod ext2 set root='hd0,gpt5' if search --no-floppy --fs-uuid --set=root e99d9dcb-869d-4a24-94cf-cba32f169b8d ; then chainloader +1 else echo Could not find this OS instance, will not boot (3) sleep 1 fi }
(thanks to Andrei Borzenkov and others for setting up that idea)
So that the menu writes entries to the boot screen (from memory) like these:
Leap 42.1 Advanced options for Leap Main (with uuid) 11.4 (with uuid)
etc. Well, the question is whether it is possible to change the default entry, which now is the first line (automatically generated) to the third one (manually generated).
Prior threads:
[opensuse] Trying to understand booting GPT disk with BIOS (not UEFI) situation [opensuse] Am I doing this custom grub config correctly?
-- Cheers
Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Yast's bootloader module can do this. It writes the saved_entry variable to / boot/grub2/grubenv -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org