mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-07-23 06:41:36 +00:00
ARCH is not available in .chroot hooks so we need to get the architecture manually.
This commit is contained in:
parent
033bab8473
commit
dbdf9e4a00
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
||||
livecd-rootfs (2.525.14) UNRELEASED; urgency=medium
|
||||
|
||||
* More changes for raspi3 build support (LP: #1805668):
|
||||
- Fix 100-purge-grub-legacy-ec2-arm.chroot to not gate on ARCH as that's
|
||||
not defined in .chroot hooks.
|
||||
|
||||
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Fri, 18 Jan 2019 16:56:58 +0100
|
||||
|
||||
livecd-rootfs (2.525.13) bionic; urgency=medium
|
||||
|
||||
[ Balint Reczey ]
|
||||
|
@ -1,7 +1,10 @@
|
||||
#!/bin/sh -eux
|
||||
|
||||
# Only execute the hack for ARM images
|
||||
if [ "$ARCH" != "armhf" ] && [ "$ARCH" != "arm64" ]; then
|
||||
# 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user