[FIX ]point_of_sale: hardcode jessie in posbox scripts

Before this commit, the latest version of Raspbian was chosen.
It is not very helpful though as if something goes wrong, we don't on which part it is.

Also, fix python dependencies for the image
This commit is contained in:
Lucas Perais (lpe) 2017-11-15 14:38:08 +01:00
parent cf8577b9d0
commit f5004154a2
2 changed files with 4 additions and 3 deletions

View File

@ -17,8 +17,7 @@ export DEBIAN_FRONTEND=noninteractive
echo "nameserver 8.8.8.8" >> /etc/resolv.conf echo "nameserver 8.8.8.8" >> /etc/resolv.conf
apt-get update apt-get update && apt-get -y upgrade
apt-get -y dist-upgrade
# Do not be too fast to upgrade to more recent firmware and kernel than 4.38 # Do not be too fast to upgrade to more recent firmware and kernel than 4.38
# Firmware 4.44 seems to prevent the LED mechanism from working # Firmware 4.44 seems to prevent the LED mechanism from working
@ -39,6 +38,8 @@ rm -rf /usr/share/doc
pip install pyusb==1.0.0b1 pip install pyusb==1.0.0b1
pip install qrcode pip install qrcode
pip install evdev pip install evdev
pip install simplejson
pip install unittest2
# --upgrade because websocket_client in wheezy is bad: # --upgrade because websocket_client in wheezy is bad:
# https://github.com/docker/compose/issues/1288 # https://github.com/docker/compose/issues/1288

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
wget 'https://downloads.raspberrypi.org/raspbian_lite_latest' -O raspbian.img.zip wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/2017-07-05-raspbian-jessie-lite.zip' -O raspbian.img.zip
unzip raspbian.img.zip unzip raspbian.img.zip
wget 'https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.4.13-jessie' -O kernel-qemu wget 'https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.4.13-jessie' -O kernel-qemu