From eb8d283358322805c569cee34c901b38413f29eb Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Fri, 23 Oct 2020 07:39:37 +0000 Subject: [PATCH] [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: 83ec693cc2c4b92b29cdee6f63b283655c2633df m X-original-commit: f486e61c36cb39b7b79faf018f5b8ac0448e284c m closes odoo/odoo#60655 Signed-off-by: pimodoo --- addons/point_of_sale/tools/posbox/configuration/upgrade.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/tools/posbox/configuration/upgrade.sh b/addons/point_of_sale/tools/posbox/configuration/upgrade.sh index a95722d8b54..ed3fd11a510 100755 --- a/addons/point_of_sale/tools/posbox/configuration/upgrade.sh +++ b/addons/point_of_sale/tools/posbox/configuration/upgrade.sh @@ -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/