Operation system installation method and device, electronic equipment and storage medium

By obtaining the server-side pre-installed environment files and unattended automatic answer files, and automatically installing and configuring the operating system, the problem that the operating system installation method in the existing technology cannot adapt to continuous upgrades and cannot meet user configuration needs, and automation is achieved. Efficient operating system installation.

CN119440556APending Publication Date: 2025-02-14INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411425744.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing operating system installation method cannot adapt to the continuously upgraded operating system, cannot meet the user's configuration needs, and it is cumbersome to operate in a large-scale machine production environment.

Method used

By obtaining the server-side pre-installed environment files and unattended automatic answer files, using the pre-installed environment files to switch to the pre-installed environment, obtaining the target version of the operating system, and using the unattended automatic answer files for system partitioning and configuration, and finally generating and activation File Activation Operating System.

Benefits of technology

It realizes automated and efficient operating system installation, supports the system installation and deployment of thousands of terminals, meets various user configuration needs, avoids manual installation operations to the greatest extent, and improves the operating system installation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440556A_ABST
    Figure CN119440556A_ABST
Patent Text Reader

Abstract

The invention provides an operating system installation method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a pre-installation environment file and an unattended operation automatic response file of a server side, employing the pre-installation environment file, switching a current environment to a pre-installation environment, and switching the current environment to the unattended operation automatic response file; the method comprises the following steps: acquiring a target version operating system of a server side in a pre-installation environment, performing system partitioning on the target version operating system by adopting an unattended automatic response file, performing system configuration on the target version operating system according to a pre-generated bill of materials, and generating an activation file when monitoring that the target version operating system is installed completely, and activating the target version operating system by adopting the activation file. According to the method, the operating system is automatically installed according to different configuration information by adopting the unattended automatic response file, an unattended mode is realized, thousands of terminals are supported for system installation and deployment, and automatic and efficient operating system installation is realized, so that the configuration requirement of a user is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an operating system installation method, device, electronic equipment and storage medium. Background Art

[0002] With the vigorous development of computer technology, different types of computers, such as gaming laptops, business laptops, and educational laptops, have been widely used. Specifically, computers have been widely used in all aspects of production and life. The production, management, and operations of many large and medium-sized enterprises are inseparable from computers. Due to the graphical window interface of the Windows operating system, which is easy to use, has rich application software on the Internet, and is fast to learn and use, the Windows operating system is commonly used in personal office computers on the market.

[0003] When you have a new computer, you need to first configure and install the operating system. The existing operating system is usually installed using a USB flash drive or a CD. For enterprise production, when faced with hundreds or thousands of machines with different configurations, manually inserting a CD or a USB flash drive to install the operating system is not only extremely cumbersome but also not suitable for mass production environments. At present, the single-machine installation and recovery method of the system cloning burner has been widely used in the deployment of enterprise computer application environments. However, due to frequent operating system upgrades and different configurations required by different customers, this fixed installation solution of the burner clone cannot adapt to the installation environment of the constantly upgraded operating system, and thus cannot meet the configuration needs of users. Summary of the invention

[0004] In view of this, the present invention aims to propose an operating system installation method, device, electronic device and storage medium to solve the problem that the current operating system installation method cannot adapt to the constantly upgraded operating system and cannot meet the user's configuration requirements, and to achieve automated and efficient operating system installation, thereby meeting the user's configuration requirements.

[0005] According to a first aspect of the present invention, there is provided an operating system installation method, which is applied to a terminal on which an operating system is to be installed, the terminal being in communication connection with a server, the method comprising:

[0006] Obtaining the pre-installed environment file and the unattended automatic response file of the server side;

[0007] Using the pre-installation environment file, switching the current environment to the pre-installation environment, and obtaining the target version operating system of the server side in the pre-installation environment;

[0008] Using the unattended automatic response file to partition the target version operating system, and configuring the target version operating system according to a pre-generated bill of materials;

[0009] It is monitored that the target version operating system is installed completely, an activation file is generated, and the target version operating system is activated using the activation file.

[0010] Optionally, the adopting the pre-installation environment file to switch the current environment to the pre-installation environment, and obtaining the target version operating system of the server in the pre-installation environment includes:

