CN117193804A - Processing method and device based on operating system, electronic equipment and storage medium - Google Patents

Processing method and device based on operating system, electronic equipment and storage medium Download PDF

Info

Publication number
CN117193804A
CN117193804A CN202311083775.5A CN202311083775A CN117193804A CN 117193804 A CN117193804 A CN 117193804A CN 202311083775 A CN202311083775 A CN 202311083775A CN 117193804 A CN117193804 A CN 117193804A
Authority
CN
China
Prior art keywords
image information
information
file
order
mirror image
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
CN202311083775.5A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202311083775.5A priority Critical patent/CN117193804A/en
Publication of CN117193804A publication Critical patent/CN117193804A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a processing method, a processing device, electronic equipment and a storage medium based on an operating system, wherein the processing method comprises the following steps: executing a system deployment script to obtain a system deployment file, acquiring mirror image information corresponding to different types of mirror images, recording the mirror image information into a preassembly information maintenance table, acquiring order information of the preassembly system, recording the order information into a database, acquiring first mirror image information from the preassembly information maintenance table, comparing the first mirror image information with the order information, determining target mirror image information, and installing an operating system according to the target mirror image information and the system deployment file. By the embodiment of the application, the intellectualization and automation of the deployment and installation of the operating system on the production line of the preassembled system are realized, and the production efficiency and the accuracy of the preassembled system are improved.

Description

