Received: from list by lists.gnu.org with archive (Exim 4.71) id 1acKiy-00079o-F4 for mharc-grub-devel@gnu.org; Sat, 05 Mar 2016 17:31:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acKix-00079h-2W for grub-devel@gnu.org; Sat, 05 Mar 2016 17:30:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acKit-00078p-12 for grub-devel@gnu.org; Sat, 05 Mar 2016 17:30:58 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:57556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acKis-00078k-RB for grub-devel@gnu.org; Sat, 05 Mar 2016 17:30:54 -0500 Received: from naomi.gilbertsystems.net (d192-24-229-26.try.wideopenwest.com [24.192.26.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 676F6340998 for ; Sat, 5 Mar 2016 22:30:51 +0000 (UTC) From: Mike Gilbert To: grub-devel@gnu.org Subject: [PATCH] [2.02] 10_linux: Fix grouping of tests for GRUB_DEVICE Date: Sat, 5 Mar 2016 17:30:48 -0500 Message-Id: <1457217048-30656-1-git-send-email-floppym@gentoo.org> X-Mailer: git-send-email 2.7.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 140.211.166.183 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: Sat, 05 Mar 2016 22:30:59 -0000 Commit 7290bb562 causes GRUB_DISABLE_LINUX_UUID to be ignored due to mixing of || and && operators. Add some parens to help with that. --- util/grub.d/10_linux.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 5a78513..de9044c 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -47,7 +47,7 @@ esac # and mounting btrfs requires user space scanning, so force UUID in this case. if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \ || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \ - || test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm; then + || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then LINUX_ROOT_DEVICE=${GRUB_DEVICE} else LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID} -- 2.7.2