[0011] In response to the completion of downloading the pre-installation environment file, using the pre-installation environment file to switch the current environment of the terminal to the pre-installation environment;

[0012] Pre-acquire target version information to be installed on the terminal; wherein the target version information is determined by the terminal through a pre-generated bill of materials;

[0013] Using the target version information to traverse the operating system image of the server side in the pre-installation environment; wherein the server side includes operating system images, each operating system image corresponds to a different system version;

[0014] Determine the operating system image corresponding to the target version information;

[0015] Determine the operating system image corresponding to the target version information as the target version operating system;

[0016] Download the target version operating system of the server.

[0017] Optionally, the using the unattended automatic response file to partition the target version operating system, and performing system configuration on the target version operating system according to a pre-generated bill of materials, includes:

[0018] In response to the target version operating system being downloaded, performing image restoration on the target version operating system;

[0019] Obtain a patch package pre-integrated in the pre-installation environment, and use the patch package to configure and update the target version operating system after the image restoration;

[0020] The unattended automatic response file is used to perform system partitioning on the updated target version operating system, and the system configuration of the target version operating system is performed according to the pre-generated bill of materials.

[0021] Optionally, the step of partitioning the updated target version operating system using the unattended automatic response file and configuring the target version operating system according to a pre-generated bill of materials includes:

[0022] Using an unattended automatic response file, the updated target version operating system is partitioned; wherein the system partition includes a driver area and an application area;

[0023] Calling the system preparation tool in the unattended automatic answering file to pre-install the driver area and the application area respectively;

[0024] Configure the system for the target version of the installed operating system according to the pre-generated bill of materials.

[0025] Optionally, after performing system configuration on the installed target version operating system according to the pre-generated bill of materials, the method further includes:

[0026] Upon detecting that the system configuration of the target version operating system is completed, the terminal is controlled to restart;

[0027] Install the driver area and application area of ​​the target version operating system after restart.

[0028] Optionally, the monitoring that the target version operating system is installed completely, generating an activation file, and using the activation file to activate the target version operating system includes:

[0029] In response to monitoring that the target version operating system is installed, generating an activation file, and uploading the activation file to a server; wherein the server is used to obtain an activation code according to the activation file;

[0030] Activating the target version operating system using the activation code;

[0031] It is monitored that the activation of the target version operating system is completed, and the pre-installation environment file and the unattended automatic response file are cleared.

[0032] Optionally, after monitoring that the target version operating system is installed, generating an activation file, and using the activation file to activate the target version operating system, the process further includes:

[0033] Obtaining an installation log of the target version operating system installed on the terminal;

[0034] The installation log is uploaded to the server.

[0035] According to a second aspect of the present invention, there is provided an operating system installation device, which is applied to a terminal on which an operating system is to be installed, the terminal being communicatively connected to a server, the device comprising:

[0036] A file acquisition module is used to acquire the pre-installation environment file and the unattended automatic response file of the server;

[0037] An environment switching module, used to use the pre-installation environment file to switch the current environment to the pre-installation environment, and obtain the target version operating system of the server side in the pre-installation environment;

[0038] A system installation module, used to perform system partitioning on the target version operating system using the unattended automatic response file, and to perform system configuration on the target version operating system according to a pre-generated bill of materials;

[0039] The system activation module is used to detect that the pre-installation of the target version operating system is completed, generate an activation file, and use the activation file to activate the target version operating system.

[0040] According to another aspect of the present invention, there is also provided an electronic device, comprising:

[0041] processor;

[0042] a memory for storing instructions executable by the processor;

[0043] The processor is configured to execute the instructions to implement the operating system installation method as described above.

[0044] According to another aspect of the present invention, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the operating system installation method described above are implemented.

[0045] The operating system installation method provided by the embodiment of the present invention obtains the pre-installation environment file and the unattended automatic response file of the server side, uses the pre-installation environment file, switches the current environment to the pre-installation environment, obtains the target version operating system of the server side in the pre-installation environment, uses the unattended automatic response file to perform system partitioning on the target version operating system, and performs system configuration on the target version operating system according to the pre-generated bill of materials, monitors that the target version operating system is installed, generates an activation file, and uses the activation file to activate the target version operating system. In the pre-installation environment, the embodiment of the present invention uses the unattended automatic response file to automatically install the operating system according to different configuration information, realizes the unattended mode, supports the system installation and deployment of thousands of terminals, supports the installation and deployment of thousands of terminals at the same time, meets the pre-installation requirements of various user configurations, and the installation configuration is through the unattended automatic response method, which avoids manual installation operations to the greatest extent, meets the system customization requirements of different customer orders through automated information deployment, improves the installation efficiency of the operating system, and realizes automated and efficient operating system installation, thereby meeting the configuration requirements of users.

[0046] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0048] Figure 1 is a flowchart of the steps of an operating system installation method provided by an embodiment of the present invention;

[0049] Figure 2 yes Figure 1 A flowchart of step 102 in the operating system installation method provided by an embodiment of the present invention;

[0050] Figure 3 yes Figure 1 A flowchart of step 103 in the operating system installation method provided by an embodiment of the present invention;

[0051] Figure 4 yes Figure 1 A flowchart of step 104 in the operating system installation method provided by an embodiment of the present invention;

[0052] Figure 5 is a flowchart of another operating system installation method provided by an embodiment of the present invention;

[0053] Figure 6 It is a structural schematic diagram of an operating system installation device provided by an embodiment of the present invention;

[0054] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0056] Reference Figure 1 , shows a flowchart of the steps of the operating system installation method provided by an embodiment of the present invention, which is applied to a terminal to be installed with an operating system, the terminal being in communication connection with a server, and the method may include:

[0057] Step 101, obtaining the pre-installation environment file and the unattended automatic response file on the server side.

[0058] In an embodiment of the present invention, the terminal is connected to the server via the network, and can first select the PXE network IPV4 startup mode to obtain the pre-installation environment file and unattended automatic answer file on the server side, wherein PXE (Preboot Execution Environment) network startup is a commonly used network startup technology that allows a computer to start from a server via the network and obtain the files required for operating system installation, the pre-installation environment file is used to import and load the Windows pre-installation environment, and the unattended automatic answer file is used to automatically answer questions during the installation process.

[0059] It should be noted that the Windows operating system installation solution proposed in the embodiment of the present invention is applied to a computer terminal under the Windows pre-installation environment (WINPE), and the terminal is connected to the server through a network communication, ensuring that a DHCP server, a TFTP server, and an HTTP (or FTP) server are installed on the server, and the terminal supports PXE booting, and is set to prioritize network booting in the BIOS. Specifically, it can be applied to the scenario where an ODM (original design manufacturer) or OEM (original equipment manufacturer) production line installs Windows operating systems on computers in batches through a server when producing computers, and the operating systems include but are not limited to Windows 10, Windows 7, Windows Vista, Windows XP, and Windows Server systems.

[0060] Step 102, using the pre-installation environment file, switching the current environment to the pre-installation environment, and obtaining the target version operating system of the server side in the pre-installation environment.

[0061] In an embodiment of the present invention, the terminal is set to prioritize network startup and start up. The terminal will start up through the PXE network, obtain the pre-installation environment file from the server, and obtain the target version operating system in the pre-installation environment. Specifically, in response to the completion of the download of the pre-installation environment file, the pre-installation environment file is used to switch the current environment of the terminal to the pre-installation environment, and pre-acquire the target version information to be installed on the terminal; wherein the target version information is determined by the terminal through a pre-generated bill of materials, and the target version information is used to traverse the operating system image on the server side in the pre-installation environment; wherein the server side includes an operating system image, each operating system image corresponds to a different system version, and the operating system image corresponding to the target version information is determined, and the operating system image corresponding to the target version information is determined as the target version operating system. In the pre-installation environment, the terminal will obtain the installation source of the target version operating system through the HTTP server and start the installation process. The terminal will automatically download and install the target version operating system from the HTTP server, and an unattended automatic response file is configured to achieve full automation of the installation process.

[0062] Step 103, using the unattended automatic response file to partition the target version operating system, and performing system configuration on the target version operating system according to the pre-generated bill of materials.

[0063] In the embodiment of the present invention, the terminal uses an unattended automatic response file to partition the target version operating system, and performs system configuration on the target version operating system according to a pre-generated bill of materials.

