Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MfGP6-0005iw-8B for mharc-grub-devel@gnu.org; Sun, 23 Aug 2009 12:58:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfGP4-0005gB-6s for grub-devel@gnu.org; Sun, 23 Aug 2009 12:58:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfGOz-0005Xk-CP for grub-devel@gnu.org; Sun, 23 Aug 2009 12:58:49 -0400 Received: from [199.232.76.173] (port=34194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfGOz-0005XN-4A for grub-devel@gnu.org; Sun, 23 Aug 2009 12:58:45 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:46401) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfGOy-0007dC-LS for grub-devel@gnu.org; Sun, 23 Aug 2009 12:58:44 -0400 Received: by ewy7 with SMTP id 7so1832874ewy.31 for ; Sun, 23 Aug 2009 09:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/ZKQF7fdZg0ChWd4/lYx5K04p4ruQqKw/kqwY3Q3yfA=; b=STUFg9LX5a8PSgbaThZ0kbIGdxwIG2/NxdTYpRfDf6wADjDIocycNKk15lmtggLKSC jy22Og6XB/CXHK0pA5dhDB6hDIOiSv/+tNfQnWUxXa7orYyJqpq1kpogF4FxDz+JkZy0 Dy43U53sOb5R5S37sXns8pMdWktTqRraJP7GQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=uhIYmVc9tVevCa2HOP/tl96DtVxDKhG/O+Yrw4J3axNqTS6vTW9vXA8+zSwosZjh1b 7NVbUDP6mTVDO7mwhNeSbTfign4tr4AAKtz4deIKQwhsVXfdns8dHvRhDX4b/m05hevS xIyxfdYIpmkLuRssYSBXj0cR56yZOrkBExIvM= MIME-Version: 1.0 Received: by 10.210.142.6 with SMTP id p6mr3786245ebd.69.1251046723372; Sun, 23 Aug 2009 09:58:43 -0700 (PDT) In-Reply-To: <4A915ED2.1000500@gmail.com> References: <20090823125631.GB22272@thorin> <4A915ED2.1000500@gmail.com> Date: Sun, 23 Aug 2009 18:58:43 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Some ideas about new features of grub 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: Sun, 23 Aug 2009 16:58:50 -0000 >> But I know both Marco and Pavel feel strongly about this. =A0Please can = you >> comment? >> > > I am against a configure flag (if configure is the one from configure, ma= ke, > make install) but a configure flag (as something specified in grub.cfg) i= s > ok. Writing to filesystems is dangerous. Currently only grub-setup and save_env can potentially destroy data or metadata and this risk is minimised by just overwriting relevant sectors. Would you trust with your data to a write driver which hasn't been thoroughfully tested? I wouldn't. In current ro drivers we regularly find mistakes. Writing support makes driver more complex and so failure is more likely. Even a slightest mistake like putting entry in a wrong place in btree can have devastating effects (like OS not seeing half of the files). Writing files is only marginally needed for non-essential features which reduces the benefits and even decreases the chances of drivers to be tested enough. Currently grub2 does well what's supposed to do - boot OS. Making it write to FS makes it less reliable and worse at what its primary goal. How long is rw driver marked experimental in kernel? A year perhaps and it's more likely to be good tested because it 5 minutes of its use for root fs you do a lot of transactions. But grub, will you save grub.cfg 100 times at row? What are benefits? Saving environement? It's done with save_env. Only problem are checksumming FSes but 2 I'm aware about ZFS and btrfs reserve space for booter so we can embed config. Or just ask to disable checksumming on grubenv. THis can be done as a part of grubenv creation on such filesystems. Recovering OS? You should use recovery OS. You can put a kernel and initrd together with your grub for emergency cases. If grub survives disaster recovery kernel is likely to survive it too. Installing OS? You really need an installer Saving modifications done to configuration? It can be useful but it's done rarely enough to repeat it from OS if needed. Especially that grub would have trouble to modify config if script that generated is a bit more difficult than just array of menuentries I really don't want hundreds of reports "I wanted to save modified entry but grub destroyed my FS". --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git