mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
We currently have a bug where we when we go to try a kernel snap revision that was booted, if it fails verification somehow in the initramfs, we decide to mount the old kernel snap even though we are running the new kernel snap. This is problematic for things like kernel modules and firmware which are not guaranteed to be compatible across kernel snap revisions. The correct thing to do, which this commit implements, is to request a reboot from the initramfs when we encounter this situation, as this will indicate to the bootloader that the boot of the new kernel snap failed and that it should rollback and boot the old kernel, in which case we will make the correct and obvious choice in the initramfs to mount/use the old kernel, which fixes the bug. We simulate the reboot in tests with a panic. Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
1.4 KiB
1.4 KiB