[0064] Specifically, in response to the completion of the download of the target version operating system, the target version operating system is restored to an image, a patch package pre-integrated in the pre-installation environment is obtained, the patch package is used to configure and update the target version operating system after the image restoration, an unattended automatic response file is used to perform system partitioning on the updated target version operating system, and the target version operating system is configured according to a pre-generated bill of materials.

[0065] Specifically, the terminal starts and enters the WINPE pre-installation environment. The user only needs to press the F12 key to select network startup when the terminal is turned on. The terminal automatically enters the WINPE environment through the PXE server, runs the automated installation script in the WINPE environment, performs system partition operations, restores the Windows image to the system partition, and configures the WINRE environment according to the pre-generated bill of materials to ensure that the necessary recovery tools and drivers are included. In this embodiment, an unattended response file is used to configure various settings during the system installation process.

[0066] Step 104 , monitoring that the target version operating system is installed, generating an activation file, and using the activation file to activate the target version operating system.

[0067] In an embodiment of the present invention, the target version operating system installation process is monitored, and if it is monitored that the target version operating system is installed completely, an activation file is generated, and the target version operating system is activated using the activation file. Specifically, in response to monitoring that the target version operating system is installed completely, the terminal generates an activation file and uploads the activation file to the server; wherein the server is used to obtain an activation code according to the activation file, activate the target version operating system using the activation code, and clear the pre-installation environment file and the unattended automatic response file when the activation of the target version operating system is completed.

[0068] The operating system installation method provided by the present invention obtains the pre-installation environment file and the unattended automatic response file of the server side, uses the pre-installation environment file, switches the current environment to the pre-installation environment, obtains the target version operating system of the server side in the pre-installation environment, uses the unattended automatic response file to perform system partitioning on the target version operating system, and performs system configuration on the target version operating system according to the pre-generated bill of materials, monitors that the target version operating system is installed, generates an activation file, and uses the activation file to activate the target version operating system. In the pre-installation environment, the embodiment of the present invention uses the unattended automatic response file to automatically install the operating system according to different configuration information, realizes the unattended mode, supports the system installation and deployment of thousands of terminals, supports the installation and deployment of thousands of terminals at the same time, meets the pre-installation requirements of various user configurations, and the installation configuration is through the unattended automatic response method, which avoids manual installation operations to the greatest extent, meets the system customization requirements of different customer orders through automated information deployment, improves the installation efficiency of the operating system, and realizes automated and efficient operating system installation, thereby meeting the configuration requirements of users.

[0069] Further, see Figure 2 , showing Figure 1 A flowchart of step 102 in a method for installing an operating system is provided. The method is substantially the same as the method for installing an operating system provided in the first embodiment of the present invention. Step 102 may include:

[0070] Step 201 , in response to the completion of downloading the pre-installation environment file, the current environment of the terminal is switched to the pre-installation environment using the pre-installation environment file.

[0071] Step 202, pre-acquire target version information to be installed on the terminal; wherein the target version information is determined by the terminal through a pre-generated bill of materials.

[0072] Step 203, using the target version information to traverse the operating system image of the server side in the pre-installation environment; wherein the server side includes the operating system image, and each operating system image corresponds to a different system version.

[0073] Step 204: determine the operating system image corresponding to the target version information.

[0074] Step 205: determine the operating system image corresponding to the target version information as the target version operating system.

[0075] Step 206, download the target version operating system of the server.

[0076] In an embodiment of the present invention, in response to the completion of downloading the pre-installation environment file, the pre-installation environment file is used to switch the current environment of the terminal to the pre-installation environment. The pre-installation environment file is usually a PXE boot environment file, such as pxelinux.0, initrd.img, vmlinuz, etc. The terminal is started through PXE, downloads these files from the TFTP server, and loads the pre-installation environment, and pre-acquires the target version information to be installed by the terminal; wherein the target version information is determined by the terminal through a pre-generated bill of materials, and the bill of materials includes the operating system version information required by the terminal, which can be obtained through a configuration file, a database query or other methods. The target version information is used to traverse the operating system image of the server side in the pre-installation environment; wherein the server side includes an operating system image, and each operating system image corresponds to a different system version.

