From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LVwLF-0006Rn-5j for mharc-grub-devel@gnu.org; Sat, 07 Feb 2009 18:12:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVwLD-0006Qy-Gu for grub-devel@gnu.org; Sat, 07 Feb 2009 18:12:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVwLD-0006Ql-21 for grub-devel@gnu.org; Sat, 07 Feb 2009 18:12:03 -0500 Received: from [199.232.76.173] (port=52478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVwLC-0006Qi-V3 for grub-devel@gnu.org; Sat, 07 Feb 2009 18:12:03 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]:23079) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVwLC-0008Bk-F0 for grub-devel@gnu.org; Sat, 07 Feb 2009 18:12:02 -0500 Received: by fg-out-1718.google.com with SMTP id l27so890543fgb.30 for ; Sat, 07 Feb 2009 15:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hUmGaJTqR4nvyxNr+AKrK7l8NuHIWCgEQjldTrxhGnQ=; b=harJDQ+lnXqpShwqXnanZ6mljjLUFJCN65mNA4wHoa22YWTsG6TdtrGvfnXV6BlQAo 1hBLqAwK99Xwj0uj60GmEn54ElYnxcg0LcQvhacj6QSQR9+DeLxMqsxRvoI3PLxys1pm 97Um2aM165XWLukZb6Rr3UUZEUbnN/s+7Z/OA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=ATvPNnZh1EQ/T+hAAUtcumEx1j6YsLqTGVjCFtFBnDwavwfbGFLV1hzcSQOAf1wWON XAYQ61JtH8CvqJk/CBEf/oJJwzaW+8iGeMke1Q1bFwOApMStgdODMt8kPZGQzMZj0cBx vqYs+CpZ9v0+/NyXYekwr7Ls3iB1GdQ+gYV4k= Received: by 10.86.66.19 with SMTP id o19mr1640175fga.0.1234048321719; Sat, 07 Feb 2009 15:12:01 -0800 (PST) Received: from ?192.168.1.25? (27.67.202.62.cust.bluewin.ch [62.202.67.27]) by mx.google.com with ESMTPS id e11sm8373717fga.50.2009.02.07.15.12.01 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Feb 2009 15:12:01 -0800 (PST) Message-ID: <498E1540.3090808@gmail.com> Date: Sun, 08 Feb 2009 00:12:00 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 References: <4981D1D4.2080102@gmail.com> <4989853A.2020700@gmail.com> <20090207222052.GN6343@thorin> In-Reply-To: <20090207222052.GN6343@thorin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 23:12:03 -0000 I agree. Such workarounds take boot time and create situations when first action of kernel is to undo last action of booter. Sometimes it can't be avoided but if we can we should try. Also it adds some flexibility since last action of booter is performed in nice unix-like environment and kernel starts in "tabula rasa". An example is my system with widescreen. To init widescreen special commands specific to my framebuffer controller are necessary. So if grub2 sets it kernel can start in undistorted video mode. Thanks Vladimir 'phcoder' Serbinenko > 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). >