From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VldeC-0008R5-Gs for mharc-grub-devel@gnu.org; Wed, 27 Nov 2013 06:51:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlde4-0008Qo-QJ for grub-devel@gnu.org; Wed, 27 Nov 2013 06:51:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vlddz-0002yc-1J for grub-devel@gnu.org; Wed, 27 Nov 2013 06:51:04 -0500 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:57832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlddy-0002yV-Qv for grub-devel@gnu.org; Wed, 27 Nov 2013 06:50:58 -0500 Received: by mail-ea0-f181.google.com with SMTP id m10so4598682eaj.40 for ; Wed, 27 Nov 2013 03:50:57 -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=oNPIrUYzUL9BQbt/wJcU5KOx/wYHtUP0Z3kMl29i/6E=; b=JXD/fn6zhXo6wQuluYMrtsGxYY5Ox8yA3UMFWYmfGWL8ZGPEd8k2SDAMTJM3do6yc2 f2I8YZ3vaiHgUteUwt3MKHBIYkhr1bcQGremmdmTXjbe1a9DjNZIWko71nz6gHxZg7J7 xn9VEntmzCAnNKGMbVH9EezWN4LPb7Fbi699NS64N0pXrkEN1rmiQKYv432ixI+uSqj9 GkgTrG2GxY11eSLhgFetLXZ0Sxyspbf4V+p13zAqObGuum19fo9qLw0gk5Sj/Vr8CU6S gB6PByoUFHaeea/Peoqr8pAdHqQd065FvbqXGNGlm0AXROEQ0avqdtRhTUz0WBC4DgIq wVDQ== X-Received: by 10.15.107.196 with SMTP id cb44mr28041eeb.125.1385553057915; Wed, 27 Nov 2013 03:50:57 -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 w6sm18778170eeo.12.2013.11.27.03.50.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 03:50:56 -0800 (PST) Message-ID: <5295DCA0.2010805@gmail.com> Date: Wed, 27 Nov 2013 12:50:56 +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> In-Reply-To: <5295D867.9050306@m2r.biz> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2THLVWTOCEQXKWLIICIHV" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::235 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 11:51:10 -0000 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--