Skip to content
Snippets Groups Projects
Commit 83ec693c 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

closes odoo/odoo#60591

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