[0077] Specifically, the server stores multiple operating system images, and the operating system image directory on the server can be automatically traversed through a script or program. According to the target version information, the corresponding image file is found in the operating system image on the server, and the operating system image corresponding to the target version information is determined. The operating system image corresponding to the target version information is determined as the target version operating system, and the image of the target version operating system is downloaded from the server through the HTTP or FTP protocol. In this embodiment, since an unattended automatic response file (such as a Kickstart file) is configured, the installation process will automatically start after the download is complete.

[0078] The embodiment of the present invention realizes switching from the current environment to the pre-installation environment, and obtains and installs the target version operating system of the server in the pre-installation environment, and uses an unattended automatic response file to automatically install the operating system according to different configuration information to realize the unattended mode.

[0079] Further, see Figure 3 , showing Figure 1A flowchart of step 103 in a method for installing an operating system is provided. The method is substantially the same as the method for installing an operating system provided in the first embodiment of the present invention. Step 103 may include:

[0080] Step 301, in response to the target version operating system download being completed, image restoration is performed on the target version operating system.

[0081] Step 302: Obtain a patch package pre-integrated in the pre-installation environment, and use the patch package to perform configuration update on the target version operating system after the image restoration.

[0082] Step 303: Use the unattended automatic response file to partition the updated target version operating system, and perform system configuration on the target version operating system according to the pre-generated bill of materials.

[0083] In an embodiment of the present invention, in response to the completion of downloading the target version operating system, the target version operating system is image restored. The image restoration is to use a tool (such as dd, Clonezilla, etc.) to restore the downloaded operating system image to the target disk, ensure that the image file is correct, and write it to the target disk.

[0084] Specifically, obtain the patch package pre-integrated in the pre-installation environment, use the patch package to update the configuration of the target version operating system after the image restoration, the patch package contains the updates and patches required for the operating system, in the pre-installation environment, use a script or program to automatically apply the patch package, update the operating system configuration, use an unattended automatic response file to perform system partitioning on the updated target version operating system, and perform system configuration on the target version operating system according to the pre-generated bill of materials. The unattended automatic response file is used to automatically install and configure the operating system. System partitioning is to automatically perform disk partitioning according to the partition configuration in the unattended automatic response file. System configuration is to automatically set system parameters according to the configuration information in the bill of materials, such as network configuration, user accounts, and software package installation.

[0085] The embodiment of the present invention realizes image restoration of the target version operating system, uses a patch package for configuration update, and finally performs system partitioning and configuration through an unattended automatic response file, thereby realizing a highly automated operating system installation and configuration process.

[0086] Specifically, step 303 uses the unattended automatic response file to partition the updated target version operating system, and performs system configuration on the target version operating system according to the pre-generated bill of materials, which may specifically include:

[0087] First, the unattended automatic response file is used to perform system partitioning on the updated target version operating system; wherein the system partition includes a driver area and an application area;

[0088] Secondly, calling the system preparation tool in the unattended automatic response file to pre-install the driver area and the application area respectively;

[0089] Secondly, the system is configured according to the pre-generated bill of materials for the installed target version of the operating system.

[0090] It should be noted that in the above steps, an unattended automatic response file is used to perform system partitioning on the updated target version operating system; wherein the system partition includes a driver area and an application area, and according to the partition configuration in the Kickstart file, the disk partition is automatically performed, including the driver area and the application area, and the system preparation tool in the unattended automatic response file is called to pre-install the driver area and the application area respectively. System preparation tool: such as Anaconda (for Red Hat series operating systems), used for automated installation and configuration, installing necessary drivers and applications in the driver area and the application area respectively, and performing system configuration on the installed target version operating system according to a pre-generated bill of materials, the bill of materials containing detailed information on the system configuration, such as network configuration, user accounts, software package installation, etc., so as to automatically set system parameters according to the configuration information in the bill of materials.

[0091] Specifically, after performing system configuration on the installed target version operating system according to the pre-generated bill of materials, the method further includes:

[0092] Upon detecting that the system configuration of the target version operating system is completed, the terminal is controlled to restart;

[0093] Install the driver area and application area of ​​the target version operating system after restart.

[0094] Further, see Figure 4 , showing Figure 1 A flowchart of step 104 in a method for installing an operating system is provided. The method is substantially the same as the method for installing an operating system provided in the first embodiment of the present invention. Step 104 may include:

[0095] Step 401, in response to monitoring that the target version operating system is installed, an activation file is generated and uploaded to a server; wherein the server is used to obtain an activation code according to the activation file.

[0096] Step 402: Activate the target version operating system using the activation code.

[0097] Step 403: When the activation of the target version operating system is detected to be complete, the pre-installation environment files and the unattended automatic response files are cleared.

[0098] In an embodiment of the present invention, in response to monitoring that the target version of the operating system is installed, an activation file is generated and uploaded to the server; wherein the server is used to obtain an activation code according to the activation file. The activation file contains relevant information after the operating system is installed, such as hardware ID, serial number, etc., and the activation file can be automatically generated using a script or program. After the system software related settings are completed, the activation related files are generated through Windows OA3 and synchronized to the download server, and the download server uploads them to the Microsoft designated activation website through the MES system.

[0099] Specifically, the activation file is uploaded to the server through the network, and the server generates a unique activation code based on the uploaded activation file. The terminal uses the activation code to activate the target version of the operating system, and the activation code is used to activate the target version of the operating system to ensure the legal use of the operating system. After the activation of the target version of the operating system is monitored, the pre-installed environment files and unattended automatic response files are cleared to ensure the security and cleanliness of the system.

[0100] In some embodiments, after using an unattended automatic response file to partition the updated target version operating system and configure the target version operating system according to a pre-generated bill of materials, the terminal can enter the Windows audit interface and use the system preparation tool to set the system information, manufacturer information, power mode, etc. After setting the system information, etc., restart and enter the system audit environment again, pre-install the drivers and system applications corresponding to the hardware configuration required by the customer in sequence, and restart to take effect after the installation is complete. After the terminal completes the driver and application restart, customize the system personalized configuration again.

[0101] Reference Figure 5 , shows a flowchart of the steps of another operating system installation method provided by an embodiment of the present invention, which method is basically the same as the operating system installation method provided by the first embodiment of the present invention, except that the method may further include:

[0102] Step 101, obtaining the pre-installation environment file and the unattended automatic response file on the server side.

[0103] Step 102, using the pre-installation environment file, switching the current environment to the pre-installation environment, and obtaining the target version operating system of the server side in the pre-installation environment.

[0104] Step 103, using the unattended automatic response file to partition the target version operating system, and performing system configuration on the target version operating system according to the pre-generated bill of materials.

[0105] Step 104 , monitoring that the target version operating system is installed, generating an activation file, and using the activation file to activate the target version operating system.

[0106] The above steps 101 to 104 are described in the foregoing description and will not be repeated here.

[0107] Step 105: Obtain the installation log of the target version operating system installed on the terminal.

[0108] Step 106, upload the installation log to the server.

[0109] In an embodiment of the present invention, the terminal can use a monitoring process to record the installation log of each step in the installation process, and after the system installation and deployment process is completed, obtain the installation log of the target version of the operating system installed by the terminal, and synchronously back up the installation log to the system-specified directory and server for testing and after-sales system-related problem troubleshooting.

[0110] On the basis of achieving the beneficial effects of the first embodiment, the embodiment of the present invention obtains the installation log of the target version of the operating system installed on the terminal by monitoring and fully recording the installation log of each step in the installation process, and synchronously backs up the installation log to the system-specified directory and the server for testing and after-sales system-related problem troubleshooting to ensure the reliability of the operating system installation.

[0111] Reference Figure 6 , shows a schematic diagram of the structure of an operating system installation device provided by an embodiment of the present invention, which is applied to a terminal to be installed with an operating system, the terminal is in communication connection with a server, and the device includes:

[0112] The file acquisition module 501 is used to acquire the pre-installation environment file and the unattended automatic response file of the server;

[0113] An environment switching module 502 is used to use the pre-installation environment file to switch the current environment to the pre-installation environment, and obtain the target version operating system of the server side in the pre-installation environment;

[0114] The system installation module 503 is used to perform system partitioning on the target version operating system using the unattended automatic response file, and perform system configuration on the target version operating system according to a pre-generated bill of materials;

[0115] The system activation module 504 is used to monitor that the pre-installation of the target version operating system is completed, generate an activation file, and use the activation file to activate the target version operating system.

[0116] Furthermore, the environment switching module 502 includes:

