Update u-boot as well

This commit is contained in:
Igor Pečovnik
2022-01-16 22:03:04 +01:00
committed by GitHub
parent 261f435fea
commit 467f4b90c8

View File

@@ -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