[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 <pimodoo@users.noreply.github.com>
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user