From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= Subject: Re: pvgrub2 is merged Date: Wed, 27 Nov 2013 17:03:03 +0100 Message-ID: <529617B7.2020507__42570.3692403205$1385568298$gmane$org@gmail.com> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8152147164212360840==" Return-path: In-Reply-To: <529616EA.4000504@m2r.biz> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Fabio Fantoni Cc: Andrey Borzenkov , The development of GNU GRUB , "xen-devel@lists.xen.org" , M A Young List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============8152147164212360840== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2CCSMQNBJVLBDOEKEUUUF" 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-- --===============8152147164212360840== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8152147164212360840==--