[go: up one dir, main page]

CN109002330A - A kind of method, device and equipment identifying UEFI OS startup item - Google Patents

A kind of method, device and equipment identifying UEFI OS startup item Download PDF

Info

Publication number
CN109002330A
CN109002330A CN201810846048.2A CN201810846048A CN109002330A CN 109002330 A CN109002330 A CN 109002330A CN 201810846048 A CN201810846048 A CN 201810846048A CN 109002330 A CN109002330 A CN 109002330A
Authority
CN
China
Prior art keywords
uefi
startup item
startup
path
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810846048.2A
Other languages
Chinese (zh)
Inventor
艾山彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810846048.2A priority Critical patent/CN109002330A/en
Publication of CN109002330A publication Critical patent/CN109002330A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method, apparatus, equipment and computer readable storage mediums for identifying UEFI OS startup item, it include: to traverse startup item in the starting device choice phase, the corresponding starting path of the startup item created when being stored in user installation UEFI OS is saved into UEFI OS path list;The starting path is saved to UEFI OS path list, target start file is searched for according to the UEFI OS path list;The UEFI OS startup item according to the target start document creation is identified, into BIOS system.Method, apparatus, equipment and computer readable storage medium provided by the present invention, can be under the different applications scenes such as replacement OS hard disk updating OS, can normal boot UEFI OS.

Description

一种识别UEFI OS启动项的方法、装置及设备A method, device and equipment for identifying UEFI OS startup items

技术领域technical field

本发明涉及计算机设计计算领域,特别是涉及一种识别UEFI OS启动项的方法、装置、设备以及计算机可读存储介质。The present invention relates to the field of computer design and calculation, in particular to a method, device, equipment and computer-readable storage medium for identifying UEFI OS startup items.

背景技术Background technique

BIOS(Basic Input Output System)是一组固化到计算机内主板上一个ROM芯片上的程序,它保存着计算机最重要的基本输入输出的程序、系统设置信息、开机后自检程序和系统自启动程序。BIOS担负着初始化硬件,检测硬件并最终引导操作系统的任务。BIOS (Basic Input Output System) is a set of programs that are solidified on a ROM chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, system setting information, self-test programs after power-on and system self-starting programs. . The BIOS is responsible for initializing the hardware, detecting the hardware and finally booting the operating system.

UEFI(Unified Extensible Firmware Interface)为统一可扩展固件接口,它是一种详细描述全新类型接口的标准,由UEFI联盟中的140多个技术公司共同组建。UEFI是适用于计算机的标准估计接口,旨在取代BIOS,提高软件互操作性,解决BIOS的局限性。目前BIOS已基本被UEFI取而代之,最新生产的计算机都在使用UEFI,使用UEFIOS也是趋势所在。UEFI (Unified Extensible Firmware Interface) is a unified extensible firmware interface. It is a standard that describes a new type of interface in detail. It was jointly established by more than 140 technology companies in the UEFI alliance. UEFI is a standard computing interface for computers, designed to replace BIOS, improve software interoperability, and address the limitations of BIOS. At present, BIOS has been basically replaced by UEFI. The latest computers are all using UEFI, and the use of UEFIOS is also the trend.

安装UEFI OS,不再需要主引导记录,不再需要活动分区,不需要任何工具,只要在硬盘分区中存在一个EFI启动程序即可,要识别已经安装UEFI OS,现有技术是通过在BIOS中添加OS启动文件路径,比如\\EFI\\Redhat\\grub.efi,BIOS根据路径创建相应OS的启动选项。这种方式在一个OS只对应一个路径文件的情况下是可行的,但是有的客户OS会同时创建两个路径,比如Centos,会同时创建\\EFI\\Centos\\shim.efi与\\EFI\\Redhat\\grub.efi,这种情况下BIOS将根据路径创建Centos Redhat两个启动项,但是只有一个是可引导的,会造成引导失败的情况。To install UEFI OS, master boot record is no longer needed, active partition is no longer needed, and no tools are needed, as long as there is an EFI boot program in the hard disk partition. To recognize that UEFI OS has been installed, the existing technology is to pass in the BIOS. Add the path of the OS startup file, such as \\EFI\\Redhat\\grub.efi, and the BIOS will create the corresponding OS startup options based on the path. This method is feasible when an OS only corresponds to one path file, but some customer OS will create two paths at the same time, such as Centos, which will create \\EFI\\Centos\\shim.efi and \\ at the same time EFI\\Redhat\\grub.efi, in this case, the BIOS will create two startup items for Centos Redhat according to the path, but only one is bootable, which will cause boot failure.

现有技术中在BIOS系统中添加UEFI OS路径,在客户数据中心在批量更新升级BIOS后无法引导,需要手动添加调整启动项或者重新部署OS。In the prior art, the UEFI OS path is added to the BIOS system, and the customer data center cannot boot after updating and upgrading the BIOS in batches, and needs to manually add and adjust startup items or redeploy the OS.

综上所述可以看出,如何在更新OS会在更换OS硬盘时,可以正常引导UEFI OS是目前有待解决的问题。From the above, it can be seen that how to boot the UEFI OS normally when the OS is updated and the OS hard disk is replaced is a problem to be solved at present.

发明内容Contents of the invention

本发明的目的是提供一种识别UEFI OS启动项的方法,以解决现有技术中在客户数据中心在批量更新升级BIOS后无法引导,需要手动添加调整启动项或者重新部署OS的问题。The purpose of the present invention is to provide a method for identifying UEFI OS startup items, to solve the problem in the prior art that customer data centers cannot boot after batch updating and upgrading BIOS, and need to manually add and adjust startup items or redeploy OS.

为解决上述技术问题,本发明提供一种识别UEFI OS启动项的方法,包括:在启动设备选择阶段遍历启动项,保存在用户安装UEFI OS时创建的启动项对应的启动路径保存至UEFI OS路径列表中;将所述启动路径保存至UEFI OS路径列表后,根据所述UEFI OS路径列表搜索目标启动文件;识别根据所述目标启动文件创建的UEFI OS启动项,进入BIOS系统。In order to solve the above-mentioned technical problems, the present invention provides a method for identifying UEFI OS boot items, including: traversing the boot items in the boot device selection phase, saving the boot path corresponding to the boot items created when the user installs the UEFI OS to the UEFI OS path In the list; after saving the startup path to the UEFI OS path list, search for the target startup file according to the UEFI OS path list; identify the UEFI OS startup item created according to the target startup file, and enter the BIOS system.

优选地,所述根据所述UEFI OS路径列表搜索目标启动文件后包括:判断当前的所述启动项是否存在与所述目标启动文件相同路径的启动项;若存在,则遍历当前的启动项,删除重复的启动项。Preferably, after searching the target startup file according to the UEFI OS path list, it includes: judging whether there is a startup item with the same path as the target startup file in the current startup item; if it exists, traversing the current startup item, Delete duplicate startup items.

优选地,所述判断当前的所述启动项是否存在与所述目标启动文件相同路径的启动项还包括:若当前的所述启动项中不存在与所述目标启动文件相同路径的启动项,则根据所述目标启动文件创建的UEFIOS启动项。Preferably, the judging whether there is a startup item with the same path as the target startup file in the current startup item further includes: if there is no startup item with the same path as the target startup file in the current startup item, Then the UEFIOS startup item created according to the target startup file.

优选地,所述进入BIOS系统后还包括:Preferably, after entering the BIOS system, it also includes:

当需要更新所述BIOS系统时,利用保存了用户安装UEFI OS时创建的启动项对应的启动路径的UEFI OS路径列表搜索所述目标启动文件,从而创建UEFI OS启动项,启动更新后BIOS系统。When the BIOS system needs to be updated, use the UEFI OS path list that stores the boot path corresponding to the boot item created when the user installs the UEFI OS to search for the target boot file, thereby creating the UEFI OS boot item, and start the updated BIOS system.

优选地,所述启动项包括启动顺序和启动路径。Preferably, the startup item includes a startup sequence and a startup path.

本发明还提供了一种识别UEFI OS启动项的装置,包括:The present invention also provides a device for identifying UEFI OS startup items, including:

保存模块,用于在启动设备选择阶段遍历启动项,保存在用户安装UEFI OS时创建的启动项对应的启动路径保存至UEFI OS路径列表中;The saving module is used for traversing the startup items during the startup device selection phase, and saving the startup path corresponding to the startup item created when the user installs the UEFI OS into the UEFI OS path list;

搜索模块,用于将所述启动路径保存至UEFI OS路径列表后后,根据所述UEFI OS路径列表搜索目标启动文件;A search module, configured to search for a target startup file according to the UEFI OS path list after saving the boot path to the UEFI OS path list;

识别模块,用于识别根据所述目标启动文件创建的UEFI OS启动项,进入BIOS系统。The identification module is used to identify the UEFI OS startup item created according to the target startup file, and enter the BIOS system.

优选地,所述保存模块后还包括判断模块,用于判断当前的所述启动项是否存在与所述目标启动文件相同路径的启动项;若存在,则遍历当前的启动项,删除重复的启动项。Preferably, after the saving module, a judging module is also included, which is used to judge whether there is a startup item with the same path as the target startup file in the current startup item; if it exists, traverse the current startup item and delete the duplicate startup item item.

优选地,所述判断模块具体用于:若当前的所述启动项中不存在与所述目标启动文件相同路径的启动项,则根据所述目标启动文件创建的UEFI OS启动项。Preferably, the judging module is specifically configured to: if there is no startup item with the same path as the target startup file among the current startup items, create a UEFI OS startup item according to the target startup file.

本发明还提供了一种识别UEFI OS启动项的设备,包括:The present invention also provides a device for identifying UEFI OS startup items, including:

存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述一种识别UEFI OS启动项的方法的步骤。The memory is used to store a computer program; the processor is used to implement the steps of the above method for identifying UEFI OS startup items when executing the computer program.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述一种识别UEFI OS启动项的方法的步骤。The present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for identifying UEFI OS startup items are implemented.

本发明所提供的识别UEFI OS启动项的方法,在启动设备选择阶段遍历启动项,识别用户在安装UEFI OS时创建的启动项;将用户在安装UEFI OS时创建的启动项保存至UEFIOS路径列表中后,根据所述UEFI OS路径列表搜索目标启动文件,从而识别所述目标启动文件创建的UEFI OS启动项,进入BIOS系统。本发明所提供的识别UEFIOS启动项的方法,根据用户UEFI OS创建的启动项,识别客户OS真正的启动路径;BIOS保存客户OS真正的启动路径至UEFI OS路径列表中,从而在更新OS或者更换OS硬盘等不同应用场景下,都可以正常引导UEFI OS。The method for identifying UEFI OS boot items provided by the present invention traverses the boot items in the boot device selection stage, identifies the boot items created by the user when installing the UEFI OS; saves the boot items created by the user when installing the UEFI OS to the UEFIOS path list After that, search for the target startup file according to the UEFI OS path list, thereby identifying the UEFI OS startup item created by the target startup file, and enter the BIOS system. The method for identifying UEFIOS boot items provided by the present invention identifies the real boot path of the client OS according to the boot items created by the UEFI OS of the user; the BIOS saves the real boot path of the client OS to the UEFI OS path list, thereby updating the OS or replacing In different application scenarios such as OS hard drives, UEFI OS can be booted normally.

附图说明Description of drawings

为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明所提供的识别UEFI OS启动项的方法的第一种具体实施例的流程图;Fig. 1 is the flow chart of the first specific embodiment of the method for identifying UEFI OS startup items provided by the present invention;

图2为本发明所提供的识别UEFI OS启动项的方法的第二种具体实施例的流程图;Fig. 2 is the flow chart of the second specific embodiment of the method for identifying UEFI OS startup items provided by the present invention;

图3为本发明实施例提供的一种识别UEFI OS启动项的装置的结构框图。FIG. 3 is a structural block diagram of an apparatus for identifying UEFI OS startup items provided by an embodiment of the present invention.

具体实施方式Detailed ways

本发明的核心是提供一种识别UEFI OS启动项的方法、装置、设备以及计算机可读存储介质,在更新OS会在更换OS硬盘等不同应用场景下,都可以正常引导UEFI OS。The core of the present invention is to provide a method, device, device, and computer-readable storage medium for identifying UEFI OS startup items, which can normally guide UEFI OS in different application scenarios such as updating the OS and replacing the OS hard disk.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参考图1,图1为本发明所提供的识别UEFI OS启动项的方法的第一种具体实施例的流程图;具体操作步骤如下:Please refer to Fig. 1, Fig. 1 is the flow chart of the first kind of specific embodiment of the method for identifying UEFI OS startup item provided by the present invention; Concrete operation steps are as follows:

步骤S101:在启动设备选择阶段遍历启动项,保存在用户安装UEFI OS时创建的启动项对应的启动路径保存至UEFI OS路径列表中;Step S101: traversing the startup items in the startup device selection stage, saving the startup path corresponding to the startup item created when the user installs the UEFI OS, and saving it in the UEFI OS path list;

在所述启动设备选择(BDS BOOT Device Select)阶段遍历启动项,识别客户OS创建的启动项;判定所述客户OS创建的启动项对应的启动路径不在UEFI OS路径列表中,则保存所述客户OS创建的启动项对应的启动路径到UEFI OS路径列表中。Traversing the boot items in the BDS BOOT Device Select stage, identifying the boot items created by the client OS; judging that the boot path corresponding to the boot items created by the client OS is not in the UEFI OS path list, then saving the client The boot path corresponding to the boot item created by the OS is added to the UEFI OS path list.

步骤S102:将所述启动路径保存至UEFI OS路径列表后,根据所述UEFI OS路径列表搜索目标启动文件;Step S102: After saving the startup path to the UEFI OS path list, search for the target startup file according to the UEFI OS path list;

步骤S103:识别根据所述目标启动文件创建的UEFI OS启动项,进入BIOS系统。Step S103: Identify the UEFI OS startup item created according to the target startup file, and enter the BIOS system.

根据保存所述启动路径后UEFI OS路径列表,搜索目标启动文件,以便识别所述目标启动文件创建的UEFI OS启动项,从而进入BIOS系统。Searching for the target startup file according to the UEFI OS path list after saving the startup path, so as to identify the UEFI OS startup item created by the target startup file, thereby entering the BIOS system.

在本实施例提供一种识别UEFI OS启动项的方法,BIOS中开始不存在任何UEFI OS路径,当用户安装UEFI OS时,UEFI OS会创建一个启动项BOOTXXXX,BIOS将根据这个启动项创建并保存这个OS路径,由于这些路径是客户OS创建的,一定是可引导的,就可以解决客户OS创建多种OS路径的问题。在客户更新BIOS时,BIOS将默认保留这些路径,这样既满足BIOS更新后依然能正常引导之前安装的OS要求,又可以规避BIOS中提前写入尽可能多的OS路径带来的弊端。In this embodiment, a method for identifying UEFI OS startup items is provided. There is no UEFI OS path at the beginning of the BIOS. When the user installs the UEFI OS, the UEFI OS will create a startup item BOOTXXXX, and the BIOS will create and save it according to this startup item. This OS path, since these paths are created by the client OS, must be bootable, which can solve the problem that the client OS creates multiple OS paths. When the customer updates the BIOS, the BIOS will reserve these paths by default, which not only meets the requirements of the OS installed before the BIOS update, but also avoids the disadvantages of writing as many OS paths as possible in advance in the BIOS.

在上述实施例的基础,在本实施例中,根据所述UEFI OS路径列表搜索目标启动文件:判断当前的所述启动项是否存在与所述目标启动文件相同路径的启动项;若存在,则遍历当前的启动项,删除重复的启动项后,在依据目标启动文件中的启动顺序进入BIOS系统中。请参考图2,图2为本发明所提供的识别UEFI OS启动项的方法的第二种具体实施例的流程图;具体操作步骤如下:On the basis of the above embodiments, in this embodiment, search for the target startup file according to the UEFI OS path list: determine whether the current startup item has a startup item with the same path as the target startup file; if it exists, then After traversing the current startup items and deleting duplicate startup items, enter the BIOS system according to the startup sequence in the target startup file. Please refer to Fig. 2, Fig. 2 is the flow chart of the second specific embodiment of the method for identifying UEFI OS startup items provided by the present invention; The specific operation steps are as follows:

步骤S201:在BDS阶段遍历启动项,保存在用户安装UEFI OS时创建的启动项对应的启动路径保存至UEFI OS路径列表中;Step S201: traversing the startup items in the BDS stage, saving the startup path corresponding to the startup item created when the user installs the UEFI OS, and saving it in the UEFI OS path list;

步骤S202:将保存所述启动路径的UEFI OS路径列表保存后,根据所述UEFI OS路径列表搜索目标启动文件;Step S202: After saving the UEFI OS path list for saving the boot path, search for the target boot file according to the UEFI OS path list;

步骤S203:判断当前的所述启动项是否存在与所述目标启动文件相同路径的启动项;Step S203: judging whether the current startup item has a startup item with the same path as the target startup file;

步骤S204:若存在,则遍历当前的启动项,删除重复的启动项;Step S204: If it exists, traverse the current startup items and delete duplicate startup items;

步骤S205:若当前的所述启动项中不存在与所述目标启动文件相同路径的启动项,则根据所述目标启动文件创建的UEFI OS启动项;Step S205: If there is no startup item with the same path as the target startup file among the current startup items, then create a UEFI OS startup item according to the target startup file;

步骤S206:识别根据所述目标启动文件创建的UEFI OS启动项,进入BIOS系统;Step S206: Identify the UEFI OS startup item created according to the target startup file, and enter the BIOS system;

步骤S207:当需要更新所述BIOS系统时,利用保存了用户安装UEFI OS时创建的启动项对应的启动路径的UEFI OS路径列表搜索所述目标启动文件,从而创建UEFI OS启动项,启动更新后BIOS系统。Step S207: When the BIOS system needs to be updated, use the UEFI OS path list that stores the boot path corresponding to the boot item created when the user installs the UEFI OS to search for the target boot file, thereby creating a UEFI OS boot item, and start the update BIOS system.

需要说明的是,本实施例所提供的方法,同样适用于使用其他方式更新BIOS时保留客户UEFI OS启动路径,比如通过BMC更新,更换坏件主板等。It should be noted that the method provided in this embodiment is also applicable to retaining the UEFI OS startup path of the client when updating the BIOS in other ways, such as updating through the BMC, replacing a defective motherboard, and the like.

在本实施例所提供的方法,利用UEFI OS创建的启动项,识别客户OS真正的启动路径,BIOS保留并根据这些启动路径,保证在更新OS或者更换OS硬盘等不同应用场景下,都能够正常引导UEFI OS。In the method provided in this embodiment, the startup items created by the UEFI OS are used to identify the real startup path of the client OS, and the BIOS retains and uses these startup paths to ensure that it can be used normally in different application scenarios such as updating the OS or replacing the OS hard disk. Boot UEFI OS.

请参考图3,图3为本发明实施例提供的一种识别UEFI OS启动项的装置的结构框图;具体装置可以包括:Please refer to FIG. 3. FIG. 3 is a structural block diagram of a device for identifying UEFI OS startup items provided by an embodiment of the present invention; the specific device may include:

