Skip to content
Snippets Groups Projects
Commit 185eafee authored by lejeune quentin's avatar lejeune quentin
Browse files

[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
parent a76a576a
Branches
Tags
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment