From 467f4b90c81e60dd9ed8cafc7ed1a2a49512245f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 16 Jan 2022 22:03:04 +0100 Subject: [PATCH] Update u-boot as well --- .github/workflows/smoke-tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 27c0a82e..ac67dbf5 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -163,6 +163,15 @@ jobs: if: ${{ github.repository_owner == 'Armbian' && env.PROCEED == 'true' }} run: | + if [[ "$(dpkg --print-architecture)" == arm* ]]; then + echo "Update bootloader" + root_uuid=$(sed -e 's/^.*root=//' -e 's/ .*$//' < /proc/cmdline) + root_partition=$(blkid | tr -d '":' | grep "${root_uuid}" | awk '{print $1}') + root_partition_device="${root_partition::-2}" + [[ -f /usr/lib/u-boot/platform_install.sh ]] && source /usr/lib/u-boot/platform_install.sh && write_uboot_platform $DIR ${root_partition_device} + echo "Write u-boot to $root_partition_device with $root_uuid" "$(date +%R:%S)" + fi + ssh -o StrictHostKeyChecking=no root@${{ matrix.ip }} "apt-get -y update; apt-get -y -o Dpkg::Options::=\"--force-confold\" upgrade" - name: Reboot