On 2016-07-22 12:01, Yamaban wrote:
On Fri, 22 Jul 2016 11:22, Carlos E. R. wrote:
Oh? Try "man grub2-set-default" and "man grub2-editenv" for info, grub2 stores the "default" in a extra file "/boot/grub2/grubenv" as a entry "saved_entry=xxx" e.g.: "saved_entry=gnulinux-simple-eb139661-114a-432b-bf10-e21244bfa245"
To note: for that to function, in the file "/etc/default/grub" the entry "GRUB_DEFAULT=saved" needs to be set, also the entry "GRUB_SAVEDEFAULT=true" is helpfull, which will allow you to automatically save last booted menu entry in GRUB2 environment variable 'saved_entry'
No, this last thing, which would be ideal, does not work. At least, not if the selected entry is in the "/boot/grub2/custom.cfg" file, which is what I need. -- Cheers / Saludos, Carlos E. R. (from openSUSE Leap 42.1 x86_64 (test)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org