From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UA6Bv-00037c-97 for mharc-grub-devel@gnu.org; Mon, 25 Feb 2013 17:06:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA6Bs-00035u-Bd for grub-devel@gnu.org; Mon, 25 Feb 2013 17:06:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA6Bq-0003xy-8y for grub-devel@gnu.org; Mon, 25 Feb 2013 17:06:32 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:63278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA6Bq-0003xh-2G for grub-devel@gnu.org; Mon, 25 Feb 2013 17:06:30 -0500 Received: by mail-wi0-f178.google.com with SMTP id hq4so1211738wib.11 for ; Mon, 25 Feb 2013 14:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type; bh=9sgPdmY9X47wJYE5Wt5LbGux3MSk0xlHfKFaGlgtJgs=; b=NbcWUbaKu9ae8QiPwCZiizYJUUNJQQ8Kj10+53FCtmDZmHu9wJNCMXg0rO7XjIDgL5 /KivhV/rCFb90YW45iNcnwXByDoWJ85sXAqUFoE2jEOUUV3iQG0ddqvFP2Rg6nojwVYK yOAtGGREVBEd6Sc9RC9qS6ON+zrPE0v7b9aotNrR56MSJXl+fwSNEIxdjpD3Kx6C1kpB 6YX11AQqjL/3Mdb5+C9LhhxRkeJpuR5BPtrnHVgbbpqgWkjNh75VNBPNtZRcUHPTWzUB 1AVna2oQFYgA+NMd+yPa8yfkdhHGfaqThU7cYr75yTZAkW8PQ9qRNN3e10q71Vp9aR/J BgqA== X-Received: by 10.194.20.72 with SMTP id l8mr11865432wje.36.1361829989318; Mon, 25 Feb 2013 14:06:29 -0800 (PST) Received: from debian.x201.phnet ([217.193.148.98]) by mx.google.com with ESMTPS id ex1sm19539138wib.7.2013.02.25.14.06.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 14:06:28 -0800 (PST) Message-ID: <512BE05F.2030400@gmail.com> Date: Mon, 25 Feb 2013 23:06:23 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Add --memdisk parameter to grub-install References: <20130206174119.Horde.V_FoIpir309REtwPc6vEf6A@imap.linux.ibm.com> In-Reply-To: <20130206174119.Horde.V_FoIpir309REtwPc6vEf6A@imap.linux.ibm.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigAAB9A05E57DED6774174863D" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.212.178 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: Mon, 25 Feb 2013 22:06:34 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAAB9A05E57DED6774174863D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable >It works this way: >grub rescue> set >prefix=3D(mduuid/f897565f27383014091630e267aa4720)/grub >root=3Dmduuid/f897565f27383014091630e267aa4720 >grub rescue> set root=3Dmemdisk >grub rescue> set prefix=3D($root)/ >grub rescue> ls / >powerpc-ieee1275/ >grub rescue> insmod normal >grub rescue> normal If you have to type this then obviously patch isn't finished work. You need to point prefix to right point and have grub.cfg find and source the definite grub.cfg. You also need to include other files in memdisk like fonts and translations. Having multi-prefix (prefix=3Da:b:c) and helpers to load files from any of them is a possibility as long as it doesn't increase core size. Also you need to make a list of platforms which don't support this approach. Currently: Inherently: i386_pc Due to choice of memory map: i386_coreboot, i386_multiboot, i386_ieee1275, i386_qemu. This should also be extended to grub-mknetdir. It should also probably share more code with grub-mkstandalone. On 06.02.2013 23:41, Paulo Flabiano Smorigo/Brazil/IBM wrote: > -fi > +additional_options=3D > +if [ x"$config_opt_file" !=3D x ]; then > + additional_options=3D"-c \"${config_opt_file}\"" > +fi > +if [ x"$memdisk_img" !=3D x ]; then > + additional_options=3D"${additional_options} -m ${memdisk_img}" > +fi > + This breaks orribly in presence of whitespaces. --------------enigAAB9A05E57DED6774174863D 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.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAlEr4F8ACgkQNak7dOguQglrYQD/X8f4o53slhCQH6NCwjrc84Wl dWsrPTLO+2F3I7ORp+cA/Ako0U2ss2H9RZRhDjTBR8PY1aL4Wj63a5I8GrWKxak6 =oSB+ -----END PGP SIGNATURE----- --------------enigAAB9A05E57DED6774174863D--