From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VlhaQ-0007iJ-K3 for mharc-grub-devel@gnu.org; Wed, 27 Nov 2013 11:03:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlhaJ-0007bp-EC for grub-devel@gnu.org; Wed, 27 Nov 2013 11:03:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlhaD-0005gi-E8 for grub-devel@gnu.org; Wed, 27 Nov 2013 11:03:27 -0500 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:44566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlhaD-0005fn-4F for grub-devel@gnu.org; Wed, 27 Nov 2013 11:03:21 -0500 Received: by mail-ea0-f172.google.com with SMTP id q10so4867923ead.31 for ; Wed, 27 Nov 2013 08:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=7YozLIP5tpWDNSygI6qWMcFdaFErAazbNiFa2Na1Akk=; b=gQewBwLt5RH5tr0G6NkxqTc41HWLojurlkTauQOWs8nh84J9taevCEdQu96jH6cPMB u1xbTn81wJHNjS31qys98jux1nw7DL2t6Z+2KastfL8QpDmJBF/YOvIZbjqCGstjReWa AiiSYx5AoBUhshWmmQpYhImgt7dhBD4ImCQ2icBox7upMuBRzAZSIkBSM8OGfq722oXY DDutjI/STCzhnQx3E/KbsuHustk7qq5Y1hCviM9UevEOj1HcLd7VLK1s4jdt4oYqc/lg ZLt6i2qyX4uDs4rMnshiAr6WhWoBleAEOUsWFIJ1gNmXhYZ2y5Fud8DxXyF2hN7Iy6MF 12RQ== X-Received: by 10.14.0.72 with SMTP id 48mr2512121eea.50.1385568199245; Wed, 27 Nov 2013 08:03:19 -0800 (PST) Received: from [192.168.1.121] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id w6sm20878878eeo.12.2013.11.27.08.03.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 08:03:17 -0800 (PST) Message-ID: <529617B7.2020507@gmail.com> Date: Wed, 27 Nov 2013 17:03:03 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: Fabio Fantoni 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> In-Reply-To: <529616EA.4000504@m2r.biz> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2CCSMQNBJVLBDOEKEUUUF" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22c 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:03:33 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2CCSMQNBJVLBDOEKEUUUF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27.11.2013 16:59, Fabio Fantoni wrote: > Il 27/11/2013 12:50, Vladimir '=CF=86-coder/phcoder' Serbinenko ha scri= tto: >> On 27.11.2013 12:32, Fabio Fantoni wrote: >>> Il 26/11/2013 19:12, Andrey Borzenkov ha scritto: >>>> =D0=92 Tue, 26 Nov 2013 18:58:47 +0100 >>>> Fabio Fantoni =D0=BF=D0=B8=D1=88=D0=B5=D1=82= : >>>> >>>>> 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 i= t >>>>> 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 fou= nd >> its own memdisk and fell into recursion. I'm not sure what should be t= he >> proper way to solve this recursion. >=20 > 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 >=20 > that has the debian grub.cfg path equal to memdisk's grub, and then it > loads the memdisk ones indefinitely. >=20 > Anyone know how to exclude memdisk from the search please? >=20 > With this: > cat > boot/grub/grub.cfg < insmod lvm > insmod ext2 > insmod part_msdos > insmod part_gpt > root=3D'(xen/xvda,msdos1)' > configfile /boot/grub/grub.cfg > EOF >=20 > it loads correctly the Sid grub.cfg but grub fails to load with any > entry I select, that domU stop. >=20 > 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 >=20 > 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) >=20 No, this message indicates problem parsing domU image. Can you give the link to exact image you use? > If you need more tests/informations tell me and I'll post them. >=20 > Thanks for any reply. >=20 >>> 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 scre= en >>> 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 t= o >>>> pass arguments to grub on EFI, so this could share implementation. >>> >> >=20 >=20 ------enig2CCSMQNBJVLBDOEKEUUUF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKWF7cACgkQmBXlbbo5nOvxRwD7BxMm4J7+t1a8VC6Os2rJ1Fvn O6XzwkQqD2Ip4y+SgHAA/RJZAqgQiwHqB1W/JkCIT8oN12PMpSQD/6wkfTQtRElK =AD3W -----END PGP SIGNATURE----- ------enig2CCSMQNBJVLBDOEKEUUUF--