CN113254033B - Method and device for generating master disc file, electronic equipment and storage medium - Google Patents

Method and device for generating master disc file, electronic equipment and storage medium Download PDF

Info

Publication number
CN113254033B
CN113254033B CN202110593337.8A CN202110593337A CN113254033B CN 113254033 B CN113254033 B CN 113254033B CN 202110593337 A CN202110593337 A CN 202110593337A CN 113254033 B CN113254033 B CN 113254033B
Authority
CN
China
Prior art keywords
file
software
target
information
files
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.)
Active
Application number
CN202110593337.8A
Other languages
Chinese (zh)
Other versions
CN113254033A (en
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202110593337.8A priority Critical patent/CN113254033B/en
Publication of CN113254033A publication Critical patent/CN113254033A/en
Application granted granted Critical
Publication of CN113254033B publication Critical patent/CN113254033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a method, a device, an electronic device and a computer readable storage medium for generating a master file, wherein the method comprises the following steps: acquiring task information; the task information comprises model information, system information and software information; screening a plurality of preset files by utilizing system information to obtain a target system file and a corresponding system configuration file; screening a plurality of preset files by using the software information to obtain a target software file and a corresponding software configuration file; determining target equipment according to the model information, and configuring the target equipment by utilizing a target system file and a target software file based on the system configuration file and the software configuration file; mirror image export processing is carried out on target equipment to obtain a master disc file; the method can be used for efficiently and accurately completing system configuration and generating reliable master disc files without manually configuring the system and exporting the master disc.

Description

Method and device for generating master disc file, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for generating a master disc file, a device for generating a master disc file, an electronic device, and a computer readable storage medium.
Background
For servers and computer products, when used in specific industries, factory settings are usually required according to user requirements, so that the server and the computer products are provided with customized operating systems and built-in software when leaving the factory. Because operating system models are more, operating system models with different architectures and versions are different, and equipment models and software types are numerous, the number of combinations is huge. When a large number of equipment leaves a factory, a customized system master disc is generally used for installing an operating system and software in a canning mode, namely, the operating system and the software meeting the requirements are manually installed and configured on the equipment with the corresponding model, and after the configuration is completed, a current system mirror image is derived from the equipment and used as the master disc correspondingly configured to the current requirements. However, the same master disc can only be configured in one combination, and when the combination of the device model, the system type and the software type is changed, the new master disc needs to be generated by reusing the mode, so that the manual configuration mode is low in efficiency and easy to generate errors.
Therefore, the problem of low efficiency and high error rate of generating the master file in the related art is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a master file generation method, a master file generation device, an electronic device, and a computer-readable storage medium, which can efficiently and accurately complete system configuration and generate a reliable master file without manually configuring a system and exporting a master.
In order to solve the technical problems, the application provides a method for generating a master disc file, which comprises the following steps:
acquiring task information; the task information comprises model information, system information and software information;
screening a plurality of preset files by utilizing the system information to obtain a target system file and a corresponding system configuration file;
screening a plurality of preset files by utilizing the software information to obtain a target software file and a corresponding software configuration file;
determining target equipment according to the model information, and configuring the target equipment by utilizing the target system file and the target software file based on the system configuration file and the software configuration file;
and carrying out mirror image export processing on the target equipment to obtain a master disc file.
Optionally, the screening the plurality of preset files by using the system information to obtain a target system file and a system configuration file includes:
Determining the target system file from a plurality of preset system files by utilizing the system information;
and screening a plurality of preset system configuration files corresponding to the target system file by using the model information to obtain the system configuration files.
Optionally, the screening the plurality of preset files by using the software information to obtain a target software file and a software configuration file includes:
determining a plurality of target software files from a plurality of preset software files by utilizing the software information;
and screening a plurality of preset software configuration files corresponding to the target software files respectively by using the model information to obtain the system configuration files corresponding to the target software files respectively.
Optionally, the configuring the target device with the target system file and the target software file based on the system configuration file and the software configuration file includes:
performing system installation on the target equipment by using the target system file, and performing system configuration by using the system configuration file after the system installation is completed;
and after the system configuration is finished, performing software installation on the target equipment by using the target software file, and performing software configuration by using the corresponding software configuration file after the software installation is finished.
Optionally, the software installing the target device by using the target software file, and performing software configuration by using the corresponding software configuration file after the software is installed, including:
determining installation configuration dependency relations among the target software files;
dividing the target software file and the software configuration file based on the installation configuration dependency relationship to obtain a plurality of groups of software files;
and performing software installation by sequentially utilizing the target software files in each group of the software files according to the installation configuration dependency relationship, and performing software configuration by utilizing the software configuration files in each group of the software files.
Optionally, the task information further includes master disc information, and the performing mirror image export processing on the target device to obtain a master disc file includes:
performing initial mirror image export processing on the target equipment to obtain an initial master disc file;
and setting the initial master disc file based on the master disc information to obtain the master disc file.
Optionally, the task information further includes detection information, and the performing image export processing on the target device to obtain a master disc file includes:
Performing initial mirror image export processing on the target equipment to obtain an initial master disc file;
determining initial detection equipment with the same model as the target equipment, and performing system filling on the initial detection equipment by utilizing the initial master disc file to obtain the target detection equipment;
and carrying out system detection on the target detection equipment based on the detection information, and determining the initial master disc file as the master disc file after the system detection is passed.
The application also provides a device for generating the master disc file, which comprises the following steps:
the acquisition module is used for acquiring task information; the task information comprises model information, system information and software information;
the first file determining module is used for screening a plurality of preset files by utilizing the system information to obtain a target system file and a corresponding system configuration file;
the second file determining module is used for screening a plurality of preset files by utilizing the software information to obtain a target software file and a corresponding software configuration file;
the configuration module is used for determining target equipment according to the model information, and configuring the target equipment by utilizing the target system file and the target software file based on the system configuration file and the software configuration file;
And the export module is used for carrying out mirror image export processing on the target equipment to obtain a master disc file.
The application also provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the above-mentioned method for generating a master disc file.
The application also provides a computer readable storage medium for storing a computer program, wherein the computer program realizes the method for generating the master disc file when being executed by a processor.
The method for generating the master disc file acquires task information; the task information comprises model information, system information and software information; screening a plurality of preset files by utilizing system information to obtain a target system file and a corresponding system configuration file; screening a plurality of preset files by using the software information to obtain a target software file and a corresponding software configuration file; determining target equipment according to the model information, and configuring the target equipment by utilizing a target system file and a target software file based on the system configuration file and the software configuration file; and carrying out mirror image export processing on the target equipment to obtain the master disc file.
Therefore, after the task information is acquired, the method can screen and obtain the corresponding target system file and the corresponding system configuration file from a plurality of preset files according to the system information, and meanwhile, the target software file and the software configuration file are obtained by utilizing the software information. The model information may indicate a model to which the generated master disc file is applicable, and may select a target device by using the model information, and configure the target device by using the target system file and the target software file based on the system configuration file and the software configuration file, so that the target device has a system corresponding to the master disc file. And exporting the system image on the target device through image export processing, so that a master disc file can be obtained, and the generation of the master disc file is completed. The target equipment corresponding to various machine type information is provided for system configuration by presetting a plurality of preset files, wherein the preset files comprise target system files, system configuration files, target software files and software configuration files required by system configuration. By configuring the target device by utilizing the system file and the software file according to the corresponding configuration file, the system can be configured and the master disk can be exported without manual operation, the system configuration can be efficiently and accurately completed, the reliable master disk file can be generated, and the problems of lower master disk file generation efficiency and higher error rate in the related technology are solved.
In addition, the application also provides a master disc file generating device, electronic equipment and a computer readable storage medium, and the master disc file generating device and the electronic equipment have the same beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the provided drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of a method for generating a master file according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a customized mastering system according to an embodiment of the present application;
FIG. 3 is a flowchart of a specific method for generating a master file according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a master file generating device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating a master file according to an embodiment of the present application. The method comprises the following steps:
s101: task information is acquired.
The task information refers to basic information for controlling generation of a master file, and can specify which type of system and those software are deployed on which type of device. The task information includes model information, system information, and software information. The model information is used for describing the model of the electronic equipment (such as a server or a computer) suitable for the master disc file, the system information is used for describing the type of a system which needs to be configured for the electronic equipment, and the software information is used for describing the type of software which needs to be deployed on the electronic equipment. It will be appreciated that a system may be deployed on an electronic device, and one or more software may be deployed, so that the system information in each task information corresponds to one type of system, and the software information may correspond to one or more different software.
In this embodiment, a task list may be set, and the task list may use a first-in first-out mode, or may use a priority-based ordering mode. The task list is used to store task information waiting to be processed, i.e., candidate information. Each time task information is acquired, one or more candidate information may be acquired from the task list as task information and processed.
S102: and screening the plurality of preset files by utilizing the system information to obtain a target system file and a corresponding system configuration file.
The preset file refers to a plurality of system files, software files and configuration files corresponding to the system files and the software files, which are stored locally or at the cloud. The preset file covers any system files and software files that the electronic device may be configured to, so any desired system and software may be configured for the electronic device based on the preset file. The system file refers to a file for installing an operating system, for example, an operating system installation package file, and the type of the operating system is not limited, for example, the operating system can be a domestic operating system (such as a Loongson operating system and a Feiteng operating system) adapted to various domestic platform servers or computers. The software file refers to a file for installing software, for example, is a software installation package file, and a specific type of the software is not limited, and may be, for example, specific-disk management software, operation monitoring software, cloud desktop client software, and the like.
After the task information is obtained, the task information is analyzed, and the system information can be obtained. The system information indicates the type of system that the electronic device needs to configure, so that the preset file can be screened by using the system information, a target system file matched with the system information can be selected from the preset file, and a system configuration file for performing system configuration when the system is installed by using the target system file or after the system is installed. The system information may exist in a variety of forms, such as a form that may be referred to by a system name, such as "system-server version", "system-desktop version" and the like. Since the systems of the same name may also have different versions, in order to accurately designate the target system file, the system information may be represented by a system version number, for example, "a system V1.0.0".
For the same system, there may be a fixed configuration or multiple different configurations, so for a target system file there may be one or more candidate configuration files corresponding thereto. In this case, there may also be information for specifying a system profile or a specific configuration manner in the system information, from which the system profile may be determined from among a plurality of candidate profiles. In another embodiment, the configuration manner of the same system on different types of electronic devices is different, in which case, S102 may specifically include the following steps:
step 11: and determining the target system file from a plurality of preset system files by utilizing the system information.
Step 12: and screening a plurality of preset system configuration files corresponding to the target system file by using the model information to obtain the system configuration files.
In this embodiment, the preset files include preset system files, and the system information is used to select a target system file from among the preset system files. After determining the target system file, the model information may be used to determine a corresponding system configuration file from a plurality of preset system configuration files corresponding to the target system file. The system configuration file obtained by screening the model information can correctly configure the system installed by using the target system file on the electronic equipment appointed by the model information, so that the configured system can normally run on the electronic equipment.
S103: and screening the plurality of preset files by utilizing the software information to obtain a target software file and a corresponding software configuration file.
The software information indicates the type of software that needs to be installed on the electronic device, which may specify one or more software. Similar to the target system file and the system configuration file, after the software information is utilized to screen the preset file, a plurality of corresponding target software files and software configuration files corresponding to the target software files can be obtained.
The specific form of the software information may be the same as or different from the system information, and is not particularly limited, and it may also take the form of a software name or software version number, or may take other forms. In some cases, the same software is configured in the same way on different devices; in other cases, on different types of electronic devices, the same software needs different forms of configuration to meet the needs, so S103 may specifically include the following steps:
step 21: and determining a plurality of target software files from the plurality of preset software files by utilizing the software information.
Step 22: and screening a plurality of preset software configuration files corresponding to each target software file respectively by using the model information to obtain system configuration files corresponding to each target software file respectively.
After a plurality of target software files are obtained by using the software information, a plurality of preset software configuration files corresponding to the target software files respectively can be screened by using the model information, and system configuration files corresponding to the target software files respectively are obtained. The system configuration files can adaptively configure the software in the process of or after the electronic equipment designated by the model information is installed in a dark mode, so that each piece of software can normally run on the electronic equipment.
It should be noted that the execution sequence between the step S102 and the step S103 may be selected from a plurality of types, and specifically, the two may be executed in series or in parallel. In order to increase the generation speed of the master file, the step S102 and the step S103 may be performed in parallel after the task information is acquired, so as to reduce the time required for determining the target system file and the target software file, and the configuration files corresponding to the target system file and the target software file.
S104: and determining the target equipment according to the model information, and configuring the target equipment by utilizing the target system file and the target software file based on the system configuration file and the software configuration file.
In this embodiment, a plurality of blank devices with different models are preset, that is, the blank devices are devices without system configuration and software configuration, and the target device is specifically a blank device matched with model information. The target system file, the target software file and the configuration files corresponding to the target system file and the target software file are used for configuring the equipment, and the corresponding system can be obtained only after the system and the software are configured on the target equipment by using the target system file and the target software file, and then the master disc file is obtained through the derivation of the system mirror image. After determining the target device, the system configuration file, the software configuration file, the target system file, and the target software file may be transmitted to the target device using a network connection with the target device to configure the target device.
The present embodiment is not limited as to how to configure the target device with the target system file and the target software file based on the system configuration file and the software configuration file. It will be appreciated that the installation and configuration of software typically needs to be based on a configured system, and thus the step S104 may include:
step 31: and installing the system of the target equipment by using the target system file, and carrying out system configuration by using the system configuration file after the system is installed.
Step 32: after the system configuration is finished, the target software file is utilized to carry out software installation on the target equipment, and after the software installation is finished, the corresponding software configuration file is utilized to carry out software configuration.
In order to ensure that software can be installed and configured correctly, in this embodiment, a target system file is first used to install a system on a target device, and after the installation is completed, a system is configured by using a system configuration file. After the system configuration is completed, the operating system on the target device is already in a usable state, in which case, software installation and configuration can be performed, and finally the configuration of the entire target device is completed. By installing software on the target device after the system configuration is completed and performing the software configuration, the problem of software installation errors or configuration errors caused by performing operations such as software installation when the operating system is not configured is avoided.
Further, in a specific embodiment, when the number of the target software files is plural, the process of installing the software on the target device by using the target software files and configuring the software by using the corresponding software configuration files after the software is installed may specifically include the following steps:
step 41: and determining the installation configuration dependency relationship among the target software files.
Step 42: and dividing the target software file and the software configuration file based on the installation configuration dependency relationship to obtain a plurality of groups of software files.
Step 43: and installing the software by utilizing the target software files in each group of software files in turn according to the installation configuration dependency relationship, and configuring the software by utilizing the software configuration files in each group of software files.
When the number of the target software files is multiple, the installation of multiple software is required, in this case, installation configuration dependency relationship may exist between the respective software, that is, after some software is installed and configured, some other software can be installed, otherwise, the installation cannot be normally performed. Therefore, when the installation and configuration of the software are carried out, the installation configuration dependency relationship among all the target software files, namely the installation sequence among all the target software files, can be determined first. After the dependency relationship is determined, the target software files and the software configuration files are divided by the dependency relationship, and each target software file and each software configuration file are divided into different groups according to the installation sequence of each software, so that at least one group of software files is obtained. After the grouping is finished, the target software files in the software files in each group are used for installing the software, the software configuration is carried out by using the software configuration files in the software files in each group, and when the software files for installation and configuration are selected, the software files need to be selected according to the installation sequence of the software. By the method, normal installation of all software can be ensured, and configuration errors are prevented, so that errors of the master disc files are prevented.
S105: and carrying out mirror image export processing on the target equipment to obtain the master disc file.
After the configuration of the target device is finished, the current state of the target device is the state of the master disc file to be recorded, so that the exporting process of the operating system mirror image of the target device can be performed to obtain the master disc file. The target file can be used for filling the operating system, so that the configuration of the blank equipment can reach the state after the configuration of the blank equipment and the target equipment is completed without the configuration of the steps, and the equipment configuration efficiency is greatly improved. The specific content and form of the master file are not limited, and reference may be made to the related art. After the master file is obtained, the target device can be initialized to be changed into a blank device again so as to generate the master file again when the master file is needed later.
In one embodiment, when a plurality of different master files are generated in a batch, that is, when a plurality of task information exists, in order to be able to conveniently distinguish between the respective generated master files, the master files may be generated based on the master information. Specifically, S105 may include:
step 51: and carrying out initial mirror image export processing on the target equipment to obtain an initial master disc file.
Step 52: and setting the initial master disc file based on the master disc information to obtain the master disc file.
In this embodiment, the task information further includes master disc information, where the master disc information is specifically identification information of a master disc file, and is unique information, that is, the master disc information corresponding to different task information is different, and may be specifically a file name, task creation time, and the like. The result obtained by directly performing image export on the target device is an initial master file, and the specific process and mode of the initial image export process may refer to related technologies, which are not described herein. After the initial master disc file is obtained, the initial master disc file can be set by using the master disc information to obtain the master disc file, so that the master disc file can be distinguished by the master disc information in the master disc file.
In one embodiment, in order to prevent a master file error caused by a configuration abnormality of the target device or a master file export abnormality, an initial master file may be detected after being obtained, and after the detection is passed, it may be determined as a master file. Specifically, S105 may include:
step 61: and carrying out initial mirror image export processing on the target equipment to obtain an initial master disc file.
Step 62: and determining the initial detection equipment with the same model as the target equipment, and performing system filling on the initial detection equipment by utilizing the initial master disc file to obtain the target detection equipment.
Step 63: and performing system detection on the target detection equipment based on the detection information, and determining the initial master disc file as a master disc file after the system detection is passed.
In this embodiment, the task information further includes detection information, where the detection information is used to indicate a detection item or a detection mode that needs to be performed, for example, the detection item name may be used, or the detection mode serial number may be used. After the initial master disc file is obtained, in order to judge whether the initial master disc file is a master disc file meeting the requirements, another blank device with the same model as the target device can be determined to be used as an initial detection device, and the initial detection device is subjected to system filling operation by utilizing the initial master disc file, so that the initial detection device has the device state recorded in the initial master disc file. After the system filling operation is completed, the initial detection device is converted into the target detection device.
And based on the detection information, performing corresponding system detection on the target detection equipment. If the initial master file is a master file meeting the requirements, the target detection device can successfully pass the detection, so that the initial master file can be determined as the master file. If the configuration process of the target device is abnormal or the export process of the initial master disk file is abnormal, the initial master disk file does not record the device state meeting the requirements, and the target detection device obtained after filling by using the initial master disk file is also not meeting the requirements, so that the target detection device cannot pass through the system detection.
After the task information is acquired, the method for generating the master disc file can be used for screening the corresponding target system file and the corresponding system configuration file from a plurality of preset files according to the system information, and meanwhile, the target software file and the software configuration file are obtained by utilizing the software information. The model information may indicate a model to which the generated master disc file is applicable, and may select a target device by using the model information, and configure the target device by using the target system file and the target software file based on the system configuration file and the software configuration file, so that the target device has a system corresponding to the master disc file. And exporting the system image on the target device through image export processing, so that a master disc file can be obtained, and the generation of the master disc file is completed. The target equipment corresponding to various machine type information is provided for system configuration by presetting a plurality of preset files, wherein the preset files comprise target system files, system configuration files, target software files and software configuration files required by system configuration. By configuring the target device by utilizing the system file and the software file according to the corresponding configuration file, the system can be configured and the master disk can be exported without manual operation, the system configuration can be efficiently and accurately completed, the reliable master disk file can be generated, and the problems of lower master disk file generation efficiency and higher error rate in the related technology are solved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a customized master disc manufacturing system according to an embodiment of the present application, where the customized master disc manufacturing system is configured to execute all or part of the steps in the above embodiment to generate a master disc file. The domestic platform hardware management system is used for controlling servers and PCs (Personal Computer, personal computers) of domestic platforms of different models, wherein the servers or the PCs are blank devices, and the domestic platform hardware management system can be connected to the servers or the PCs through a network and controls the starting and stopping of the servers or the PCs. The customized system configuration tool is used for remotely installing and configuring the domestic platform operating system, and remotely installing and configuring a series of software on the corresponding operating system. The domestic platform operating system library software library is used for storing operating system installation files (i.e. preset system files) adapting to a plurality of models of domestic platform servers and PCs, installation packages (i.e. preset software files) of various software under each operating system and corresponding configuration files (i.e. system configuration files and software configuration files). The master export detection tool is used to export a system master containing the current operating system and applications from the running machine (i.e., the target device) while the master files can be detected. In addition, it has the function of cleaning the operating system on the target device.
Referring to fig. 3, fig. 3 is a flowchart of a specific method for generating a master file according to an embodiment of the present application. Specifically, the method comprises the following steps:
1. configuration import: the task list (i.e., task information) is imported through the task list, and the task list includes model information, operating system information, software information, and master disc information. The task list is imported into the domestic platform hardware management system.
2. Preparing a hardware platform: and the domestic platform hardware management system starts a corresponding blank server or PC without a system according to the model information in the task list and establishes network connection. And after the connection is successful, the network connection address and the current task list are imported into a customized system configuration tool.
3. Customizing a system: and the customized system configuration tool invokes the corresponding installation package and the configuration script from the domestic platform operating system library software library according to the operating system information and the software information in the task list. After the call is completed, the operating system is installed on the server or the PC through the network connection address by utilizing the installation package (namely, the target system file) of the operating system, and after the call is completed, the operating system is configured by using the configuration script (namely, the system configuration script). After the system configuration is completed, the installation sequence among the software is determined, and the software installation package (i.e., the target software file) and the software configuration script (i.e., the software configuration file) are transmitted in batches through the network connection based on the sequence. Gradually installing software according to the software information in the task list and completing configuration by using the script. After all is completed, the network connection address and the current task list are imported into the master export and detection tool.
4. Master export and detection: and the master disc export detection tool exports an initial master disc file from the current connection hardware model according to the master disc information in the task list, and sets the initial master disc file by utilizing the master disc information to obtain the master disc file. And after the completion, informing the domestic platform hardware management system so as to start and connect a blank system-free device (namely initial detection device) with the same model, and filling the blank system-free device by using a master disk file. After filling, detecting whether a custom system running on the filled machine meets the requirements of a task list. And after determining that the requirements are met and determining that the master disc file passes through the detection of the master disc filling system, the current task list and the manufactured master disc file are derived. Simultaneously, the operating systems on the two connected devices are cleared, and the domestic platform hardware management system is notified to release the network connection.
5. The task flow is as follows: deleting the task list in the task list, and detecting whether the task list is empty. If not, returning to the step 1, and continuing the mastering of the next list; if the operation is empty, the whole operation is ended.
The following describes a master file generating apparatus provided in an embodiment of the present application, and the master file generating apparatus described below and the master file generating method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a master file generating apparatus according to an embodiment of the present application, including:
an acquisition module 110, configured to acquire task information; the task information comprises model information, system information and software information;
the first file determining module 120 is configured to screen a plurality of preset files by using system information to obtain a target system file and a corresponding system configuration file;
the second file determining module 130 is configured to screen a plurality of preset files by using the software information to obtain a target software file and a corresponding software configuration file;
a configuration module 140, configured to determine a target device according to the model information, and configure the target device using the target system file and the target software file based on the system configuration file and the software configuration file;
and the export module 150 is used for carrying out mirror image export processing on the target device to obtain a master disc file.
Optionally, the first file determining module 120 includes:
the first screening unit is used for determining a target system file from a plurality of preset system files by utilizing the system information;
and the second screening unit is used for screening the system configuration files from a plurality of preset system configuration files corresponding to the target system files by utilizing the model information.
Optionally, the second file determining module 130 includes:
the third screening unit is used for determining a plurality of target software files from a plurality of preset software files by utilizing the software information;
and the fourth screening unit is used for screening a plurality of preset software configuration files corresponding to each target software file respectively by using the model information to obtain system configuration files corresponding to each target software file respectively.
Optionally, the configuration module 140 includes:
the system configuration unit is used for carrying out system installation on the target equipment by utilizing the target system file, and carrying out system configuration by utilizing the system configuration file after the system installation is finished;
the software configuration unit is used for carrying out software installation on the target equipment by utilizing the target software file after the system configuration is finished, and carrying out software configuration by utilizing the corresponding software configuration file after the software installation is finished.
Optionally, the software configuration unit includes:
a relationship determination subunit, configured to determine an installation configuration dependency relationship between each of the target software files;
the grouping subunit is used for dividing the target software file and the software configuration file based on the installation configuration dependency relationship to obtain a plurality of groups of software files;
And the installation and configuration subunit is used for sequentially utilizing the target software files in each group of software files to install the software according to the installation configuration dependency relationship, and utilizing the software configuration files in each group of software files to configure the software.
Optionally, the deriving module 150 includes:
the initial export unit is used for carrying out initial mirror image export processing on the target equipment to obtain an initial master disc file;
and the information setting unit is used for setting the initial master disc file based on the master disc information to obtain the master disc file.
Optionally, the deriving module 150 includes:
the initial export unit is used for carrying out initial mirror image export processing on the target equipment to obtain an initial master disc file;
the system filling unit is used for determining initial detection equipment with the same model as the target equipment, and performing system filling on the initial detection equipment by utilizing an initial master disc file to obtain the target detection equipment;
and the detection unit is used for carrying out system detection on the target detection equipment based on the detection information and determining the initial master disc file as the master disc file after the system detection is passed.
The electronic device provided by the embodiment of the application is introduced below, and the electronic device described below and the method for generating the master file described above can be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
Wherein the processor 101 is configured to control the overall operation of the electronic device 100 to complete all or part of the steps in the above-described master file generation method; the memory 102 is used to store various types of data to support operation at the electronic device 100, which may include, for example, instructions for any application or method operating on the electronic device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as one or more of static random access Memory (Static Random Access Memory, SRAM), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 102 or transmitted through the communication component 105. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the respective communication component 105 may thus comprise: wi-Fi part, bluetooth part, NFC part.
The electronic device 100 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), digital signal processors (Digital Signal Processor, abbreviated as DSP), digital signal processing devices (Digital Signal Processing Device, abbreviated as DSPD), programmable logic devices (Programmable Logic Device, abbreviated as PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the master file generation method as set forth in the above embodiments.
The following describes a computer readable storage medium provided in an embodiment of the present application, where the computer readable storage medium described below and the method for generating a master file described above may be referred to correspondingly.
The application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the above-described master file generation method.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms include, comprise, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for generating a master file, comprising:
acquiring task information; the task information comprises model information, system information and software information;
screening a plurality of preset files by utilizing the system information to obtain a target system file and a corresponding system configuration file;
screening a plurality of preset files by utilizing the software information to obtain a target software file and a corresponding software configuration file;
determining target equipment according to the model information, and configuring the target equipment by utilizing the target system file and the target software file based on the system configuration file and the software configuration file;
and carrying out mirror image export processing on the target equipment to obtain a master disc file.
2. The method for generating a master disc file according to claim 1, wherein the step of screening a plurality of preset files by using the system information to obtain a target system file and a system configuration file includes:
determining the target system file from a plurality of preset system files by utilizing the system information;
and screening a plurality of preset system configuration files corresponding to the target system file by using the model information to obtain the system configuration files.
3. The method for generating a master disc file according to claim 1, wherein the step of screening a plurality of preset files by using the software information to obtain a target software file and a software configuration file includes:
determining a plurality of target software files from a plurality of preset software files by utilizing the software information;
and screening a plurality of preset software configuration files corresponding to the target software files respectively by using the model information to obtain the system configuration files corresponding to the target software files respectively.
4. The method of generating a master file according to claim 1, wherein configuring the target device with the target system file and the target software file based on the system configuration file and the software configuration file includes:
performing system installation on the target equipment by using the target system file, and performing system configuration by using the system configuration file after the system installation is completed;
and after the system configuration is finished, performing software installation on the target equipment by using the target software file, and performing software configuration by using the corresponding software configuration file after the software installation is finished.
5. The method for generating a master disc file according to claim 4, wherein the step of performing software installation on the target device using the target software file and performing software configuration using the corresponding software configuration file after the software installation is completed comprises:
determining installation configuration dependency relations among the target software files;
dividing the target software file and the software configuration file based on the installation configuration dependency relationship to obtain a plurality of groups of software files;
and performing software installation by sequentially utilizing the target software files in each group of the software files according to the installation configuration dependency relationship, and performing software configuration by utilizing the software configuration files in each group of the software files.
6. The method for generating a master file according to claim 1, wherein the task information further includes master information, and the performing mirror image export processing on the target device to obtain the master file includes:
performing initial mirror image export processing on the target equipment to obtain an initial master disc file;
and setting the initial master disc file based on the master disc information to obtain the master disc file.
7. The method for generating a master file according to claim 1, wherein the task information further includes detection information, and the performing mirror image export processing on the target device to obtain the master file includes:
performing initial mirror image export processing on the target equipment to obtain an initial master disc file;
determining initial detection equipment with the same model as the target equipment, and performing system filling on the initial detection equipment by utilizing the initial master disc file to obtain the target detection equipment;
and carrying out system detection on the target detection equipment based on the detection information, and determining the initial master disc file as the master disc file after the system detection is passed.
8. A master file generation apparatus, comprising:
the acquisition module is used for acquiring task information; the task information comprises model information, system information and software information;
the first file determining module is used for screening a plurality of preset files by utilizing the system information to obtain a target system file and a corresponding system configuration file;
the second file determining module is used for screening a plurality of preset files by utilizing the software information to obtain a target software file and a corresponding software configuration file;
The configuration module is used for determining target equipment according to the model information, and configuring the target equipment by utilizing the target system file and the target software file based on the system configuration file and the software configuration file;
and the export module is used for carrying out mirror image export processing on the target equipment to obtain a master disc file.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the master file generation method as claimed in any one of claims 1 to 7.
10. A computer readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the master file generation method of any one of claims 1 to 7.
CN202110593337.8A 2021-05-28 2021-05-28 Method and device for generating master disc file, electronic equipment and storage medium Active CN113254033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110593337.8A CN113254033B (en) 2021-05-28 2021-05-28 Method and device for generating master disc file, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110593337.8A CN113254033B (en) 2021-05-28 2021-05-28 Method and device for generating master disc file, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113254033A CN113254033A (en) 2021-08-13
CN113254033B true CN113254033B (en) 2023-11-03

Family

ID=77185150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110593337.8A Active CN113254033B (en) 2021-05-28 2021-05-28 Method and device for generating master disc file, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113254033B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821202B (en) * 2021-08-27 2023-12-22 济南浪潮数据技术有限公司 Method, device and equipment for generating management software file and readable storage medium
CN113867778A (en) * 2021-09-18 2021-12-31 苏州浪潮智能科技有限公司 Method and device for generating mirror image file, electronic equipment and storage medium
CN114003247B (en) * 2021-10-28 2023-11-14 苏州浪潮智能科技有限公司 Installation detection method, system and device of security machine system and storage medium
CN114327503B (en) * 2021-11-29 2023-11-14 苏州浪潮智能科技有限公司 Automatic filling method, system and device for operating system of secret-related computer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990020A (en) * 2019-11-24 2020-04-10 苏州浪潮智能科技有限公司 Software compiling method and device, electronic equipment and storage medium
WO2020132870A1 (en) * 2018-12-25 2020-07-02 深圳辰锐软件开发有限公司 File update method, file update apparatus and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7281032B2 (en) * 2000-06-30 2007-10-09 Hitachi, Ltd. File sharing system with data mirroring by storage systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020132870A1 (en) * 2018-12-25 2020-07-02 深圳辰锐软件开发有限公司 File update method, file update apparatus and terminal device
CN110990020A (en) * 2019-11-24 2020-04-10 苏州浪潮智能科技有限公司 Software compiling method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向军事信息系统的自动化软件部署算法;戴文博;徐珞;卫津逸;;计算机与现代化(第01期);全文 *

Also Published As

Publication number Publication date
CN113254033A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN113254033B (en) Method and device for generating master disc file, electronic equipment and storage medium
CN108153670B (en) Interface testing method and device and electronic equipment
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
EP2531895B1 (en) Deploying a configuration for multiple field devices
US9921569B2 (en) Field device commissioning system and method
CN108459792B (en) Flow switching method and device and computer equipment
US11720515B2 (en) Article, device, and techniques for serverless stack for streaming message processing
CN107977223B (en) Configuration compatibility checking method and device
CN104850499A (en) Automatic test method and device for base band software
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN111813377A (en) Method and device for automatically generating application program
US8413117B1 (en) Systems and methods for focusing product testing based on areas of change within the product between product builds
CN113568842B (en) Automatic testing method and system for batch tasks
EP3018576B1 (en) A method for controlling changes in a computer system
CN109684191B (en) Application package construction method, device and equipment and readable storage medium
CN113282482A (en) Compatibility test method and system for software package
CN112380094A (en) RPA service flow processing method and device
CN111913720A (en) Program deployment method and device
CN113419775B (en) Firmware configuration method, system, equipment and medium
CN114138578B (en) Server testing method and device
WO2012119224A1 (en) Systems and methods for modifying content of mobile communication devices
CN111208993B (en) Flow data analysis processing system
CN115794312A (en) Container automatic construction and deployment method based on attention point separation
CN117389894A (en) Automatic upgrade test system and method for vehicle
CN117992067A (en) Method and device for processing compiling task, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant