[IMP] point_of_sale: Build IoT from new Raspberry Pi OS

We update the image to build the IoT from Raspbian to Raspberry Pi OS

X-original-commit: 185eafee904ec3812e838f57db16e83ccc5c91f9
This commit is contained in:
lejeune quentin
2020-10-23 13:19:45 +00:00
parent 66dca07144
commit 51ceeb178a
2 changed files with 4 additions and 6 deletions
@@ -20,8 +20,6 @@ echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
locale-gen
source ~/.bashrc
apt-mark hold firmware-brcm80211
# upgrade firmware-brcm80211 broke access point on rpi4
apt-get update && apt-get -y upgrade
# 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
@@ -32,12 +32,12 @@ VERSION=saas-13.4
VERSION_IOTBOX=20.06
REPO=https://github.com/odoo/odoo.git
if ! file_exists *raspbian*.img ; then
wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2020-02-07/2020-02-05-raspbian-buster-lite.zip' -O raspbian.img.zip
unzip raspbian.img.zip
if ! file_exists *raspios*.img ; then
wget 'http://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-08-24/2020-08-20-raspios-buster-armhf-lite.zip' -O raspios.img.zip
unzip raspios.img.zip
fi
RASPBIAN=$(echo *raspbian*.img)
RASPBIAN=$(echo *raspios*.img)
rsync -avh --progress "${RASPBIAN}" iotbox.img
CLONE_DIR="${OVERWRITE_FILES_BEFORE_INIT_DIR}/home/pi/odoo"