[0117] A switching submodule, configured to, in response to completion of downloading the pre-installation environment file, use the pre-installation environment file to switch the current environment of the terminal to the pre-installation environment;

[0118] An acquisition submodule, used to pre-acquire target version information to be installed on the terminal; wherein the target version information is determined by the terminal through a pre-generated bill of materials;

[0119] A traversal submodule, used to traverse the operating system image of the server side in the pre-installation environment using the target version information; wherein the server side includes operating system images, each operating system image corresponds to a different system version;

[0120] A first determination submodule is used to determine the operating system image corresponding to the target version information;

[0121] A second determination submodule is used to determine the operating system image corresponding to the target version information as the target version operating system;

[0122] The download submodule is used to download the target version operating system of the server.

[0123] Furthermore, the system installation module 503 includes:

[0124] A restoration submodule, configured to restore the target version operating system in response to the target version operating system being downloaded and image restored;

[0125] An update submodule is used to obtain a patch package pre-integrated in a pre-installed environment, and use the patch package to configure and update the target version operating system after the image is restored;

[0126] The configuration submodule is used to perform system partitioning on the updated target version operating system using an unattended automatic response file, and to perform system configuration on the target version operating system according to a pre-generated bill of materials.

[0127] Furthermore, the configuration submodule includes:

[0128] A partitioning unit, used to perform system partitioning on the updated target version operating system using an unattended automatic response file; wherein the system partition includes a driver area and an application area;

[0129] A calling unit, used for calling the system preparation tool in the unattended automatic answering file to pre-install the driver area and the application area respectively;

[0130] The configuration unit is used to perform system configuration for the installed target version of the operating system according to the pre-generated bill of materials.

[0131] Furthermore, the configuration submodule also includes:

[0132] A restart unit, configured to detect that the system configuration of the target version operating system is completed and control the terminal to restart;

[0133] The installation unit is used to install the driver area and application area of ​​the target version operating system after restart.

[0134] Furthermore, the system activation module 504 includes:

[0135] A generation submodule, configured to generate an activation file in response to monitoring that the target version operating system is installed, and upload the activation file to a server; wherein the server is configured to obtain an activation code according to the activation file;

[0136] An activation submodule, used to activate the target version operating system using the activation code;

[0137] The clearing submodule is used to detect that the activation of the target version operating system is completed, and clear the pre-installation environment file and the unattended automatic response file.

[0138] Furthermore, the device also includes:

[0139] A log acquisition module, used to acquire an installation log of the target version operating system installed by the terminal;

[0140] The log uploading module is used to upload the installation log to the server.

[0141] The operating system installation method provided by the embodiment of the present invention obtains the pre-installation environment file and the unattended automatic response file of the server side, uses the pre-installation environment file, switches the current environment to the pre-installation environment, obtains the target version operating system of the server side in the pre-installation environment, uses the unattended automatic response file to perform system partitioning on the target version operating system, and performs system configuration on the target version operating system according to the pre-generated bill of materials, monitors that the target version operating system is installed, generates an activation file, and uses the activation file to activate the target version operating system. In the pre-installation environment, the embodiment of the present invention uses the unattended automatic response file to automatically install the operating system according to different configuration information, realizes the unattended mode, supports the system installation and deployment of thousands of terminals, supports the installation and deployment of thousands of terminals at the same time, meets the pre-installation requirements of various user configurations, and the installation configuration is through the unattended automatic response method, which avoids manual installation operations to the greatest extent, meets the system customization requirements of different customer orders through automated information deployment, improves the installation efficiency of the operating system, and realizes automated and efficient operating system installation, thereby meeting the configuration requirements of users.

[0142] Reference Figure 7 , an embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0143] Memory 603, used for storing computer programs;

[0144] The processor 601 is used to execute the program stored in the memory 603, and implements the following steps:

[0145] Obtaining the pre-installed environment file and the unattended automatic response file of the server side;

[0146] Using the pre-installation environment file, switching the current environment to the pre-installation environment, and obtaining the target version operating system of the server side in the pre-installation environment;

[0147] Using the unattended automatic response file to partition the target version operating system, and configuring the target version operating system according to a pre-generated bill of materials;

[0148] It is monitored that the target version operating system is installed completely, an activation file is generated, and the target version operating system is activated using the activation file.

