Commit cc704a2b authored by Mattia Rizzolo's avatar Mattia Rizzolo

pbuilder script: make arm64 case different, and add the libselinux1 needing for arm64 stuff

parent 16aa2606
...@@ -44,15 +44,22 @@ sett() { ...@@ -44,15 +44,22 @@ sett() {
;; ;;
esac esac
case $ARCH in case $ARCH in
armhf|armel|arm64) armhf|armel)
if [ "$ARCH" = "arm64" ] ; then dpkg -s "qemu-system-arm" > /dev/null 2>&1 || \
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 || \ dpkg -s "qemu-user-static" > /dev/null 2>&1 || \
sudo apt-get install qemu-user-static sudo apt-get install qemu-user-static
if [ "$TYPE" = "ubuntu" ] ; then
MIRROR="http://ports.ubuntu.com"
fi fi
OTHER+="--debootstrap qemu-debootstrap"
;;
arm64)
(dpkg --print-foreign-architecturs | grep arm64 > /dev/null 2>&1 && \
dpkg -s "libselinux1:arm64" > /dev/null 2>&1) || \
echo "Please enable arm64 foreign architeture in dpkg, and install \
libselinux1:arm64." && exit 1
dpkg -s "qemu-system-arm" > /dev/null 2>&1 || \
sudo apt-get install qemu-system-arm
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