From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TQMC1-0001j3-UP for mharc-grub-devel@gnu.org; Mon, 22 Oct 2012 13:53:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQMBz-0001iR-O6 for grub-devel@gnu.org; Mon, 22 Oct 2012 13:53:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQMBy-0004oX-9O for grub-devel@gnu.org; Mon, 22 Oct 2012 13:53:35 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:53811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQMBy-0004oD-2k for grub-devel@gnu.org; Mon, 22 Oct 2012 13:53:34 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so1785538wgb.30 for ; Mon, 22 Oct 2012 10:53:32 -0700 (PDT) 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:subject:references :in-reply-to:x-enigmail-version:content-type; bh=/7sNSDArjZBocBGlPNexNusiJE+LBP4aBLyHRC8WUhM=; b=HYZ2+wdrbtj+xk2QAmDTHu+ZGQ//X3+a5OMEWSQeqg2uhkpNavAElYupiyWXFtVRLb PcLu2P+L35E8inoU/WNUYG68tgXJaPkeSTnlLR4yRviRzToYpwLHZLINAJDoGkNiGhIg Vl7UHVQQMN2uy+G/RI4YlCdkW3vbkXFJ3zyH/r7KSiN737JU4gzRTKKsOz1w+6hj98ow 7wIPwLdt/YDG4EfNyzVoIpHdC2iz5i9BaNjLUGtsfBmphrb+RS1YAMk2dygf1L+JNi+V aaQTd7JUBvqk1TAP5RTich4HwCTGCDAgGNWWtmTd8u0z407I9ebNN0rjeDVKfCfzKxTR KGow== Received: by 10.216.134.85 with SMTP id r63mr5424473wei.150.1350928412457; Mon, 22 Oct 2012 10:53:32 -0700 (PDT) Received: from debian.x201.phnet (12-101.79-83.cust.bluewin.ch. [83.79.101.12]) by mx.google.com with ESMTPS id v3sm23082727wiy.5.2012.10.22.10.53.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Oct 2012 10:53:31 -0700 (PDT) Message-ID: <5085880D.3020408@gmail.com> Date: Mon, 22 Oct 2012 19:53:17 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.9) Gecko/20121014 Icedove/10.0.9 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: for ppc, include all modules in the core image References: <20121016062854.Horde.IYLUrZir309QfTbmkvaCoBA@imap.linux.ibm.com> <508045A6.6040309@gmail.com> <20121022133017.Horde.UPexMZir309QhYKpIRXChBA@imap.linux.ibm.com> In-Reply-To: <20121022133017.Horde.UPexMZir309QhYKpIRXChBA@imap.linux.ibm.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigA76641C91A144A5A8922CCFA" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 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, 22 Oct 2012 17:53:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA76641C91A144A5A8922CCFA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 22.10.2012 19:30, Paulo Flabiano Smorigo/Brazil/IBM wrote: >=20 > Quoting Vladimir '=CF=86-coder/phcoder' Serbinenko := >=20 >> On 16.10.2012 12:28, Paulo Flabiano Smorigo/Brazil/IBM wrote: >> >>> Hi all! >>> >>> This patch implements the solution suggested by Gustavo Luiz Duarte >>> : >>> >>> Adding more modules to be built-in to the grub core ELF is easy. It i= s a >>> parameter passed by grub2-install to grub2-mkimage. However, there is= a >>> downside >>> on adding many modules to the core ELF: they are fully initialized in= >>> the grub's >>> first stage. It means you could hit a bug on a module you don't need = and >>> end up >>> with a non-bootable system. >>> >>> Another downside is that you wouldn't get updates for these built-in >>> modules, as >>> updating the grub2 package only updates the modules residing in /boot= >>> and not >>> the grub core ELF in the PReP partition. >>> >>> A proper solution would be to add to grub the ability of having built= -in >>> *inactive* modules which would be loaded and initialized only on dema= nd >>> (i.e. >>> explicitly calling the insmod command). >>> >> >> This is what memdisk does (i.a.). Why do you need anything else? >> >>> >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> >> --=20 >> Regards >> Vladimir '=CF=86-coder/phcoder' Serbinenko >=20 > Hi phcoder, >=20 > Thanks for the reply. I studied memdisk and tried to use grub-mkstandal= one > but the idea used in this patch is different. It's like a plan B just i= n > case /boot isn't found. It gives the "grub rescue" a new level of recov= ery, > increasing the chances to fix the system. This extra modules is stored = in a > different area and will *only* be used in this case. >=20 > Otherwise, the normal modules, inside /boot, will be used normally and = If > there is an update or if grub.cfg changes, the new files will be used. >=20 Can't you attain the same result with memdisk but not pointing root to it= ? This part is size-critical and we need a good reason to put new features.= > Best regards, --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigA76641C91A144A5A8922CCFA 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/ iF4EAREKAAYFAlCFiBUACgkQNak7dOguQglnKAD+Jo4Buolg3d4mNteuFaU/xYsX 67zbahj9zDw49wZ8N8IA/j9dpOd7n6EDZ7qK2M5K7f3uOMjlSJoEdf1RfCrrJe9H =aPmj -----END PGP SIGNATURE----- --------------enigA76641C91A144A5A8922CCFA--