[Top][All Lists]

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

Re: [Xen-devel] pvgrub2 is merged

From: Fabio Fantoni
Subject: Re: [Xen-devel] pvgrub2 is merged
Date: Thu, 05 Dec 2013 17:04:20 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

Il 05/12/2013 16:50, Vladimir 'φ-coder/phcoder' Serbinenko ha scritto:
On 29.11.2013 12:28, Fabio Fantoni wrote:
I updated git to commit 69ca97c820a623f85baf2db1627e19bef9c24e44 and the
regression persist.
I've just tested it here and it works perfectly. Are you sure you don't
have a typo in variable name?

The script for include the grub.cfg of domU works, was only my stupid error with cat, sorry.

Below the actual version of the script that works on many common cases.
Are there other modules to insert for other partitions
or file systems, other grub cfg path for other distributions or other
kernel type to search for that support xen pv domUs?
I think is good to make and post complete pvgrub2 cfg that support all pv domUs cases.

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
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

About the other problem of stop/crash on domU kernel/initrd without any errors (also with serial and debug enabled) the problem persist, I'll do further test tomorrow.

reply via email to

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