The present application relates to the technical field of
firmware booting, and particularly provides an automatic multi-path
booting method based on a configuration file, comprising the following steps: S1, when a UEFI
firmware is executed to a preset
callback point of a
booting device selection stage, a
callback function is executed, all accessed storage devices are enumerated in the
callback function, whether an
external storage medium conforming to a preset
file system format exists is detected, and whether a predefined configuration file exists is found by traversing a
root directory or a specified path of the medium; S2, if the configuration file is found, contents thereof are loaded to a memory buffer by a UEFI
file system protocol, and are terminated by a
null character; subsequently, a text structure of the configuration file is parsed according to a keyword, at least one booting strategy identifier and corresponding target booting parameters are extracted, and the present application can effectively solve the problems of backwardness, low efficiency, high operation cost and complex process of an existing UEFI pre-booting
interaction mode.