[arch-releng] Improve image detection on boot time