This logic seems a bit odd considering it is inside a block checking for /boot/vmlinuz