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 12:50:56 +0100 Message-ID: <5295DCA0.2010805__49710.3162961595$1385553156$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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6459270251531646730==" Return-path: In-Reply-To: <5295D867.9050306@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) --===============6459270251531646730== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2THLVWTOCEQXKWLIICIHV" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2THLVWTOCEQXKWLIICIHV Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 suppo= rt >>> 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 >=20 > 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 >=20 > But it's not working and it prints this line indefinitely in loop: > error: no such device: /boot/grub2/grub.cfg. >=20 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. > I also tried with only these lines instead of conditions: > search -s root -f /boot/grub/grub.cfg > configfile /boot/grub/grub.cfg >=20 > But all I get is the line "Welcome to GRUB!" followed by a white screen= > on xl console. >=20 > I don't know what else to try :( >=20 > Thanks for any reply. >=20 >> >> 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. >=20 >=20 ------enig2THLVWTOCEQXKWLIICIHV 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/ iF4EAREKAAYFAlKV3KAACgkQmBXlbbo5nOsO2AD9EWVk1gxI98/Y5j6ZnIn3YdBG Tde2ATSaw42TSp1xRVkBAJ213056SAUh/YruIUST8De4+vbRD9AL/yGC4yQ1kOqX =z7IL -----END PGP SIGNATURE----- ------enig2THLVWTOCEQXKWLIICIHV-- --===============6459270251531646730== 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 --===============6459270251531646730==--