Does the kernel get upgraded on first boot?
@tom-yan pretty much got it
I just ran into the same error with tun and found this post
The problem was this kernel package getting upgraded by apk upgrade:
linux-virt-6.12.46-r0 aarch64 {linux-lts} (GPL-2.0-only) [upgradable from: linux-virt-6.12.38-r0]
To get around this, I used --ignore for the apk upgrade command in my cloud-init script
I see in your cloud-init script you have this:
package_update: true
package_upgrade: true
package_reboot_if_required: true
Instead, in my cloud-init script I did this in the runcmd block:
runcmd:
# Update and upgrade packages (ignore kernel packages)
- apk update --force-refresh
- apk upgrade --ignore linux-lts linux-lts-headers