mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
Update u-boot as well
This commit is contained in:
9
.github/workflows/smoke-tests.yml
vendored
9
.github/workflows/smoke-tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user