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

[FIX] point_of_sale: Fix issue for IoT upgrade


When we want to upgrade the IoT box to the lastest version
we need install kpartx to the third partition.
However the source are not up to date and we can't fetch
the package.

So we must update this partition before fetch the package

X-original-commit: 83ec693c

m

closes odoo/odoo#60638

Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
parent 18b5ad16
Branches
Tags
No related merge requests found
......@@ -108,6 +108,7 @@ copy_raspios () {
mkdir -v raspios
mount -v "${PART_RASPIOS_ROOT}" raspios
resize2fs "${PART_RASPIOS_ROOT}"
chroot raspios/ /bin/bash -c "sudo apt-get -y update"
chroot raspios/ /bin/bash -c "sudo apt-get -y install kpartx"
PATH_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cp -v "${PATH_DIR}"/upgrade.sh raspios/home/pi/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment