Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NKAB2-0007vD-7C for mharc-grub-devel@gnu.org; Mon, 14 Dec 2009 07:37:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKAB1-0007v0-91 for grub-devel@gnu.org; Mon, 14 Dec 2009 07:37:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKAAv-0007uM-Sa for grub-devel@gnu.org; Mon, 14 Dec 2009 07:37:21 -0500 Received: from [199.232.76.173] (port=53958 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKAAv-0007uJ-MZ for grub-devel@gnu.org; Mon, 14 Dec 2009 07:37:17 -0500 Received: from lo.gmane.org ([80.91.229.12]:53128) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKAAv-0004uz-6P for grub-devel@gnu.org; Mon, 14 Dec 2009 07:37:17 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NKAAs-000083-51 for grub-devel@gnu.org; Mon, 14 Dec 2009 13:37:14 +0100 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Dec 2009 13:37:14 +0100 Received: from mika by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Dec 2009 13:37:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: Michael Prokop Date: Mon, 14 Dec 2009 13:36:49 +0100 Organization: http://grml.org/ Message-ID: <2009-12-14T13-23-22@devnull.michael-prokop.at> References: <2009-12-13T20-58-44@devnull.michael-prokop.at> <20091214115621.GH5847@riva.ucam.org> <1260792691.2844.10.camel@fz.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mail.michael-prokop.at User-Agent: slrn/0.9.9 (Linux) Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: Mon, 14 Dec 2009 12:37:23 -0000 * Felix Zielcke wrote: > Am Montag, den 14.12.2009, 11:56 +0000 schrieb Colin Watson: >> On Sun, Dec 13, 2009 at 11:08:04PM +0100, Michael Prokop wrote: >> > For example postinst of memtest86+ uses: >> > if [ "$1" = "configure" ] && [ -x "`which update-grub2 >> 2>/dev/null`" ] ; then >> > update-grub2 >> > fi >> > which is the recommended and suggested way to install grub menu entries. >> Recommended where? (This implies the existence of documentation on the >> subject, which I wasn't aware of ...) > I wonder too why he wrote that. When I talked with him on IRC yesterday, > I mainly said that using `update-grub || true' would be wrong. And > neither me nor Robert (at leat until I was on IRC which was though later > then he wrote this mail) not at all anything that says there's a written > policy for interacting with GRUB things or even that the above thing is > the recommended and suggested way. Sorry, my fault for not being specific enough. I just meant update-grub itself, nothing else. I was refering to: 18:10:29< nyu> mika: it's intentional. it means add-on packages are free to run update-grub to plug their stuff in >> The simplest fix is to add '&& [ -e /boot/grub/grub.cfg ]' to the >> test in memtest86+; 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. Is the memtest86+ maintainer of Debian aware of this (at least temporary but working) solution or should I ping him? regards, -mika-