Processing method and device based on operating system, electronic equipment and storage medium
Technical Field
The present application relates to the field of operating systems, and in particular, to a processing method and apparatus based on an operating system, an electronic device, and a storage medium.
Background
The operating system is the most basic system software of computer systems such as servers, personal computers, etc., for organizing and scheduling the work of computers and the allocation of computer resources. Common operating systems are Ubuntu, centOS based on the Linux platform, windows systems from microsoft corporation, macOS systems from apple corporation, etc.
With the development of domestic self-research technology in recent years, a batch of domestic systems such as kylin OS (kylin operating system) and UOS (universal letter operating system) are started to emerge. These domestic systems are often used for pre-installed systems of domestic computer devices, i.e. operating systems are pre-installed when the devices are shipped, so that users can start up and use the devices conveniently.
In order to ensure that the same order installs the same version of system when the system is installed according to the customer appointed system corresponding to the order and the image file corresponding to the new version of system (the data file needed by installing the operating system) is released in the production process, after all the devices complete the preassembly system, the devices need to be checked one by one to check whether the new version of system is preassembled or not, if the new version of system is still installed, the deployment and the import of the new version of system image need to be carried out again. The deployment and identification method relying on manpower has the problems of low shipment efficiency, higher manpower input cost, difficult guarantee of shipment quality and the like.
Disclosure of Invention
In view of the foregoing, it is proposed to provide an operating system-based processing method, apparatus, electronic device and storage medium that overcomes or at least partially solves the foregoing problems, including:
a method of operating system based processing, the method comprising:
executing a system deployment script to obtain a system deployment file;
obtaining mirror image information corresponding to different types of mirror images, and recording the mirror image information into a preassembly information maintenance table;
acquiring order information of a preassembly system and recording the order information into a database;
acquiring first mirror image information from the preassembly information maintenance table;
comparing the first mirror image information with the order information to determine target mirror image information;
and installing an operating system according to the target image information and the system deployment file.
Optionally, the comparing the first image information with the order information to determine target image information includes:
comparing the first image information with the order information; the first image information is the latest released image information corresponding to the target image type, and the latest released image information comprises an image name, an image version and version release time; the order information comprises order placing time and order head equipment online starting time;
if the version release time is earlier than the order placing time, determining the first mirror image information as the target mirror image information;
optionally, if the version release time is later than the order placing time and the version release time is earlier than the online start time of the order head equipment, determining the first image information as the target image information.
Optionally, if the release time of the version is later than the online time of the order head online equipment, second image information corresponding to the order head online equipment is obtained, and the second image information is determined to be the target image information.
Optionally, if the release time of the version is later than the online time of the first online equipment of the order, and the second image information corresponding to the first online equipment of the order cannot be obtained, determining the first image information as the target image information.
Optionally, after the step of comparing the first image information with the order information to determine target image information, the method further includes:
storing the target mirror image information and the corresponding equipment information into a log; the log is used for acquiring second mirror image information corresponding to the order head online equipment.
Optionally, the installing an operating system according to the target image information and the system deployment file specifically includes:
installing a diagnostic test system;
based on the diagnostic test system, checking whether the system deployment file is deployed;
if the system deployment file is successfully checked, determining the hard disk type of the system to be installed, and acquiring a system drive letter of the system to be installed according to the hard disk type;
determining a system boot file based on the system drive letter;
generating a physical address guide file according to the system guide file;
clearing the diagnostic test system;
based on the physical address guide file, installing an operating system according to the target mirror image information and the system deployment file;
and acquiring a configuration file of the operating system, and comparing the system configuration file with corresponding mirror image information in the preassembly information maintenance table to check whether the version of the system installation is correct.
An operating system based processing apparatus, the apparatus comprising:
the deployment module is used for executing the system deployment script to obtain a system deployment file;
the mirror image information maintenance module is used for acquiring mirror image information corresponding to different types of mirror images and recording the mirror image information into the preassembly information maintenance table;
the order information acquisition module is used for acquiring order information of the preassembly system and recording the order information into the database;
the mirror image information acquisition module is used for acquiring first mirror image information from the preassembly information maintenance table;
the target image determining module is used for comparing the first image information with the order information to determine target image information;
and the installation module is used for installing the operating system according to the target mirror image information and the system deployment file.
An operating system based processing electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, implements the steps of the operating system based processing method as described above.
An operating system based processing readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the operating system based processing method as above.
The embodiment of the application has the following advantages: the method comprises the steps of obtaining a system deployment file by executing a system deployment script, obtaining mirror image information corresponding to different types of mirror images, recording the mirror image information into a preassembly information maintenance table, obtaining order information of a preassembly system, recording the order information into a database, obtaining first mirror image information from the preassembly information maintenance table, comparing the first mirror image information with the order information, determining target mirror image information, and installing an operating system according to the target mirror image information and the system deployment file, so that the intelligent and automatic operation system deployment and installation on a preassembly system production line are realized, and the production efficiency and the accuracy of the preassembly system are improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flowchart illustrating a processing method based on an operating system according to an embodiment of the present application;
FIG. 2 is a flow chart for determining a version of a preloaded system according to an embodiment of the present application;
fig. 3 is a block diagram of a processing device based on an operating system according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the application. 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, a flowchart illustrating steps of an operating system-based processing method according to an embodiment of the present application may specifically include the following steps:
step 101, executing a system deployment script to obtain a system deployment file;
before installing the operating system, necessary related files (such as an image file, a configuration file and the like) of the operating system to be installed are required to perform corresponding operations. For example, the relevant files are stored in a designated file directory, the configuration files are modified, and the like. The preparation before installing the system is called deployment of the system.
The system deployment script is a series of operations for completing the system deployment by executing the script, wherein the code of the system deployment related business logic is packaged into an executable file form.
In some embodiments, the system deployment script may be a script written based on Shell (command parser of a computer).
The system deployment file refers to a series of files for which the system deployment-related operations have been completed.
In the embodiment of the application, the logic of the system deployment script is specifically as follows:
s1, uploading an original image file (usually named by an iso suffix) and a corresponding image configuration file to a file directory where a system deployment script is located, and modifying the corresponding image type, image name and image configuration file name in the system deployment script configuration file.
The system deployment script configuration file, commonly named config. Ini, may perform different operations or select different execution objects based on different parameters in the configuration file.
The image type refers to the image type corresponding to the operating systems issued by different manufacturers, such as KylinOS and UOS. The image types can be further subdivided into active and inactive images, such as default_kylin (inactive kylin system image), active_kylin (active kylin system image); such as default uos (inactive system mirror), active uos (active system mirror).
Mirror name, mirror file name defined by the mirror publisher. For example, a version of the kylin system image file name is: kylin-4.0.2-desktop-sp 4-20200428. J1-arm64.Iso, the file name usually includes information of the image type, version number, release date, and the like.
And the image configuration file name is used for configuring the file name of the image configuration file of the image installation related parameter.
S2, executing a system deployment script, obtaining an original image file under a file directory where the script is located, mounting and decompressing the original image file under the file directory with the path of 'OS/image name/', and moving the original image file under the file directory with the path of 'OS/ISO/' after decompressing.
S3, identifying the content of the mirror image configuration file according to the mirror image type, modifying parameters of the configuration files such as the corresponding installed drive letter, software package, whether activation is performed or not, and determining the hierarchy of each system deployment file.
In the embodiment of the application, two mirror image types of Kylin OS and UOS are taken as examples:
the system deployment file hierarchy of the Kylin OS is as follows:
if the installed operating system is Kylin OS, a configuration file corresponding to the suffix of the disk character is required to be generated according to the modified disk character, if the disk character is nvme, the configuration file is generated and named as 'ky-insome-nvme.cfg', and if the disk character is sda, the configuration file is generated and named as 'sda-insler-sda.cfg'.
After the configuration file is generated, the configuration file is moved to a file directory with a path of "/OS/mirror name/".
The system deployment file hierarchy of the UOS is as follows:
if the installed operating system is UOS, it is necessary to modify the configuration file (file name is setting. Ini) of UOS, replace the setting. Ini file under the file directory with path "OS/mirror name/oem/", repackage the file under the file directory with path "OS/mirror name/", to a new mirror file, where the mirror file name has a suffix, such as "new mirror_nvme. Iso" or "new mirror_sda. Iso".
S4, identifying vmlinuz and initrd. Img files with the path of 'OS/mirror name/' under the file directory, and copying the vmlinuz and initrd. Img files under the file directory with the path of '/tftpboot/mirror directory/'.
The vmlinuz file is a kernel file of a system to be installed, vm means Virtual Memory, that is, virtual Memory, and the existing system can generally use a hard disk space as Virtual Memory, so that the name vm is given. vmlin uz represents a bootable, compressible kernel file.
initrd. Img file, initrd is an abbreviation for initial ramdisk (initial virtual memory disk), meaning that memory is virtualized into disk for temporarily booting hardware to a state where the actual kernel vmlinuz can boot and continue. The initrd. Img file is an image file of a compressed virtual memory disc (ramdisk).
The "/tftpboot" file directory means a boot file directory of a simple text transmission protocol, and a boot service of the simple text transmission protocol is mainly used for executing installation of an operating system on a remote computer, and files such as a boot file, a kernel file and the like corresponding to the operating system are generally stored under the boot file directory.
The vmlinuz and initrd. Img files are necessary files for installing the operating system and the system kernel.
S5, generating a guide file corresponding to the disk symbol to be installed according to the image type and the image name, and moving the guide file to a file directory with a path of "/tftpboot/image directory/".
Different mirror types may correspond to boot files of different installation glyphs, the boot file corresponding to the sda glyphs is grub. Cfg, and the boot file corresponding to the nvme glyphs is nvme.
It should be noted that, in the embodiment of the present application, the path "/OS" of the first level of the system deployment file is a relative path, and its absolute path is named "/var/tomcat/apache-tomcat/webapps/ROOT/OS", "/OS" of the upper directory "/var/tomcat/apache-tomcat/webapps/ROOT" which is a file directory of the server for storing the default application program in the network application. In practical applications, those skilled in the art may select additional file directories according to the needs of the practical project, which is not limited herein.
102, obtaining mirror image information corresponding to different types of mirror images, and recording the mirror image information into a preassembly information maintenance table;
in the embodiment of the application, general mirror image information corresponding to different types of mirror images, such as activated and deactivated mirror image information corresponding to Kylin OS and UOS, is obtained. The image information includes an image name, an image version, a release time of the image version, and the like. And storing the mirror image information into a preassembly information maintenance table, wherein the preassembly information table is used for installation and verification of a subsequent operating system.
In some embodiments, the image information in the pre-installed information maintenance table may be updated periodically, or each time there is a new version of image issued, the corresponding image information is updated in the pre-installed information maintenance table in time, so as to ensure that all versions of the image information including the latest version of the same type of image are covered.
Step 103, order information of a preassembly system is obtained and recorded in a database;
the order information refers to information related to an order of a customer pre-installation system, such as the time of placing an order by the customer, and the time when each piece of equipment requiring the pre-installation system starts to be online and an operating system is installed.
104, acquiring first mirror image information from the preassembly information maintenance table;
step 105, comparing the first mirror image information with the order information to determine target mirror image information;
in some embodiments, step 105 further comprises:
a sub-step 11 of comparing the first image information with the order information; the first image information is the latest issued image information corresponding to the target image type, and the latest issued image information comprises an image name, an image version and version issuing time; the order information comprises order placing time and order head equipment online starting time;
the target image type refers to an image type corresponding to an operating system which is required to be installed on equipment by a client in a client order.
The first equipment of the order is on line at the beginning time, which is the time when the first equipment of the customer order is formally on line to the preassembled system production line and the installation of the operating system is started.
In some embodiments, the type of image corresponding to the operating system that needs to be preloaded may be obtained through a BOM (bill of materials) of the customer order (a file describing the product structure in a data format), and the type may be Kylin OS, UOS, no-OS-pre-install (no preloaded system is specified).
As shown in fig. 2, by comparing the latest image release time corresponding to the target type with the order placement time and the order head equipment online start time acquired from the preassembly maintenance information table, whether the image version to be installed of the equipment of the current operating system to be installed is a new version or an old version can be determined, and subsequent operating system installation can be performed according to the image information corresponding to the image version.
A sub-step 12 of determining the first mirror image information as the target mirror image information if the version release time is earlier than the order placing time;
the release time of the latest image version corresponding to the target image type is earlier than the order placing time of the order, which indicates that the order is a new order placing order, and the device can install the latest version of the system.
And a sub-step 13 of determining the first image information as the target image information if the version release time is later than the order placing time and the version release time is earlier than the online starting time of the order head equipment.
The release time of the latest mirror image version corresponding to the target mirror image type is later than the order placing time of the order, the release time is earlier than the online starting time of the first equipment of the order, the order is the newly online order, namely, the equipment is just put into a production line of a preassembled system and is not yet installed with an operating system, the equipment can install the latest version of the system, and the mirror image information corresponding to the new version of the system is determined to be the target mirror image information.
And step 14, if the release time of the version is later than the online time of the first online equipment of the order, acquiring second image information corresponding to the online equipment of the first order, and determining the second image information as the target image information.
When the latest image version release time corresponding to the target image type is later than the online start time of the first device of the order, and the system release of the new version is described, at least one device already starts or completes the installation of the operating system, and the version of the operating system is the old version. Therefore, in order to ensure that the system installation versions of the same order and the same type are consistent, the equipment needs to install an old version system which is the same as the first online equipment, and the image information corresponding to the old version system is determined to be the target image information.
And a sub-step 15 of determining the first image information as the target image information if the version release time is later than the online time of the order head online equipment and the second image information corresponding to the order head online equipment is not obtained.
The release time of the latest mirror image version corresponding to the target mirror image type is later than the online start time of the first-stage equipment of the order, the mirror image information corresponding to the installation system of the first-stage online equipment of the order cannot be obtained, the fact that no equipment is online before the process of installing the system is started is indicated, and the equipment is the first-stage online equipment and can install the latest version of system. And determining the mirror image information corresponding to the new version system as target mirror image information.
Step 16, after determining the target mirror image information, storing the target mirror image information and the corresponding equipment information into a log; the log is used for acquiring second mirror image information corresponding to the order head online equipment.
After determining the target image information corresponding to the system version to be installed, the corresponding relation between the related information of the equipment and the target image information can be saved in the forms of log files, log databases and the like. For example, a message such as a model message, an order number, an online time, a mirror image type, a mirror image version, a mirror image name, etc. corresponding to the device a is used as a log record.
In some embodiments, after the log record is saved, the method may be used to obtain the image information corresponding to the first online device from the log in the substep 15.
And step 106, installing an operating system according to the target image information and the system deployment file.
When the target image information of the system to be installed is determined and the deployment of the system deployment file has been completed, the installation of the operating system can be started.
In some embodiments, remote installation of the device operating system may be accomplished based on the PXE protocol.
PXE (Pre-boot Execution Environment) is a protocol designed by Intel that enables computers to boot up through a network. Operating in Client/Server mode allows a Client to download a boot image from a remote Server over a network and load an installation file or the entire operating system. A plurality of servers can be assembled simultaneously; installing a system and configuring various services; and the installation of media such as optical discs, U discs and the like is not required.
In the embodiment of the application, the system deployment script is executed to obtain the system deployment file, the mirror image information corresponding to different types of mirror images is obtained, the mirror image information is recorded in the preassembly information maintenance table, the order information of the preassembly system is obtained and recorded in the database, the first mirror image information is obtained from the preassembly information maintenance table, the first mirror image information and the order information are compared, the target mirror image information is determined, and the installation of the operating system is carried out according to the target mirror image information and the system deployment file, so that the intellectualization and the automation of the deployment and the installation of the operating system on the preassembly system production line are realized, and the production efficiency and the accuracy of the preassembly system are improved.
In some embodiments, step 106 specifically includes:
a sub-step 21 of installing a diagnostic test system;
on a production line of a device preassembling system, after the deployment of a system deployment file and the determination of target mirror image information are completed, the system can be checked by installing a diagnostic test system before installing an operating system.
A diagnosis test system, a temporary system for importing a required tool kit and a corresponding configuration file on the basis of operating systems of different models, and a benchmark test for aging test, verification file and the like of equipment,
in some embodiments, the test may be performed by a PXE network-guided boot diagnostic test system, and the visual diagnostic program will automatically run after PXE boot.
A sub-step 22 of checking whether the system deployment file is deployed or not based on the diagnostic test system;
in some embodiments, the system deployment file may be checked for deployment as expected by presetting parameters such as expected naming of the deployment file, file type, file check value, expected deposited file directory, etc.
Step 23, if the system deployment file is successfully checked, determining the hard disk type of the system to be installed;
when the verification is passed, since different hard disk types correspond to different disk symbols, and the different disk symbols correspond to different boot files necessary for installing the operating system, before installing the operating system, the type of the hard disk of the operating system to be installed needs to be determined first.
Common hard disk types are typically SCSI hard disks (hard disks that employ small computer system interfaces), NVME hard disks (hard disks that employ nonvolatile memory host controller interfaces).
A sub-step 24 of acquiring a system drive letter of a system to be installed according to the hard disk type, and determining a system guide file based on the system drive letter;
different hard disk types correspond to different disk types in the system, for example, after the SC SI hard disk is mounted in the linux system, the corresponding disk types in the linux system are sda, sdb, sdc. sd is abbreviation of SCSI disk (SCSI hard disk), a, b and c represent SCSI hard disks mounted by the first block, the second block and the third block; after the NVME hard disk is mounted, the corresponding disk symbol in the linux system is NVME.
Further, different disk symbols correspond to different guide files, and after the system disk symbol of the system to be installed is determined, the corresponding system guide file can be determined. For example, the system boot file corresponding to the sda disk is grub. Cfg and the system boot file corresponding to the nvme disk is nvme.
A sub-step 25 of generating a physical address guide file according to the system guide file;
the system boot file is acquired from the file directory whose path is "/tftboot/mirror directory/", and based on the system boot file, a mac boot file (physical address boot file) is generated.
In some embodiments, when the PXE installs the operating system, the mac boot file is preferentially identified, and the installation is performed based on the mac boot file, so as to avoid a conflict when a plurality of boot files exist.
A substep 26 of purging the diagnostic test system;
before formally installing an operating system, the diagnostic test system installed in the previous step needs to be cleared, so that system conflicts are avoided.
Step 27, based on the physical address guide file, installing an operating system according to the target mirror image information and the system deployment file;
in some embodiments, the PXE recognizes the physical address boot file and begins to install the operating system. After the installation is completed, the equipment is automatically shut down.
And 28, acquiring a configuration file of the operating system, and comparing the system configuration file with corresponding mirror image information in the preassembly information maintenance table to check whether the version of the system installation is correct.
After the operating system is installed, a final verification link is needed to be entered to verify whether the version of the system installation is correct.
In some embodiments, after the operating system is installed, the diagnostic test system may be re-entered (the diagnostic test system is already integrated in the installed operating system), and based on the diagnostic test system, the drive letter of the partition of the operating system is identified, the drive letter is installed, the preloaded system information under the file directory in which the path is "/etc." is acquired, and the relevant system configuration file in the preloaded system information is read, where the configuration file includes the preloaded image information such as the image name, the image version, and the like, and then the preloaded image information is compared with the corresponding type of image information in the preloaded information maintenance table, so as to verify whether the preloaded operating system version is correct.
In the embodiment of the application, the diagnosis test system is installed, whether the system deployment file is deployed is checked based on the diagnosis test system, if the system deployment file is checked successfully, the hard disk type of the system to be installed is determined, the system drive of the system to be installed is acquired according to the hard disk type,
based on the system drive letter, a system guide file is determined, a physical address guide file is generated according to the system guide file, the diagnosis test system is cleared, and based on the physical address guide file, the installation of an operating system is carried out according to the target mirror image information and the system deployment file, so that the guarantee for the operation accuracy of the whole system installation flow is realized, and the error risk of manual operation is reduced.
Referring to fig. 3, a block diagram of a processing device based on an operating system according to an embodiment of the present application is shown, which may specifically include the following modules:
the deployment module 501 is configured to execute a system deployment script to obtain a system deployment file;
the mirror image information maintenance module 502 is configured to obtain mirror image information corresponding to different types of mirror images, and record the mirror image information into a preassembly information maintenance table;
an order information obtaining module 503, configured to obtain order information of the preassembly system, and record the order information in a database;
the mirror image information obtaining module 504 is configured to obtain first mirror image information from the pre-installed information maintenance table;
a target image determining module 505, configured to compare the first image information and the order information, and determine target image information;
and the installation module 506 is configured to install an operating system according to the target image information and the system deployment file.
In one embodiment of the present application, the target image determining module 505 may include:
the information comparison sub-module is used for comparing the first mirror image information with the order information; the first image information is the latest released image information corresponding to the target image type, and the latest released image information comprises an image name, an image version and version release time; the order information comprises order placing time and order head equipment online starting time.
A first target image determination submodule for: if the version release time is earlier than the order placing time, determining the first mirror image information as the target mirror image information;
a second target image determination submodule for: and if the version release time is later than the order placing time and the version release time is earlier than the online starting time of the order head equipment, determining the first image information as the target image information.
A third target image determination submodule for: and if the release time of the version is later than the online time of the order head online equipment, acquiring second image information corresponding to the order head online equipment, and determining the second image information as the target image information.
A fourth target image determination submodule for: and if the release time of the version is later than the online time of the order head online equipment, and the second image information corresponding to the order head online equipment cannot be obtained, determining the first image information as the target image information.
The target image determining module 505 further includes:
the log recording module is used for storing the target mirror image information and the corresponding equipment information into a log; the log is used for acquiring second mirror image information corresponding to the order head online equipment.
In an embodiment of the present application, the installation module specifically includes:
the diagnostic test system installation sub-module is used for installing a diagnostic test system;
a deployment file verification sub-module, configured to verify whether the deployment of the system deployment file is completed based on the diagnostic test system;
the system disk identifier determining submodule is used for determining the hard disk type of the system to be installed if the system deployment file is successfully checked, and acquiring the system disk identifier of the system to be installed according to the hard disk type;
a system boot file determination submodule for determining a system boot file based on the system drive letter;
the physical address guide file generation sub-module is used for generating a physical address guide file according to the system guide file;
a diagnostic test system purge sub-module that purges the diagnostic test system;
the installation system sub-module is used for installing an operating system according to the target mirror image information and the system deployment file based on the physical address guide file;
and the installation version verification sub-module is used for acquiring the configuration file of the operating system, and comparing the system configuration file with the corresponding mirror image information in the preassembly information maintenance table to verify whether the installation version of the system is correct.
An embodiment of the present application further provides an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program when executed by the processor implements the operating system-based processing method as above.
An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the above operating system-based processing method.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that 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 "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above method and apparatus for synchronizing data, electronic device, and storage medium are described in detail, and specific examples are applied to illustrate the principles and embodiments of the present application, and the above examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the idea of the present application, the present disclosure should not be construed as limiting the present application in summary.

