From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD2ek-0001Ac-DH for mharc-grub-devel@gnu.org; Thu, 30 Sep 2004 11:15:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD2eg-00018g-VY for grub-devel@gnu.org; Thu, 30 Sep 2004 11:15:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD2ed-00016w-TJ for grub-devel@gnu.org; Thu, 30 Sep 2004 11:15:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD2ed-00016h-HG for grub-devel@gnu.org; Thu, 30 Sep 2004 11:15:35 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD2Y7-0006w2-C7 for grub-devel@gnu.org; Thu, 30 Sep 2004 11:08:51 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id CA95A87BF for ; Thu, 30 Sep 2004 17:05:06 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 32022-03 for ; Thu, 30 Sep 2004 17:05:04 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id C39CC8833 for ; Thu, 30 Sep 2004 17:05:00 +0200 (CEST) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 272F3C047 for ; Thu, 30 Sep 2004 17:05:00 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <20040928190544.GA24852@artax.karlin.mff.cuni.cz> <200409291702.16894.okuji@enbug.org> <20040929213801.GC30478@artax.karlin.mff.cuni.cz> <200409301533.28151.okuji@enbug.org> From: Marco Gerards Date: Thu, 30 Sep 2004 15:05:10 +0000 In-Reply-To: <200409301533.28151.okuji@enbug.org> (Yoshinori K. Okuji's message of "Thu, 30 Sep 2004 15:33:28 +0200") Message-ID: <871xgjg5ll.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: Automagic command loading X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 15:15:40 -0000 "Yoshinori K. Okuji" writes: > On Wednesday 29 September 2004 23:38, Tomas Ebenlendr wrote: >> Disadvantage: current solution slowly reads the contens of directory. >> This is probably caused by opening files by /full/ path, where we >> principially have opened directory (and resolved path to it.). > > I think this is a critical problem. For example, if the user has a > broken module which may crash GRUB, the user can easily break GRUB by > trying a non-existent command. As far as I understood what Tomas said, the modules are loaded and only the new section is checked. So it will not be initialized. > Also, if my understanding is correct, the list of modules is stored in a > binary form. This means that the user cannot (easily) modify the list > after building GRUB. Every module contains the list of commands it exports, AFAIK. So the is no single big central list. > The advantage of autocmd.lst is that it makes customization much easier. > Suppose that the user wants to add a new command and build his own > module. Then, how to autoload this command? The new module will contain this specific section as well. -- Marco