Is a custom kernel preserved after an upgrade of RancherOS is performed?
no, upgrade should also update the kernel.