Add the 100-purge-grub-legacy-ec2-arm.chroot to ubuntu-cpc

sil2100/backport-datasource-raspi3
Łukasz 'sil2100' Zemczak 6 years ago
parent d2d07acf54
commit 770a7b4c85

3
debian/changelog vendored

@ -10,6 +10,9 @@ livecd-rootfs (2.525.13) UNRELEASED; urgency=medium
- Default to IMAGEFORMAT=ubuntu-image for raspi3 ubuntu-cpc builds.
- Link the resulting raspi3 image to a filename that cdimage expects from a
preinstalled image build.
* Add the 100-purge-grub-legacy-ec2-arm.chroot hook to remove
grub-legacy-ec2 from any ARM based ubuntu-cpc images we create. The package
is no longer in the server seed of newer series anyway.
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Fri, 11 Jan 2019 14:53:10 +0100

@ -0,0 +1,10 @@
#!/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
Loading…
Cancel
Save