Remove hooks for containers
add binfmt-support as well
Bug: 363237196
Test: kokoro
Change-Id: I0a21bfcb6fb00c1ffb401baf800dc3b82dfe3bf9
diff --git a/build/debian/build.sh b/build/debian/build.sh
index 3d3820a..2177b17 100755
--- a/build/debian/build.sh
+++ b/build/debian/build.sh
@@ -37,6 +37,7 @@
apt update
DEBIAN_FRONTEND=noninteractive \
apt install --no-install-recommends --assume-yes \
+ binfmt-support \
ca-certificates \
debsums \
dosfstools \
@@ -49,10 +50,11 @@
python3-marshmallow \
python3-pytest \
python3-yaml \
+ qemu-system-arm \
+ qemu-user-static \
qemu-utils \
udev \
- qemu-system-arm \
- qemu-user-static
+
sed -i s/losetup\ -f/losetup\ -P\ -f/g /usr/sbin/fai-diskimage
sed -i 's/wget \$/wget -t 0 \$/g' /usr/share/debootstrap/functions