[PATCH v2 23/31] bootmeth_efi: Simplify reading files by using the common function