Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Ys83F-0007zA-Dq for mharc-grub-devel@gnu.org; Tue, 12 May 2015 07:08:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys835-0007c1-IA for grub-devel@gnu.org; Tue, 12 May 2015 07:08:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys7w0-0006Yv-VY for grub-devel@gnu.org; Tue, 12 May 2015 07:01:18 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:35771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7w0-0006XJ-RT for grub-devel@gnu.org; Tue, 12 May 2015 07:01:12 -0400 Received: by obcus9 with SMTP id us9so2395451obc.2 for ; Tue, 12 May 2015 04:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Jix/FUYsEC7S7A5aDYLzwbnVKypL5BY8ywzsZuffeOA=; b=KYsR8nuv5TtAKK1MxezfOe8vHKWCVkvt8zCf1SNAsA68vtNfEHR3DBsd2HldoR7kAr Xr1/qE6GjxiAMKvkjn6U8/dKdMR1vfbQeeDTwT3byUi6vMKlUdnbRTCJpZiDHEkmBRUb xAQfyJUaucN+7J8cSPVMR10GEgocyjtZgbz9C6t4ei2Ea40PsvVcPYPynIEjjYjT0OMc Gcb1z/YFYncfCxLJJUXjnieJIYLe8hFipyj21rNCT4Jgk2bNcU4umILxHYoIYAV6LtC6 CJVej5iTsmdE0jCzM9yYMs1F/pMdtrt4ARyG/Q25mo1B+keKiDw1gufjnQUFtFRapRjS RP4A== X-Received: by 10.202.59.213 with SMTP id i204mr10789412oia.120.1431428472213; Tue, 12 May 2015 04:01:12 -0700 (PDT) Received: from linux-dsax.tai.apac.novell.com (nat.nue.novell.com. [195.135.221.2]) by mx.google.com with ESMTPSA id v83sm10735253oia.21.2015.05.12.04.01.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 May 2015 04:01:11 -0700 (PDT) Sender: =?UTF-8?B?5by15paH6I+v?= Date: Tue, 12 May 2015 18:52:22 +0800 From: Michael Chang To: The development of GNU GRUB Subject: Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS Message-ID: <20150512105222.GA7529@linux-dsax.tai.apac.novell.com> References: <1431111221-32399-1-git-send-email-arvidjaar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431111221-32399-1-git-send-email-arvidjaar@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::235 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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, 12 May 2015 11:08:37 -0000 On Fri, May 08, 2015 at 09:53:41PM +0300, Andrei Borzenkov wrote: > There are two main applications. > > 1. Omit install device to create generic image intended for chainloading > from other master loader. Such image can be put on any device (or file > system) and will still be able to find its $root. Currently even with > --no-bootsector grub-install optimizes image by skipping UUID search if > possible. > > 2. Redundant installation on multi-device filesystem, RAID or similar. > This allows both optimizing image w.r.t. to using --prefix vs. load.cfg > as well as creating image just once. I can only tell it to solve the problem of time wasting in copying modules and images creation due to multiple invocation of grub-install for doing redundency install. Beside that, do you foresee any other improvement it can provide? > > Patch allows transparently use none or multiple installation devices, > similar to > > grub_devices="/dev/sda /dev/sda1 /dev/sdb" It also looks to me that this patch can solve the problem of multiple device install with blocklists. Think about the user installs to mbr (sda) and partition (sda1) because he someshow wants the paritition to be chainload-able for resuce or for any of his own interests. If the user occasionally do. grub-install /dev/sda1 grub-install /dev/sda The chainload will fail for sda1 since later install to mbr replaces the core.img. You patch can avoid such pit-fall by doing it once. > grub-install $grub_devices What if one of the device failed, should it continue installing the rest or abort immediately ? Thanks, Michael