[0149] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0150] The communication interface is used for communication between the above terminal and other devices.

[0151] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0152] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0153] In another embodiment of the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method for installing an operating system described in any of the above embodiments.

[0154] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0155] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0156] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0157] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for installing an operating system, characterized in that: Applied to a terminal on which an operating system is to be installed, the terminal being in communication connection with a server, the method comprising: Obtaining the pre-installed environment file and the unattended automatic response file of the server side; Using the pre-installation environment file, switching the current environment to the pre-installation environment, and obtaining the target version operating system of the server side in the pre-installation environment; Using the unattended automatic response file to partition the target version operating system, and configuring the target version operating system according to a pre-generated bill of materials; It is monitored that the target version operating system is installed completely, an activation file is generated, and the target version operating system is activated using the activation file.

2. The method according to claim 1, characterized in that The adopting of the pre-installation environment file to switch the current environment to the pre-installation environment and obtaining the target version operating system of the server side in the pre-installation environment includes: In response to the completion of downloading the pre-installation environment file, using the pre-installation environment file to switch the current environment of the terminal to the pre-installation environment; Pre-acquire target version information to be installed on the terminal; wherein the target version information is determined by the terminal through a pre-generated bill of materials; Using the target version information to traverse the operating system image of the server side in the pre-installation environment; wherein the server side includes operating system images, each operating system image corresponds to a different system version; Determine the operating system image corresponding to the target version information; Determine the operating system image corresponding to the target version information as the target version operating system; Download the target version operating system of the server.

3. The method according to claim 1, characterized in that The method of using the unattended automatic response file to partition the target version operating system and configuring the target version operating system according to a pre-generated bill of materials includes: In response to the target version operating system being downloaded, performing image restoration on the target version operating system; Obtain a patch package pre-integrated in the pre-installation environment, and use the patch package to configure and update the target version operating system after the image restoration; The unattended automatic response file is used to perform system partitioning on the updated target version operating system, and the system configuration of the target version operating system is performed according to the pre-generated bill of materials.

4. The method according to claim 3, characterized in that The method of partitioning the updated target version operating system using the unattended automatic response file and configuring the target version operating system according to the pre-generated bill of materials includes: Using an unattended automatic response file, the updated target version operating system is partitioned into system partitions; wherein the system partitions include a driver area and an application area; Invoke the system preparation tool in the unattended automatic answering file to pre-install the driver area and the application area respectively; Configure the system for the target version of the installed operating system according to the pre-generated bill of materials.

5. The method according to claim 4, characterized in that After the system configuration of the installed target version operating system is performed according to the pre-generated bill of materials, the following is further included: Upon detecting that the system configuration of the target version operating system is completed, the terminal is controlled to restart; Install the driver area and application area of ​​the target version operating system after restart.

6. The method according to claim 1, characterized in that The monitoring that the target version operating system is installed completely, generating an activation file, and using the activation file to activate the target version operating system includes: In response to monitoring that the target version operating system is installed, generating an activation file, and uploading the activation file to a server; wherein the server is used to obtain an activation code according to the activation file; Activating the target version operating system using the activation code; It is monitored that the activation of the target version operating system is completed, and the pre-installation environment file and the unattended automatic response file are cleared.

7. The method according to claim 1, characterized in that After monitoring that the target version operating system is installed, generating an activation file, and using the activation file to activate the target version operating system, the method further includes: Obtaining an installation log of the target version operating system installed on the terminal; The installation log is uploaded to the server.

8. An operating system installation device, characterized in that: Applied to a terminal on which an operating system is to be installed, the terminal is communicatively connected to a server, and the device comprises: A file acquisition module is used to acquire the pre-installation environment file and the unattended automatic response file of the server; An environment switching module, used to use the pre-installation environment file to switch the current environment to the pre-installation environment, and obtain the target version operating system of the server side in the pre-installation environment; A system installation module, used to perform system partitioning on the target version operating system using the unattended automatic response file, and to perform system configuration on the target version operating system according to a pre-generated bill of materials; The system activation module is used to detect that the pre-installation of the target version operating system is completed, generate an activation file, and use the activation file to activate the target version operating system.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the operating system installation method as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the operating system installation method according to any one of claims 1 to 7 is implemented.