[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: |
Fri, 3 Mar 2017 06:34:02 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
03.03.2017 00:40, Robert LeBlanc пишет:
> I'm trying to add some menuentry items to move between btrfs
> snapshots. I've added the following in the non-snapshot
> /etc/grub.d/40_custom.
>
> menuentry 'RXE Snapshot' {
> load_env -f /snaps/rxe-boot/grub2/grubenv
> configfile /snaps/rxe-boot/grub2/grub.cfg
> }
>
> It loads the config for my RXE snapshot, but in doesn't select the
> default menuentry as specified in the snapshot's grubenv. This makes
What is exact "default" value in loaded grubenv?
> it so that it won't boot automatically into a snapshot kernel (I
> created a 09_header file to add a noop menuentry that tells me I'm
> using the RXE snapshot config and that is what is selected). It
> doesn't matter if load_env is before or after configfile. Other than
> this, it works as expected.
>
> I don't think I can use chainload because it is a 'directory' on the
> btrfs file system.
>
> Any ideas on how to accomplish what I want?
>
You can load other grub image directly without chainloading.