[PATCH v2 02/12] cmd: bootefi: re-organize do_bootefi()