| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] pvgrub2 is merged
 Il 29/11/2013 13:58, Fabio Fantoni ha scritto: Il 29/11/2013 12:41, Vladimir 'Ï-coder/phcoder' Serbinenko ha scritto:On 29.11.2013 12:28, Fabio Fantoni wrote:Il 28/11/2013 15:17, Fabio Fantoni ha scritto:I updated git to commit 69ca97c820a623f85baf2db1627e19bef9c24e44 and theIl 28/11/2013 15:05, Vladimir 'Ï-coder/phcoder' Serbinenko ha scritto:On 28.11.2013 14:07, Fabio Fantoni wrote:Ah I forgot: you need to "insmod xzio" since debian ones are compressed.Il 27/11/2013 18:35, Andrey Borzenkov ha scritto:Ð Wed, 27 Nov 2013 17:24:53 +0100 Fabio Fantoni <fabio.fantoni@xxxxxxx> ÐÐÑÐÑ:Il 27/11/2013 17:03, Vladimir 'Ï-coder/phcoder' Serbinenko ha scritto:On 27.11.2013 16:59, Fabio Fantoni wrote:Il 27/11/2013 12:50, Vladimir 'Ï-coder/phcoder' Serbinenko ha scritto:That pretty much explains what happened: you don't have any/boot/grub2/grub.cfg and when looking for /boot/grub/grub.cfg GRUBfoundits own memdisk and fell into recursion. I'm not sure what shouldbe the proper way to solve this recursion.Yes, it was a bit naive on my side. Recursion in principle can bestopped by using global variable, but search is limited to the firstmatch only anyway, so I guess it is not worth it.Anyone know how to exclude memdisk from the search please?Please look in grub2 sources at docs/osdetect.cfg. It implements advanced run-time detection of possible bootable files fromvarious operating systems. It boils down to loop across all devices, and of course you can either limit device names (like looking for hd*only) or explicitly exclude known ones (like memdisk).Is it possible to specify a different default grub.cfg path (different from all other distributions) changing this command:./grub-mkstandalone --grub-mkimage=./grub-mkimage -o pvgrub2.xen -Ox86_64-xen -d grub-core/ boot/grub/grub.cfg Is it hardcoded as /boot/grub/grub.cfg for grub memdisk or can be set?Not really. Currently the situation is - grub-mkstandalone hardcodes $prefix as (memdisk)/boot/grub- after launch grub unconditionally starts "normal" module if at all (Resent re-adding xen-devel and grub-devel) I have updated Sid domU today before retry with pvgrub2.Latest version of kernel and grub is installed, on attachment the grub.cfg of domU. If domU's grub.cfg is ok, what is git commit and details of your pvgrub2 build working? 
My actual build is:
git clone git://git.sv.gnu.org/grub.git
./autogen.sh
./configure --target=x86_64 --with-platform=xen
make
mkdir -p boot/grub/
cat > boot/grub/grub.cfg <<EOF
insmod lvm
insmod ext2
insmod part_msdos
insmod part_gpt
insmod btrfs
insmod xzio
insmod regexp
for dev in (*); do
    # $device: parenthesis removed from $dev
    regexp -s device '\((.*)\)' $dev
    set root=$device
    for file in /boot/vmlinuz-* /boot/linux-*; do
        if test -f $file; then
            set saved_root=$root
        fi
    done
done
set root=$saved_root
if test -f /boot/grub2/grub.cfg ; then
    configfile /boot/grub2/grub.cfg
elif test -f /boot/grub/grub.cfg ; then
    configfile /boot/grub/grub.cfg
fi
EOF
./grub-mkstandalone --grub-mkimage=./grub-mkimage -o pvgrub2.xen -O 
x86_64-xen -d grub-core/ boot/grub/grub.cfg
And I use Wheezy (debian 7) as dom0 with xen-unstable from git. If you need more tests/informations tell me and I'll post them. Thanks for any reply. Attachment:
grub.cfg _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |