[PATCH 27/34] bootmeth: Update the read_file() method to include a type