Commit 1d2ddbc9 authored by Mattia Rizzolo's avatar Mattia Rizzolo

pbuilder script: add a check to make sure the right qemu user mode emulation is installed

parent 2c1412b0
...@@ -45,6 +45,14 @@ sett() { ...@@ -45,6 +45,14 @@ sett() {
esac esac
case $ARCH in case $ARCH in
armhf|armel|arm64) armhf|armel|arm64)
if [ "$ARCH" = "arm64" ] ; then
dpkg -s "qemu-system-arm" > /dev/null 2>&1 || \
sudo apt-get install qemu-system-arm
else
dpkg -s "qemu-system-arm" > /dev/null 2>&1 || \
dpkg -s "qemu-user-static" > /dev/null 2>&1 || \
sudo apt-get install qemu-user-static
fi
if [ "$TYPE" = "ubuntu" ] ; then if [ "$TYPE" = "ubuntu" ] ; then
MIRROR="http://ports.ubuntu.com" MIRROR="http://ports.ubuntu.com"
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment