Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UaOKZ-00057z-PE for mharc-grub-devel@gnu.org; Thu, 09 May 2013 06:44:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaOKU-000560-JP for grub-devel@gnu.org; Thu, 09 May 2013 06:44:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaOKS-0004NJ-80 for grub-devel@gnu.org; Thu, 09 May 2013 06:44:06 -0400 Received: from mail-ee0-f42.google.com ([74.125.83.42]:52892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaOKS-0004NB-1M for grub-devel@gnu.org; Thu, 09 May 2013 06:44:04 -0400 Received: by mail-ee0-f42.google.com with SMTP id c13so1561211eek.29 for ; Thu, 09 May 2013 03:44:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent:x-gm-message-state; bh=WA+l9Cb7W5T30WAlb60pTUF0quPUv3M7IcVr7qMw2lY=; b=cInTXhrQmsOkFP5eKEGjlo9mz+dQqh+NpTszlfz2hBQhTI6Q2rwp+Ml3UmjpbcwSIC Kloslq0IN70orZj/p1x1iCnu4jJoiNdJzJGoTQJuqZnHAh+nHXzeGlxlnnAWuMemhk1W X5XMzyjOQRSGDxdB8Qv3Xo559OB7K2atYMXhdrVJQBSj0NzXIAUEJDKC+2M0zFv0PvIt bsNpLSJBJLMjLV+aAeaopdJz/dFI4qwYCJ9rU4vQ9xuxWF9HDs/flUVND7XdxsFpSEma ur6ib0qIiKF+q0pZDWSxGe2SHtsgeDh2SjPLK1Pq2PxcJTAjOy0BmwI8WqZC5fv/c39V kWOg== X-Received: by 10.14.205.194 with SMTP id j42mr27846153eeo.41.1368096242693; Thu, 09 May 2013 03:44:02 -0700 (PDT) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id t9sm3331726eeo.11.2013.05.09.03.44.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 03:44:01 -0700 (PDT) Date: Thu, 9 May 2013 10:44:35 +0000 From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH] fix grub-install efibootmgr presence test with --removable Message-ID: <20130509104434.GG28516@rocoto.smurfnet.nu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="UBnjLfzoMQYIXCvq" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Gm-Message-State: ALoCoQkMvMudBQmPLfl7leK2lTgal9ruQsMFDzrHarQaJhEQUZjESJh/LkSywOtjZWC0Sv7Yulr9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.42 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: Thu, 09 May 2013 10:44:09 -0000 --UBnjLfzoMQYIXCvq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline When executed for an EFI target, grub-install checks for the path of efibootmgr - however, this utility is not required (or used) when installing to a removable media (with --removable). However, since grub-install does "set -e", the absence of efibootmgr on the system causes the install script to exit with an error code, without any message, after a successful installation. (Found because I'm doing EFI builds on my chromebook.) Trivial patch attached. / Leif --UBnjLfzoMQYIXCvq Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="efibootmgr-check.patch" === modified file 'util/grub-install.in' --- util/grub-install.in 2013-04-29 10:26:43 +0000 +++ util/grub-install.in 2013-05-09 10:23:06 +0000 @@ -754,7 +754,7 @@ fi # Try to make this image bootable using the EFI Boot Manager, if available. - efibootmgr="`which efibootmgr`" + efibootmgr="`which efibootmgr`" || true if test "$removable" = no && test -n "$efi_distributor" && \ test -n "$efibootmgr"; then # On Linux, we need the efivars kernel modules. --UBnjLfzoMQYIXCvq--