Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NODp5-0005rI-6h for mharc-grub-devel@gnu.org; Fri, 25 Dec 2009 12:19:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NODp2-0005p7-PO for grub-devel@gnu.org; Fri, 25 Dec 2009 12:19:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NODox-0005kG-Db for grub-devel@gnu.org; Fri, 25 Dec 2009 12:19:28 -0500 Received: from [199.232.76.173] (port=35942 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NODox-0005k4-5j for grub-devel@gnu.org; Fri, 25 Dec 2009 12:19:23 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:54631) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NODow-0003nr-K0 for grub-devel@gnu.org; Fri, 25 Dec 2009 12:19:22 -0500 Received: from [85.180.33.184] (e180033184.adsl.alicedsl.de [85.180.33.184]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0M53tq-1OC3JX1acY-00zOCQ; Fri, 25 Dec 2009 18:19:21 +0100 From: Felix Zielcke To: The development of GNU GRUB In-Reply-To: <20091224212832.GL12122@thorin> References: <2009-12-13T20-58-44@devnull.michael-prokop.at> <20091214115621.GH5847@riva.ucam.org> <20091224212832.GL12122@thorin> Content-Type: text/plain; charset="UTF-8" Date: Fri, 25 Dec 2009 18:19:20 +0100 Message-ID: <1261761560.3156.13.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.29.3.2 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+Tl3RdmdUIQKFwki09Vq/X2pAzm6LYPocVXT6 8cFgCviS1DltWBb5hJGhZENI22K0cPaNU/TLYbrq0qzI7PiMif +PCWHMaOl4tJhwaFgHY1w== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: execution of update-grub in chroots might fail X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Fri, 25 Dec 2009 17:19:29 -0000 Am Donnerstag, den 24.12.2009, 22:28 +0100 schrieb Robert Millan: > On Mon, Dec 14, 2009 at 11:56:21AM +0000, Colin Watson wrote: > > The simplest fix is to add '&& [ -e /boot/grub/grub.cfg ]' to the > test > > in memtest86+; > > Uhm should we make this check part of update-grub? Or even part of > grub-mkconfig? I don't think grub-mkconfig should check for that. And if it does then we should make it optional by adding something like --update as option to it. If people of other distributions compile GRUB 2 they should be able to just use grub-mkconfig directly to create their initial config without much hassle. > > that is, if the configuration file hasn't been generated > > already, it shouldn't be updated. (This check is in the memtest86+ > > postinst in Ubuntu.) This accounts for the OpenVZ problem as well as > for > > other reasons why GRUB might not actually be being used as a boot > > loader. > > > > You're right that it is suboptimal that every package has to > implement > > the check itself. My instinct is that the semantics of update-grub > ought > > to change slightly, so that it really is an *update* - that is, it > > shouldn't by default generate a configuration file if there isn't > one > > already. It could have a --force option (or better name?) for > > convenience, for use by the grub2 packaging itself, and for use by > the > > installer. Anything much more complex than that smells of > > overengineering to me. > > > > Note, though, that care would need to be taken to ensure that > > grub-installer is changed in step; it's important to minimise the > > chances of consequential installer brokenness. There's little > urgency on > > this so we could afford the time for a proper transition. For > example, > > update-grub could accept but ignore the new option for a while; > then, > > after the relevant version of grub2 has moved to testing, > grub-installer > > could be updated to use it; then, at some later point, the default > > semantics of update-grub could change. > > > > If that's too complicated, we could just add an --if-exists option > or > > something that does what memtest86+ and other similar packages need. > > There are very few packages in this boat, so it may not be worth > very > > much effort to deal with them. > > > > Robert, Felix, what do you think? > > I think it's fine to make this update conditional. My only concern is > that > external packages have a mechanism to add their stuff into grub.cfg > (this > was one of the key motivations for initial grub-mkconfig design). > In Debian at least they probable all rely that grub-pc etc. is installed first. If you have grub2 installed but no config then you probable don't want that e.g. memtest86+ suddenly creates it. -- Felix Zielcke Proud Debian Maintainer and GNU GRUB developer