[PATCH 43/49] image: Reduce variable scope in boot_get_ramdisk()