diff --git a/addons/point_of_sale/tools/posbox/overwrite_after_init/usr/lib/python3/v4l2.py.iotpatch b/addons/point_of_sale/tools/posbox/overwrite_after_init/usr/local/lib/python3.11/dist-packages/v4l2.py.iotpatch similarity index 100% rename from addons/point_of_sale/tools/posbox/overwrite_after_init/usr/lib/python3/v4l2.py.iotpatch rename to addons/point_of_sale/tools/posbox/overwrite_after_init/usr/local/lib/python3.11/dist-packages/v4l2.py.iotpatch diff --git a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh index ad3c49ef024..d076a1c3ecf 100755 --- a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh +++ b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh @@ -23,11 +23,10 @@ source ~/.bashrc apt-mark hold firmware-brcm80211 # Installations from the current Debian Bookworm (12.0) on amd64 systems are experiencing the problem that prevents # the kernel from being upgraded (e.g. when trying to upgrade to kernel linux-image-6.1.0-10-amd64) -rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware -apt purge raspi-firmware -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 +# so we need to remove apt upgrade + +# we need to downgrade libssl3 to 3.0.9-1 to avoid error during installing packages +apt -y --allow-downgrades install libssl3=3.0.9-1 # At the first start it is necessary to configure a password # This will be modified by a unique password on the first start of Odoo @@ -84,7 +83,6 @@ PKGS_TO_INSTALL=" python3-tz \ python3-urllib3 \ python3-werkzeug \ - python3-venv \ rsync \ screen \ swig \ @@ -126,10 +124,7 @@ PIP_TO_INSTALL=" rjsmin==1.1.0 \ websocket-client==1.6.3" -mkdir venv -python3 -m venv venv -venv/bin/pip3 install ${PIP_TO_INSTALL} -rsync -avrhp venv/lib/python3.11/site-packages/* /usr/lib/python3/dist-packages/ +pip3 install ${PIP_TO_INSTALL} --break-system-package # Dowload MPD server and library for Six terminals wget 'https://nightly.odoo.com/master/iotbox/eftdvs' -P /usr/local/bin/ diff --git a/addons/point_of_sale/tools/posbox/posbox_create_image.sh b/addons/point_of_sale/tools/posbox/posbox_create_image.sh index ddad8261012..3d90d460706 100755 --- a/addons/point_of_sale/tools/posbox/posbox_create_image.sh +++ b/addons/point_of_sale/tools/posbox/posbox_create_image.sh @@ -28,7 +28,7 @@ __base="$(basename ${__file} .sh)" MOUNT_POINT="${__dir}/root_mount" OVERWRITE_FILES_BEFORE_INIT_DIR="${__dir}/overwrite_before_init" OVERWRITE_FILES_AFTER_INIT_DIR="${__dir}/overwrite_after_init" -VERSION=16.0 +VERSION=17.0 VERSION_IOTBOX=23.11 REPO=https://github.com/odoo/odoo.git