保存模块100,用于在启动设备选择阶段遍历启动项,保存在用户安装UEFI OS时创建的启动项对应的启动路径保存至UEFI OS路径列表中;The saving module 100 is used to traverse the startup item in the boot device selection phase, and save the startup path corresponding to the startup item created when the user installs the UEFI OS into the UEFI OS path list;

搜索模块200,用于将保存所述启动路径的UEFI OS路径列表保存后,根据所述UEFI OS路径列表搜索目标启动文件;The search module 200 is configured to search for a target startup file according to the UEFI OS path list after saving the UEFI OS path list for saving the startup path;

识别模块300,用于识别根据所述目标启动文件创建的UEFI OS启动项,进入BIOS系统。The identifying module 300 is configured to identify the UEFI OS boot item created according to the target boot file, and enter the BIOS system.

本实施例的识别UEFI OS启动项的装置用于实现前述的识别UEFI OS启动项的方法,因此识别UEFI OS启动项的装置中的具体实施方式可见前文中的识别UEFI OS启动项的方法的实施例部分,例如,保存模块100,搜索模块200,识别模块300,分别用于实现上述识别UEFI OS启动项的方法中步骤S101,S102和S103,所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再赘述。The device for identifying UEFI OS boot items in this embodiment is used to implement the aforementioned method for identifying UEFI OS boot items, so the specific implementation of the device for identifying UEFI OS boot items can be seen in the implementation of the method for identifying UEFI OS boot items above. The example part, for example, the saving module 100, the searching module 200, and the identifying module 300 are respectively used to implement steps S101, S102, and S103 in the above-mentioned method for identifying UEFI OS startup items, so the specific implementation methods can be implemented with reference to corresponding parts The description of the example is omitted here.

本发明具体实施例还提供了一种识别UEFI OS启动项的设备,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述一种识别UEFI OS启动项的方法的步骤。The specific embodiment of the present invention also provides a device for identifying UEFI OS startup items, including: a memory for storing computer programs; a processor for implementing the above-mentioned method for identifying UEFI OS startup items when executing the computer program A step of.

本发明具体实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述一种识别UEFI OS启动项的方法的步骤。A specific embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method for identifying UEFI OS startup items is implemented. step.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上对本发明所提供的识别UEFI OS启动项的方法、装置、设备以及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method, device, device, and computer-readable storage medium for identifying UEFI OS startup items provided by the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of method for identifying UEFI OS startup item characterized by comprising
Startup item is traversed in the starting device choice phase, the startup item created when being stored in user installation UEFI OS is corresponding to be opened Dynamic path is saved into UEFI OS path list;
The starting path is saved to UEFI OS path list, target start is searched for according to the UEFI OS path list File;
The UEFI OS startup item according to the target start document creation is identified, into BIOS system.
2. the method as described in claim 1, which is characterized in that described to be opened according to UEFI OS path list search target Include: after dynamic file
The current startup item of judgement is with the presence or absence of the startup item with the target start file same paths;
If it exists, then current startup item is traversed, duplicate startup item is deleted.
3. method according to claim 2, which is characterized in that the current startup item of the judgement whether there is with it is described The startup item of target start file same paths further include:
If there is no the startup items with the target start file same paths in the current startup item, according to the mesh Mark the UEFI OS startup item of startup file creation.
4. the method as described in claim 1, which is characterized in that after the entrance BIOS system further include:
When needing to update the BIOS system, opened using the startup item created when saving user installation UEFI OS is corresponding The UEFI OS path list in dynamic path searches for the target start file, so that UEFI OS startup item is created, after starting updates BIOS system.
5. the method as described in claim 1, which is characterized in that the startup item includes boot sequence and starting path.
6. a kind of device for identifying UEFI OS startup item characterized by comprising
Preserving module, for traversing startup item in the starting device choice phase, what is created when being stored in user installation UEFI OS is opened The dynamic corresponding starting path of item is saved into UEFI OS path list;
Search module, for saving in the starting path to UEFI OS path list, according to the UEFI OS path column Table searches for target start file;
Identification module, for identification according to the UEFI OS startup item of the target start document creation, into BIOS system.
7. device as claimed in claim 6, which is characterized in that further include judgment module after the preserving module, for judging The current startup item is with the presence or absence of the startup item with the target start file same paths;If it exists, then traversal is current Startup item, delete duplicate startup item.
8. device as claimed in claim 7, which is characterized in that the judgment module is specifically used for:
If there is no the startup items with the target start file same paths in the current startup item, according to the mesh Mark the UEFI OS startup item of startup file creation.
9. a kind of equipment for identifying UEFI OS startup item characterized by comprising
Memory, for storing computer program;
Processor realizes a kind of identification UEFI as described in any one of claim 1 to 5 when for executing the computer program The step of method of OS startup item.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes a kind of identification UEFI OS as described in any one of claim 1 to 5 when the computer program is executed by processor The step of method of startup item.
CN201810846048.2A 2018-07-27 2018-07-27 A kind of method, device and equipment identifying UEFI OS startup item Pending CN109002330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810846048.2A CN109002330A (en) 2018-07-27 2018-07-27 A kind of method, device and equipment identifying UEFI OS startup item

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810846048.2A CN109002330A (en) 2018-07-27 2018-07-27 A kind of method, device and equipment identifying UEFI OS startup item

Publications (1)

Publication Number Publication Date
CN109002330A true CN109002330A (en) 2018-12-14

Family

ID=64598158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810846048.2A Pending CN109002330A (en) 2018-07-27 2018-07-27 A kind of method, device and equipment identifying UEFI OS startup item

Country Status (1)

Country Link
CN (1) CN109002330A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018856A (en) * 2019-04-03 2019-07-16 中电科技(北京)有限公司 The method that dynamic modifies UEFI boot sequence
CN110399168A (en) * 2019-07-12 2019-11-01 苏州浪潮智能科技有限公司 Majority according to disk storage server system start method, device and equipment
CN112130919A (en) * 2020-09-28 2020-12-25 山东超越数控电子股份有限公司 A fingerprint device adaptive method, computer and fingerprint device
CN112506741A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Communication method, device and equipment for BIOS and BMC in server boot process
CN113010217A (en) * 2021-03-18 2021-06-22 山东英信计算机技术有限公司 BIOS parameter setting method and device, electronic equipment and storage medium
CN113867743A (en) * 2021-09-29 2021-12-31 苏州浪潮智能科技有限公司 Method, device, electronic device and storage medium for loading and burning network operating system
CN114020339A (en) * 2021-11-01 2022-02-08 联想(北京)有限公司 BIOS starting method and device based on mobile disk and storage medium
WO2022228500A1 (en) * 2021-04-29 2022-11-03 山东英信计算机技术有限公司 Data storage method and apparatus for bios, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014170271A (en) * 2013-03-01 2014-09-18 Nec Corp Information processing device, initialization method, preprocessing method, and program
CN106155713A (en) * 2015-03-27 2016-11-23 联想(北京)有限公司 Start approaches to IM and device
CN106897063A (en) * 2017-02-22 2017-06-27 郑州云海信息技术有限公司 A kind of method and system being forever added to OS startup items based on EFI in BIOS
CN108287735A (en) * 2018-01-25 2018-07-17 郑州云海信息技术有限公司 A kind of method, apparatus and server obtaining UEFI OS startup items
CN108319470A (en) * 2018-03-07 2018-07-24 郑州云海信息技术有限公司 Create method, apparatus, equipment and the readable storage medium storing program for executing of OS startup items

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014170271A (en) * 2013-03-01 2014-09-18 Nec Corp Information processing device, initialization method, preprocessing method, and program
CN106155713A (en) * 2015-03-27 2016-11-23 联想(北京)有限公司 Start approaches to IM and device
CN106897063A (en) * 2017-02-22 2017-06-27 郑州云海信息技术有限公司 A kind of method and system being forever added to OS startup items based on EFI in BIOS
CN108287735A (en) * 2018-01-25 2018-07-17 郑州云海信息技术有限公司 A kind of method, apparatus and server obtaining UEFI OS startup items
CN108319470A (en) * 2018-03-07 2018-07-24 郑州云海信息技术有限公司 Create method, apparatus, equipment and the readable storage medium storing program for executing of OS startup items

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018856A (en) * 2019-04-03 2019-07-16 中电科技(北京)有限公司 The method that dynamic modifies UEFI boot sequence
CN110399168A (en) * 2019-07-12 2019-11-01 苏州浪潮智能科技有限公司 Majority according to disk storage server system start method, device and equipment
CN110399168B (en) * 2019-07-12 2022-05-24 苏州浪潮智能科技有限公司 System starting method, device and equipment for multiple data disk storage servers
CN112130919A (en) * 2020-09-28 2020-12-25 山东超越数控电子股份有限公司 A fingerprint device adaptive method, computer and fingerprint device
CN112506741A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Communication method, device and equipment for BIOS and BMC in server boot process
CN112506741B (en) * 2020-12-11 2023-03-10 浪潮电子信息产业股份有限公司 Communication method, device and equipment for BIOS and BMC in server boot process
CN113010217A (en) * 2021-03-18 2021-06-22 山东英信计算机技术有限公司 BIOS parameter setting method and device, electronic equipment and storage medium
CN113010217B (en) * 2021-03-18 2023-04-07 山东英信计算机技术有限公司 BIOS parameter setting method and device, electronic equipment and storage medium
WO2022228500A1 (en) * 2021-04-29 2022-11-03 山东英信计算机技术有限公司 Data storage method and apparatus for bios, device and storage medium
CN113867743A (en) * 2021-09-29 2021-12-31 苏州浪潮智能科技有限公司 Method, device, electronic device and storage medium for loading and burning network operating system
CN113867743B (en) * 2021-09-29 2023-11-14 苏州浪潮智能科技有限公司 Network operating system loading and burning method, device, electronic equipment and storage medium
CN114020339A (en) * 2021-11-01 2022-02-08 联想(北京)有限公司 BIOS starting method and device based on mobile disk and storage medium

Similar Documents

Publication Publication Date Title
CN109002330A (en) A kind of method, device and equipment identifying UEFI OS startup item
CN106227579B (en) Docker container construction method and Docker management console
US8423991B2 (en) Embedded network device and firmware upgrading method
JP7090657B2 (en) Methods, devices, devices and storage media for upgrading applications
US11144328B2 (en) System method to update failover process by running basic input/output (BIOS) system boot code from non-volatile memory express device (NVME)
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
CN110780890A (en) System upgrading method and device, electronic equipment and medium
US7934213B2 (en) Device driver rollback
US20200310779A1 (en) Validating a firmware compliance policy prior to use in a production system
CN104679540A (en) Computer system and computer system starting method
CN108287735A (en) A kind of method, apparatus and server obtaining UEFI OS startup items
CN110162429A (en) System repair, server and storage medium
CN108920212A (en) A kind of product starting method, system and associated component based on linux kernel
US10664598B1 (en) Firmware security patch deployment
CN112631621A (en) Dependency package management method, device, server and storage medium
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN113760306B (en) Method, device, electronic device and storage medium for installing software
US11416614B2 (en) Statistical detection of firmware-level compromises
CN113821219A (en) Method and system for realizing application program containerization
US11977559B2 (en) Providing instant and distributed access to a source blob via copy-on-read blobs and link blobs
US8892499B2 (en) Life cycle management of rule sets
CN116049207A (en) Application SQL script processing method and device, processor and electronic equipment
CN102591691B (en) Hard disk startup method and the os starting loading method based on BIOS
CN118796288A (en) Method, device, computer equipment and storage medium for performing hardware initialization operation
US11500646B1 (en) Tracking heterogeneous operating system installation status during a manufacturing process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181214