20_linux_xen: fix test for GRUB_DEVICE
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 6 Mar 2016 05:54:19 +0000 (08:54 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 6 Mar 2016 05:54:19 +0000 (08:54 +0300)
Same fix as in 082bc9f.

util/grub.d/20_linux_xen.in

index 46045db..c48af94 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}