Fix syntax error in GRUB_OPTS env var handling

Reference to ${GRUB_OPTS:""} in 'vm' element causes syntax error
if GRUB_OPTS is set. Fix by changing to ${GRUB_OPTS:-""}.

Change-Id: Iae3ee8b7c4064c92d0cfc1b5a8caa22e53d6d112
This commit is contained in:
Jonathan Brownell 2014-02-27 13:53:07 -08:00
parent 61d474f2cd
commit 2189b627de

View file

@ -79,7 +79,7 @@ function install_grub2 {
echo "Installing GRUB2..."
GRUB_OPTS=${GRUB_OPTS:""}
GRUB_OPTS=${GRUB_OPTS:-""}
# XXX: This is buggy:
# - --target=i386-pc is invalid for non-i386/amd64 architectures
# - and for UEFI too.