Claims (10)

1. A method of operating system based processing, the method comprising:
executing a system deployment script to obtain a system deployment file;
obtaining mirror image information corresponding to different types of mirror images, and recording the mirror image information into a preassembly information maintenance table;
acquiring order information of a preassembly system and recording the order information into a database;
acquiring first mirror image information from the preassembly information maintenance table;
comparing the first mirror image information with the order information to determine target mirror image information;
and installing an operating system according to the target image information and the system deployment file.
2. The method of claim 1, wherein the comparing the first image information to the order information to determine target image information comprises:
comparing the first image information with the order information; the first image information is the latest released image information corresponding to the target image type, and the latest released image information comprises an image name, an image version and version release time; the order information comprises order placing time and order head equipment online starting time;
and if the release time of the version is earlier than the order placing time, determining the first mirror image information as the target mirror image information.
3. The method according to claim 2, wherein the method further comprises:
and if the version release time is later than the order placing time and the version release time is earlier than the online starting time of the order head equipment, determining the first image information as the target image information.
4. A method according to claim 3, characterized in that the method further comprises:
and if the release time of the version is later than the online starting time of the order head equipment, acquiring second image information corresponding to the order head online equipment, and determining the second image information as the target image information.
5. The method according to claim 4, wherein the method further comprises:
and if the release time of the version is later than the online starting time of the order head equipment, and the second image information corresponding to the order head online equipment is not obtained, determining the first image information as the target image information.
6. The method of claim 5, wherein after the step of comparing the first image information and the order information to determine target image information, the method further comprises:
storing the target mirror image information and the corresponding equipment information into a log; the log is used for acquiring second mirror image information corresponding to the order head online equipment.
7. The method of claim 1, wherein the installing an operating system according to the target image information and the system deployment file specifically includes:
installing a diagnostic test system;
based on the diagnostic test system, checking whether the system deployment file is deployed;
if the system deployment file is successfully checked, determining the hard disk type of the system to be installed, and acquiring a system drive letter of the system to be installed according to the hard disk type;
determining a system boot file based on the system drive letter;
generating a physical address guide file according to the system guide file;
clearing the diagnostic test system;
based on the physical address guide file, installing an operating system according to the target mirror image information and the system deployment file;
and acquiring a configuration file of the operating system, and comparing the system configuration file with corresponding mirror image information in the preassembly information maintenance table to check whether the version of the system installation is correct.
8. An operating system based processing apparatus, the apparatus comprising:
the deployment module is used for executing the system deployment script to obtain a system deployment file;
the mirror image information maintenance module is used for acquiring mirror image information corresponding to different types of mirror images and recording the mirror image information into the preassembly information maintenance table;
the order information acquisition module is used for acquiring order information of the preassembly system and recording the order information into the database;
the mirror image information acquisition module is used for acquiring first mirror image information from the preassembly information maintenance table;
the target image determining module is used for comparing the first image information with the order information to determine target image information;
and the installation module is used for installing the operating system according to the target mirror image information and the system deployment file.
9. Operating system based processing electronic device, characterized by comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, implements the method of data processing according to any of claims 1 to 7.
10. A processing readable storage medium based on an operating system, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements a method of data processing according to any of claims 1 to 7.
CN202311083775.5A 2023-08-25 2023-08-25 Processing method and device based on operating system, electronic equipment and storage medium Pending CN117193804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311083775.5A CN117193804A (en) 2023-08-25 2023-08-25 Processing method and device based on operating system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311083775.5A CN117193804A (en) 2023-08-25 2023-08-25 Processing method and device based on operating system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117193804A true CN117193804A (en) 2023-12-08

