]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
10_linux: Fix grouping of tests for GRUB_DEVICE
authorMike Gilbert <floppym@gentoo.org>
Sat, 5 Mar 2016 22:30:48 +0000 (17:30 -0500)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 6 Mar 2016 05:51:07 +0000 (08:51 +0300)
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

index 5a78513aeae0f6ad866c057564862bda7198a00c..de9044c7f28611d56358f581ac52ca2d2b7fc982 100644 (file)
@@ -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}