mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-13 14:27:09 +00:00
14 lines
383 B
Bash
Executable File
14 lines
383 B
Bash
Executable File
#!/bin/sh -eux
|
|
|
|
# Only execute the hack for ARM images
|
|
# ARCH is not available in .chroot hooks so we need to get the architecture
|
|
# manually.
|
|
arch=$(dpkg --print-architecture)
|
|
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
|