[PATCH 02/16] bootstd: cros: Move partition reading into a function