Newer versions of raspbian have a kernel8.img, which won't get removed when running the installation.
When installing an older version than buster, e.g. stretch incorrectly boots the 64bit kernel for buster.
This change makes sure that all kernel files are moved away before installing the kernel of the target version.
Newer versions of raspbian have a kernel8.img, which won't get removed when running the installation. When installing an older version than buster, e.g. stretch incorrectly boots the 64bit kernel for buster. This change makes sure that all kernel files are moved away before installing the kernel of the target version.