24.07.2016 04:47, Carlos E. R. пишет:
On 2016-07-22 17:25, Andrei Borzenkov wrote:
Assuming you are using grub-mkconfig and not editing grub.cfg manually ...
No, I edit "/boot/grub2/custom.cfg" manually.
Then just use set default=whatever-is-your-default in grub.cfg ...
No, it does not work :-(
/etc/default/grub:
GRUB_DEFAULT=cer-main-001 GRUB_SAVEDEFAULT=true
Of course not. This only affects code that is emitted by grub-mkconfig, so if you do not use grub-mkconfig, no reason to mess with this file (there is currently single exception of encrypted /boot/grub).
/boot/grub2/custom.cfg:
menuentry 'Main (por uuid)' --id cer-main-001 { 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 }
By default, it always want to boot the first entry found in "/boot/grub2/grub.cfg", not any of the entries I define in "/boot/grub2/custom.cfg". Those are ignored by this feature.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org