From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VlhvE-0008W7-GV for mharc-grub-devel@gnu.org; Wed, 27 Nov 2013 11:25:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlhv7-0008UN-GE for grub-devel@gnu.org; Wed, 27 Nov 2013 11:25:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vlhv1-0003pF-4l for grub-devel@gnu.org; Wed, 27 Nov 2013 11:24:57 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:36101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlhv0-0003p4-SC for grub-devel@gnu.org; Wed, 27 Nov 2013 11:24:51 -0500 Received: by mail-wg0-f48.google.com with SMTP id z12so6893056wgg.3 for ; Wed, 27 Nov 2013 08:24:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=bxx/jwZCwwL171apt80wAzSXLuALzX8n3AsFPI8Dld0=; b=R1B2citx4TEZKBrom3t24a9SULsyWTsoYbPvwfTlgijWQmjLYsGZPIsWBok7TlKFN5 oNhtVfCKUi2AUfSmo+ok3nMSADz18F0IaoynkOnGOinc+Pl8juxkGzdj99Pfx7irwXQI YpkqZnPpqgyRBxPVtM6+1/OlLkims0POBaH0x7TEYwx3VYDzETQbyLUHssypMjFUftek PAqywiE6qMDWxb5Ld1FSVVJEQNP39fqCMVvoUEUStNwRaDWy2cdsNuqb1MddVt5gpCE5 dn+OCFAQVhGRmQ7fv9qrHr9sKaKGlsENyf2Igtsqh/xgSKPV1V3dSXpqRBopZvyKiUcQ xWlg== X-Gm-Message-State: ALoCoQk/R2vg/8XL7joLDroTCUs01j/Q76cLmk2k3i5TyFP8NOjk3kNvKYJGJy7pcxtGqw1Q3vry X-Received: by 10.194.95.198 with SMTP id dm6mr3249555wjb.57.1385569489631; Wed, 27 Nov 2013 08:24:49 -0800 (PST) Received: from [192.168.1.26] (ip-73-126.sn2.eutelia.it. [83.211.73.126]) by mx.google.com with ESMTPSA id fu1sm72079902wib.8.2013.11.27.08.24.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 08:24:49 -0800 (PST) Message-ID: <52961CD5.1040009@m2r.biz> Date: Wed, 27 Nov 2013 17:24:53 +0100 From: Fabio Fantoni User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= Subject: Re: [Xen-devel] pvgrub2 is merged References: <527EA084.6000706@gmail.com> <20131110084753.540b0107@opensuse.site> <5283DD8F.5080103@gmail.com> <52850918.1040406@gmail.com> <52851D28.1090905@gmail.com> <52851D77.6060203@gmail.com> <5285440B.2040301@gmail.com> <5293733B.3090604@m2r.biz> <5294E157.90708@m2r.biz> <20131126221221.3fe316e3@opensuse.site> <5295D867.9050306@m2r.biz> <5295DCA0.2010805@gmail.com> <529616EA.4000504@m2r.biz> <529617B7.2020507@gmail.com> In-Reply-To: <529617B7.2020507@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.48 Cc: Andrey Borzenkov , The development of GNU GRUB , "xen-devel@lists.xen.org" , M A Young X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 16:25:03 -0000 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: >>> On 27.11.2013 12:32, Fabio Fantoni wrote: >>>> Il 26/11/2013 19:12, Andrey Borzenkov ha scritto: >>>>> В Tue, 26 Nov 2013 18:58:47 +0100 >>>>> Fabio Fantoni пишет: >>>>> >>>>>> I have also another question: >>>>>> Is possible specify multiple path where search the grub.cfg for >>>>>> support >>>>>> all mainly distributions and add a custom cfg path support taking it >>>>>> from arguments? >>>>>> >>>>> You can do something like >>>>> >>>>> if search --set root --file /boot/grub2/grub.cfg ; then >>>>> configfile /boot/grub2/grub.cfg >>>>> elif search --set root --file /boot/grub/grub.cfg ; then >>>>> configfile /boot/grub/grub.cfg >>>>> elif ... >>>>> ... >>>>> fi >>>> I tried with this: >>>> cat > boot/grub/grub.cfg <>>> insmod lvm >>>> insmod ext2 >>>> insmod part_msdos >>>> insmod part_gpt >>>> if search --set root --file /boot/grub2/grub.cfg ; then >>>> configfile /boot/grub2/grub.cfg >>>> elif search --set root --file /boot/grub/grub.cfg ; then >>>> configfile /boot/grub/grub.cfg >>>> fi >>>> EOF >>>> >>>> But it's not working and it prints this line indefinitely in loop: >>>> error: no such device: /boot/grub2/grub.cfg. >>>> >>> That pretty much explains what happened: you don't have any >>> /boot/grub2/grub.cfg and when looking for /boot/grub/grub.cfg GRUB found >>> its own memdisk and fell into recursion. I'm not sure what should be the >>> proper way to solve this recursion. >> Ok, now I understand with this: >> cat > boot/grub/grub.cfg <> insmod lvm >> insmod ext2 >> insmod part_msdos >> insmod part_gpt >> search -s root -f /boot/grub/grub.cfg >> configfile /boot/grub/grub.cfg >> EOF >> >> that has the debian grub.cfg path equal to memdisk's grub, and then it >> loads the memdisk ones indefinitely. >> >> Anyone know how to exclude memdisk from the search please? 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 -O x86_64-xen -d grub-core/ boot/grub/grub.cfg Is it hardcoded as /boot/grub/grub.cfg for grub memdisk or can be set? >> >> With this: >> cat > boot/grub/grub.cfg <> insmod lvm >> insmod ext2 >> insmod part_msdos >> insmod part_gpt >> root='(xen/xvda,msdos1)' >> configfile /boot/grub/grub.cfg >> EOF >> >> it loads correctly the Sid grub.cfg but grub fails to load with any >> entry I select, that domU stop. >> >> xl -vvv create -c /etc/xen/sid.cfg >> ... >> Caricamento Linux 3.11-1-amd64... >> error: not xen image. >> Caricamento ramdisk iniziale... >> xc: debug: hypercall buffer: total allocations:237 total releases:237 >> xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 >> xc: debug: hypercall buffer: cache current size:4 >> xc: debug: hypercall buffer: cache hits:226 misses:4 toobig:7 >> >> Maybe that grub is waiting for a dom0 configuration type (with also >> xen.gz) but find only kernel and ramdisk? (which is right for a domU) >> > No, this message indicates problem parsing domU image. Can you give the > link to exact image you use? The standard kernel image installed by debian installer, the package is this: http://packages.debian.org/sid/linux-image-3.11-2-amd64 On domU a previous version is installed but it was working and xen dom0/domU modules are included in this kernel image. >> If you need more tests/informations tell me and I'll post them. >> >> Thanks for any reply. >> >>>> I also tried with only these lines instead of conditions: >>>> search -s root -f /boot/grub/grub.cfg >>>> configfile /boot/grub/grub.cfg >>>> >>>> But all I get is the line "Welcome to GRUB!" followed by a white screen >>>> on xl console. >>>> >>>> I don't know what else to try :( >>>> >>>> Thanks for any reply. >>>> >>>>> If xen provides way to pass arguments to kernel, it sure could be >>>>> implemented as arguments to grub. Actually someone asked for a way to >>>>> pass arguments to grub on EFI, so this could share implementation. >> >