[Top][All Lists]

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

correct grub2 menuentry stanza for chainloading xen.efi?

From: lyndat3
Subject: correct grub2 menuentry stanza for chainloading xen.efi?
Date: Mon, 30 Mar 2015 08:42:49 -0700

I'm booting Xen 4.5 on UEFI with GRUB2.

For now, that requires chainloading

I'm trying to get the menuentry root correct, and disk-position-independent.

My efi partition partition is mounted at '/boot/efi'

        grub2-probe --target=device /boot/efi
        mount | grep efi | grep ^/dev
                /dev/sdg2 on /boot/efi type vfat

that target dir/file on the efi partition I need to load is

        ls -al /boot/efi/EFI/XEN/xen.efi
                -rwxrwxr-x 1 root root 2.1M Mar 27 21:20 

Dropping to grub2 prompt on reboot, autocomplete finds only the lowercased-

        set root=(hd6,gpt2)/efi/xen/xen.efi

but does NOT find

        set root=(hd6,gpt2)/EFI/...

given the REAL path of


but the grub2-found path of


Which path should be used in a menuentry stanza?  lowercased, or not?

Next, (hd6,gpt2) this is disk-position-dependent

To get/use a permanent/immutable drive-specific root in grub2, is use of 
'' (as in grub-legacy) still the right approach?

It seems that in default/generated grub.cfg, *uuid-specified roots are used

For this system

        blkid /dev/sdg2
                /dev/sdg2: UUID="94C3-29F3" TYPE="vfat" PARTLABEL="EFI Sys 
Part" PARTUUID="8456ded4-2c33-53f2-8465-5c87757d9c0a" 
        find /dev/disk | egrep "94C3-29F3|8456ded4|EFI"

Given the above, how should the menuentry

        menuentry 'Xen' {
                insmod part_gpt gpt
                insmod diskfilter mdraid1x
                insmod ext2
                insmod search_fs_uuid
                insmod chain
                set root=(hd6,gpt2)
                chainloader /EFI/XEN/xen.efi

be edited so the lines

        set root=


        -- use a 'fixed', drive-specific UUID
        -- use the right case for grub2 chainloading



reply via email to

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