[PATCH v2 45/50] image: Split up boot_get_ramdisk()