Family

ID=88986168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311083775.5A Pending CN117193804A (en) 2023-08-25 2023-08-25 Processing method and device based on operating system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117193804A (en)

Similar Documents

Publication Publication Date Title
US6598223B1 (en) Method and system for installing and testing build-to-order components in a defined configuration computer system
AU2011329096B2 (en) Networked recovery system
US8365164B1 (en) Portable software applications
TW454147B (en) Recoverable software installation process and apparatus for a computer system
EP1133738B1 (en) Method and apparatus for new device driver installation by an operating system
US7237238B2 (en) Method and apparatus for automated operating systems upgrade
US20080270583A1 (en) Method, system and program product for remotely deploying and automatically customizing workstation images
CN103746833A (en) PXE-based RAID automatic configuration method and system
US7873960B2 (en) Generic packaging tool for packaging application and component therefor to be installed on computing device
WO2002065251A2 (en) Software installation over a network with build plan defining the build, plan transferred to recipient computer and executed
US8171272B1 (en) Critical pre-OS driver verification
US9043781B2 (en) Algorithm for automated enterprise deployments
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN111367745B (en) Memory pressure testing method and system without support of operating system and related components
US20130167138A1 (en) Method and apparatus for simulating installations
CN114546819A (en) Code processing method and device, electronic equipment and readable medium
CN116775061A (en) Deployment method, device, equipment and storage medium of micro-service application
CN117193804A (en) Processing method and device based on operating system, electronic equipment and storage medium
CN115756746A (en) Method and system for manufacturing operating system mirror image based on libvirt
US20090292950A1 (en) Method for making test fixture
CN112732562A (en) Computer test method, system and related device
CN113064698A (en) Method for providing product environment and corresponding device, system, equipment and medium
CN113204359A (en) Online server upgrading method and device
CN114968277A (en) Method and device for generating master burning program file, computer equipment and medium
CN112269599B (en) Disk operation control method, system and device

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