Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NS7u2-0003NQ-1v for mharc-grub-devel@gnu.org; Tue, 05 Jan 2010 06:48:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NS7tw-0003JJ-JV for grub-devel@gnu.org; Tue, 05 Jan 2010 06:48:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NS7tr-0003EV-50 for grub-devel@gnu.org; Tue, 05 Jan 2010 06:48:39 -0500 Received: from [199.232.76.173] (port=36097 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NS7tq-0003EL-U5 for grub-devel@gnu.org; Tue, 05 Jan 2010 06:48:34 -0500 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:58056) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NS7tq-0002FI-Hb for grub-devel@gnu.org; Tue, 05 Jan 2010 06:48:34 -0500 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1NS7tl-0001Wh-Ue for grub-devel@gnu.org; Tue, 05 Jan 2010 11:48:32 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1NS7tc-0004w4-00; Tue, 05 Jan 2010 11:48:20 +0000 Date: Tue, 5 Jan 2010 11:48:20 +0000 From: Colin Watson To: The development of GNU GRUB Message-ID: <20100105114820.GF5847@riva.ucam.org> References: <4B295EF3.6050401@gmail.com> <20100105110855.GD5847@riva.ucam.org> <4B432383.10604@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4B432383.10604@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Problems with grub-reboot/savedefault/default=saved 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: Tue, 05 Jan 2010 11:48:41 -0000 On Tue, Jan 05, 2010 at 12:33:23PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Colin Watson wrote: > > I don't understand why /boot on LVM should mean that grubenv is not > > writable. The point of grubenv is to be a short chunk of contiguous > > reserved disk space which can be written by GRUB without needing any > > special filesystem intelligence. Surely LVM doesn't split up those 1024 > > bytes into different physical extents? > > Consider a RAID-1 (mirror). Currently GRUB2 uses only one disk of the > mirror. It may even be possible that second disk is inaccessible through > currently loaded drivers. But writing would need to update all copies. > And what to do if second disk isn't accessible? Same problem is present > in other RAID levels too. > ZFS and btrfs have checksums. If you update a block you have to update > its checksum too, and checksum of block containg checksum and so on. So > at the end of the day the whole is more complicated that what we wanted. > And a mistake in writing code may lead to corruption of unrelated data. I see. Perhaps in the short term we could have an extension to the test command to allow grub.cfg to determine whether grubenv is sanely writable? > IMO for long-term we need a better place for grubenv. I agree, although the question is where. If there were enough space in the embedding area then we could reserve a chunk of that, but aren't we generally pretty close to the limit there? -- Colin Watson [cjwatson@ubuntu.com]