Fix issue with Ubuntu grub pre-install step for ARM

The Ubuntu build for ARM breaks when the pre-install step attempts to remove
grub components. This change gates those package removals based on whether
they are currently installed.

Change-Id: Ie169dbf12213e69b3713b3b1f9a68ae224f9fd31
This commit is contained in:
Ripal Nathuji 2013-11-18 17:12:27 -06:00
parent 808735872d
commit 8f118af7d3

View File

@ -5,4 +5,10 @@
set -e
apt-get -y remove grub-pc grub2-common
if dpkg-query -W grub-pc; then
apt-get -y remove grub-pc
fi
if dpkg-query -W grub2-common; then
apt-get -y remove grub2-common
fi