grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu for booting BTRFS snapshots


From: Andrei Borzenkov
Subject: Re: Menu for booting BTRFS snapshots
Date: Sat, 4 Mar 2017 13:37:35 +0300


Отправлено с iPhone

> 4 марта 2017 г., в 4:02, Robert LeBlanc <address@hidden> написал(а):
> 
> 
> menuentry 'RXE Snapshot' {
>       load_env -f /snaps/rxe-boot/grub2/grubenv
>       configfile /snaps/rxe-boot/grub2/grub.cfg
> }
> 

Grub.cfg as created by grub-mkconfig loads $prefix/grubenv which overrides 
whatever you got from your other grubenv. $prefix does not change when you run 
different config.

It is not the first time I see similar issue. I think grubenv should be 
searched relative to current $config_directory, it is not as much property of 
loaded binary, as property of current configuration.

Could you try to change your snapshot grub.cfg this way and see if it helps? 
You can then remove explicit grubenv load.


> 
> # cat /mnt/btrfs/boot/grub2/grubenv
> # GRUB Environment Block
> saved_entry=RXE Snapshot
> ###########################

Grub-editenv list would be enough.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]