Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ho3f3-0000tt-5g for mharc-grub-devel@gnu.org; Tue, 15 May 2007 16:30:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ho3f2-0000sy-H1 for grub-devel@gnu.org; Tue, 15 May 2007 16:30:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ho3f1-0000sd-3R for grub-devel@gnu.org; Tue, 15 May 2007 16:30:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ho3f0-0000sa-TV for grub-devel@gnu.org; Tue, 15 May 2007 16:30:18 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ho3X6-0000DR-1i for grub-devel@gnu.org; Tue, 15 May 2007 16:22:08 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 3A9B63D19A101 for ; Wed, 16 May 2007 02:25:49 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id E92043D19A0FF for ; Wed, 16 May 2007 02:25:48 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Tue, 15 May 2007 22:22:06 +0200 User-Agent: KMail/1.9.4 References: <20070511160314.GA30111@aragorn> <20070511161134.GA30158@aragorn> <20070511162143.GA30863@aragorn> In-Reply-To: <20070511162143.GA30863@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705152222.06588.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.000360, version=0.17.2 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] grub-install for EFI 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: Tue, 15 May 2007 20:30:20 -0000 On Friday 11 May 2007 18:21, Robert Millan wrote: > On Fri, May 11, 2007 at 06:11:34PM +0200, Robert Millan wrote: > > One thing that I'm not sure about is the CLI inconsistency. Perhaps it > > shouldn't take the directory as a standalone parameter, and instead use > > --root-directory? > > Or perhaps it should do like powerpc and check that /boot/grub is a mount > point? > > # Find the partition at the right mount point. > install_device=`awk '$2 == '"\"$grubdir\""' { print $1 }' < /proc/mounts` > if test "x$install_device" = x; then > echo "$grubdir must be a mount point." > exit 1 > fi It is a bad idea to use /proc, at least without checking the operating system. This makes the script unportable among host operating systems. Okuji