From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LVvYJ-0008Eg-35 for mharc-grub-devel@gnu.org; Sat, 07 Feb 2009 17:21:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVvYG-0008Bs-Pp for grub-devel@gnu.org; Sat, 07 Feb 2009 17:21:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVvYE-000886-Sv for grub-devel@gnu.org; Sat, 07 Feb 2009 17:21:27 -0500 Received: from [199.232.76.173] (port=43024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVvYE-00087r-GE for grub-devel@gnu.org; Sat, 07 Feb 2009 17:21:26 -0500 Received: from aybabtu.com ([69.60.117.155]:59613) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LVvYE-00047Y-4a for grub-devel@gnu.org; Sat, 07 Feb 2009 17:21:26 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1LVvSx-0006DC-Or for grub-devel@gnu.org; Sat, 07 Feb 2009 23:16:00 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1LVvXg-0002C5-Bh for grub-devel@gnu.org; Sat, 07 Feb 2009 23:20:52 +0100 Date: Sat, 7 Feb 2009 23:20:52 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090207222052.GN6343@thorin> References: <4981D1D4.2080102@gmail.com> <4989853A.2020700@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4989853A.2020700@gmail.com> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Move BSD and multiboot boot helper out of the kernel to their respective modules 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: Sat, 07 Feb 2009 22:21:29 -0000 On Wed, Feb 04, 2009 at 01:08:26PM +0100, phcoder wrote: > Hello. On the IRC discussion it was said that removing call to > grub_dl_unload_all_modules isn't a good thing. I would like to discuss > this on the list > 1) Call to this functon is present only on i386-pc > 2) I would suggest an interface for preboot hooks if modules needs to do > something before booting > 3) If it's really needed to unload modules one could add a function > grub_dl_unload_all_modules_except (grub_dl_t *mod) > Then the module before booting kernel would call this function and after > it no external calls are allowed. > 4) Not being able to add a new kernel type by module alone is IMHO a > severe limitation to module infrastructure > Thanks Or perhaps we could avoid grub_dl_unload_all_modules altogether. For example, gfxterm might think that graphical mode needs to be disabled when it's unloaded, but the OS loader knows better. You could want to tell your OS about the framebuffer state so it can be used by it without glitches. The same would apply, for example, to stopping the floppy drive. Instead of waiting for the drive to tell us it has stopped, we could tell the OS it's still spinning if our loader knows how to do that (and the OS knows how to receive this information). -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."