You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu-cpc/hooks/100-purge-grub-legacy-ec2-a...

11 lines
261 B

#!/bin/sh -eux
# Only execute the hack for ARM images
if [ "$ARCH" != "armhf" ] && [ "$ARCH" != "arm64" ]; then
exit 0
fi
export DEBIAN_FRONTEND=noninteractive
# Why is grub-legacy-ec2 even on the image?
apt-get remove --yes --purge grub-legacy-ec2 || true