CN107357608B - Method, device and system for automatically installing operating system - Google Patents

Method, device and system for automatically installing operating system Download PDF

Info

Publication number
CN107357608B
CN107357608B CN201710475923.6A CN201710475923A CN107357608B CN 107357608 B CN107357608 B CN 107357608B CN 201710475923 A CN201710475923 A CN 201710475923A CN 107357608 B CN107357608 B CN 107357608B
Authority
CN
China
Prior art keywords
installation
script
operating system
preset
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710475923.6A
Other languages
Chinese (zh)
Other versions
CN107357608A (en
Inventor
周颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710475923.6A priority Critical patent/CN107357608B/en
Publication of CN107357608A publication Critical patent/CN107357608A/en
Application granted granted Critical
Publication of CN107357608B publication Critical patent/CN107357608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The embodiment of the invention discloses a method, a device and a system for automatically installing an operating system, wherein the method for automatically installing the operating system applied to a computer device comprises the following steps: after a first memory storing an installation script of an operating system is started, an initialization script of the operating system reads a preset configuration file from a second memory; modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of a computer device based on the preset configuration file; installing the operating system at the computer device based on the modified installation script. By adopting the technical scheme of the embodiment of the invention, the preset installation warning information can not be displayed in the process of installing the operating system unattended, the installation disc does not need to be customized again, and the application population is wider.

Description

Method, device and system for automatically installing operating system
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and a system for automatically installing an operating system.
Background
During unattended installation of VMware ESXi, some warning messages may pop up, for example: the network card can prompt the network not active when the network card is not plugged; when the network is set to a Dynamic Host Configuration Protocol (DHCP), if an Internet Protocol (IP) address is not allocated, a warning message may also be popped up. Moreover, each warning message stays for tens of seconds, then is automatically closed, and then installation can be continuously performed, and although the warning message does not cause installation failure, the installation time is prolonged. Moreover, the warning messages may be misleading to the user, for example, the user may think that the system is out of order by seeing the warning messages.
Disclosure of Invention
In view of the above, the present invention is to provide a method, an apparatus, and a system for automatically installing an operating system, which do not display preset installation warning information during the process of installing the operating system unattended, do not need to re-customize an installation disk, and have a wider application population.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for automatically installing an operating system, which is applied to a computer device, and the method includes:
after a first memory storing an installation script of an operating system is started, an initialization script of the operating system reads a preset configuration file from a second memory;
modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of a computer device based on the preset configuration file;
installing the operating system at the computer device based on the modified installation script.
In the foregoing solution, optionally, before modifying, based on the preset configuration file, a relevant code for popping up a preset installation warning message in an installation script loaded in a memory of a computer device, the method includes:
analyzing the preset configuration file, and acquiring installation configuration information and a pre-installation script from the preset configuration file;
the pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
In the foregoing solution, optionally, modifying, based on the preset configuration file, a relevant code for popping up preset installation warning information in an installation script loaded in a memory of a computer device, includes:
running the pre-installation script, and modifying related codes used for popping up preset installation warning information in the installation script;
suspending an installation process in a system process; wherein the system is in an operating system environment on the first memory after the first memory is booted.
In the foregoing solution, optionally, the installing the operating system in the computer device based on the modified installation script includes:
restarting the installation process when the termination of the installation process is detected;
recompiling the installation script based on the modified installation script;
running the recompiled installation script in the operating system environment on the first memory, and installing the operating system in the computer device according to the installation configuration information;
wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
In the foregoing solution, optionally, modifying, based on the preset configuration file, a relevant code for popping up a preset installation warning message in an installation script loaded in a memory of a computer device, includes:
determining relevant codes used for popping up preset installation warning information in the uninitialized script of the installation script;
modifying related codes used for popping up preset installation warning information in the uninitialized script; wherein the installation script comprises an initialized script and an uninitialized script;
accordingly, the recompiling installation script based on the modified installation script comprises:
recompiling the modified uninitialized script.
In a second aspect, an embodiment of the present invention provides an apparatus for automatically installing an operating system, which is applied to a computer apparatus, and the apparatus includes:
the acquisition module is used for informing the initialization script of the operating system to read a preset configuration file from the second memory after the first memory which stores the installation script of the operating system is started;
the control module is used for modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of the computer device based on the preset configuration file; installing the operating system at the computer device based on the modified installation script.
In the foregoing scheme, optionally, the obtaining module is further configured to:
analyzing the preset configuration file, and acquiring installation configuration information and a pre-installation script from the preset configuration file;
the pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
In the foregoing scheme, optionally, the control module is further configured to:
running the pre-installation script, and modifying related codes used for popping up preset installation warning information in the installation script;
suspending an installation process in a system process; wherein the system is in an operating system environment on the first memory after the first memory is booted.
In the foregoing scheme, optionally, the control module is further configured to:
restarting the installation process when the termination of the installation process is detected;
recompiling the installation script based on the modified installation script;
running the recompiled installation script in the operating system environment on the first memory, and installing the operating system in the computer device according to the installation configuration information;
wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
In a third aspect, an embodiment of the present invention further provides a system for automatically installing an operating system, where the system includes:
a computer device for controlling the operation of a computer,
the first memory is connected with the computer device and stores an installation script for installing an operating system;
the second memory is connected with the computer device and stores a preset configuration file for modifying the installation script;
the device for automatically installing the operating system is connected with the computer device and used for modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in the memory of the computer device based on the preset configuration file read from the second memory after the first memory is started; installing the operating system at the computer device based on the modified installation script.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the method for automatically installing an operating system according to the embodiment of the present invention.
In the embodiment of the invention, after a first memory storing an installation script of an operating system is started, an initialization script of the operating system reads a preset configuration file from a second memory; modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of a computer device based on the preset configuration file; installing the operating system on the computer device based on the modified installation script; therefore, the preset installation warning information is not displayed in the process of installing the operating system in an unattended manner, the installation disc does not need to be customized again, and compared with a mode of modifying the script in the installation source file, changing the relevant codes for popping out the warning information and manufacturing a new installation optical disc, by adopting the technical scheme of the invention, the optical disc does not need to be customized again, and the user does not need to have the professional ability of modifying the script in the installation source file, so that the method is wider in application group and has universal applicability.
Drawings
Fig. 1 is a schematic flowchart of a method for automatically installing an operating system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an automatic installation of a VM EXSi operating system according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for automatically installing an operating system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system for automatically installing an operating system according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
The first embodiment is as follows:
an embodiment of the present invention provides a method for automatically installing an operating system, which is applied to a computer device, and as shown in fig. 1, the method includes:
step 101, after the first memory storing the installation script of the operating system is started, the initialization script of the operating system reads a preset configuration file from the second memory.
The operating system may be a VM exii operating system, and the installation script may be an installation script described in Python language.
The first memory is a device such as an optical disk, a hard disk, a U disk, a memory card and the like which can store an installation script of an operating system; the second memory is a device capable of storing preset configuration files, such as an optical disk, a hard disk, a U disk, a memory card and the like.
Here, the first memory and the second memory are two independent memories.
And 102, modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in the memory of the computer device based on the preset configuration file.
Optionally, before modifying, based on the preset configuration file, a relevant code for popping up a preset installation warning message in an installation script loaded into a memory of a computer device, the method includes:
and analyzing the preset configuration file, and acquiring installation configuration information and a preset script from the preset configuration file.
The pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
Wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
Here, the password setting refers to a password setting of the operating system EXSi.
Here, the hard disk setting refers to which hard disk is specifically stored on the computer apparatus.
As an embodiment, the modifying, based on the preset configuration file, the relevant code for popping up the preset installation warning information in the installation script loaded in the memory of the computer device includes:
running the pre-installation script, and modifying related codes used for popping up preset installation warning information in the installation script;
suspending an installation process in a system process; wherein the system is in an operating system environment on the first memory after the first memory is booted.
Here, to abort the installation process in the system process means to abort the Python process in the system process.
In the foregoing solution, optionally, modifying, based on the preset configuration file, a relevant code for popping up a preset installation warning message in an installation script loaded in a memory of a computer device, includes:
determining relevant codes used for popping up preset installation warning information in the uninitialized script of the installation script;
modifying related codes used for popping up preset installation warning information in the uninitialized script; wherein the installation script comprises an initialized script and an uninitialized script;
accordingly, the recompiling installation script based on the modified installation script comprises:
recompiling the modified uninitialized script.
Generally, the Python installation script is divided into two parts, wherein the first part is a source program script, and the second part is a binary program script; a second portion of binary program script that allows modification prior to installation; here, recompiling refers to regenerating a binary program script.
Therefore, the recompiled uninitialized script can be obtained to prepare for the subsequent installation of the operating system without popping up preset installation alarm information.
And 103, installing the operating system in the computer device based on the modified installation script.
As an embodiment, the installing the operating system on the computer device based on the modified installation script includes:
restarting the installation process when the termination of the installation process is detected;
recompiling the installation script based on the modified installation script;
and running the recompiled installation script in the operating system environment on the first memory, and installing the operating system in the computer device according to the installation configuration information.
Wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
In this way, since the first storage and the second storage are independent, the modified installation script is loaded into the memory of the computer device, and the original installation script in the first storage is not modified, the original installation script in the first storage is not destroyed, and both the first storage and the second storage can be suitable for operating system installation of a plurality of computer devices.
According to the technical scheme, after a first storage device which stores an installation script of an operating system is started, an initialization script of the operating system reads a preset configuration file from a second storage device; modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of a computer device based on the preset configuration file; installing the operating system on the computer device based on the modified installation script; therefore, the preset installation warning information is not displayed in the process of installing the operating system in an unattended manner, the installation disc does not need to be customized again, and compared with a mode of modifying the script in the installation source file, changing the relevant codes for popping out the warning information and manufacturing a new installation optical disc, by adopting the technical scheme of the invention, the optical disc does not need to be customized again, and the user does not need to have the professional ability of modifying the script in the installation source file, so that the method is wider in application group and has universal applicability.
Example two
Fig. 2 is a schematic flowchart of automatically installing a VM exi operating system according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes:
step 201: after the optical disc loaded with the VM exis operating system is started, the installation script of the Operating System (OS) is loaded into the memory of the computer device.
Here, before the optical disc loaded with the VM exi operating system is started, the optical disc is placed in advance in an installable position of the computer apparatus.
Here, the installation script of the OS loaded into the memory of the computer apparatus is writable. The scripts are written in the Python language and the text can be modified by editing.
Step 202, the initialization script of the OS reads and analyzes a preset configuration file on the usb disk to obtain installation configuration information and a Pre-installation (Pre-install) script.
Here, the usb disk stores a preset configuration file installed unattended.
Here, the preset configuration file includes installation configuration information and a pre-installation script.
The pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
Wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
Here, the installation mechanism of the VMware ESXi system, which is itself capable of supporting a pre-install (pre-install) script of the preset configuration file.
Here, the installation script of the OS includes: initializing scripts and uninitialized scripts; the initialization script is a script which runs first and is responsible for reading a preset configuration file in the USB flash disk, namely acquiring installation configuration information and a preinstalled script. The uninitialized script is a post-run script, and the uninitialized script comprises: and the related code used for popping up the preset installation warning information in the process of installing the ESxi operating system.
Step 203, the Pre-install script automatically runs, firstly the Python script code is modified, and then the Python process is stopped.
Here, the pre-install script is executed before the uninitialized script in the installation script of the OS is started.
The pre-install script is used for modifying relevant codes used for popping up preset installation warning information in the uninitialized script in the installation script, so that the preset installation warning information is not displayed in the process of installing the operating system unattended.
Here, the modification includes operations of finding, editing, replacing, and the like.
And step 204, automatically restarting the Python process, and recompiling the Python script.
In pre-install scripts, the "python" process in the system process needs to be aborted. Thus, the system automatically restarts the python process, recompiles and runs the modified python script, and makes the previous modification effective.
Step 205, OS installation begins.
Specifically, the OS is installed based on the recompiled Python script, and the EXSi operating system is installed on the computer device.
In fact, after the installation disk for installing the ESXi system is started, the installation disk is first in the OS environment on the optical disk, and the installation program runs in the OS environment; and finally copying the file to the computer device of the user, wherein when the user uses the EXSi operating system, the OS is started from the hard disk of the computer device.
Compared with the existing mode of modifying the installation script in the installation source file, changing the relevant code for popping out the warning information and making a new installation optical disk to avoid popping out the warning information in the installation process, the mode needs to make the installation optical disk again, so the workload is large, the requirement on a user is quite high, the user is required to have programming capability, and the ordinary user cannot make the installation optical disk again. In addition, the file to be modified is placed on the optical disc, and cannot be edited at any time, and if the content is to be modified, the optical disc is manufactured again. By adopting the technical scheme of the invention, the technical problem is not existed, the preset installation warning information is not displayed in the process of installing the operating system under the unattended condition, the installation disc does not need to be customized again, and compared with the mode of modifying the script in the installation source file, changing the relevant code for popping out the warning information and manufacturing a new installation optical disc, the technical scheme of the invention does not need to customize the optical disc again, and does not need the professional ability of modifying the script in the installation source file of a user, so that the invention has wider application group and universal applicability.
EXAMPLE III
An embodiment of the present invention provides an apparatus for automatically installing an operating system, which is applied to a computer apparatus, and fig. 3 is a schematic structural diagram of the apparatus for automatically installing an operating system according to the embodiment of the present invention, as shown in fig. 3, the apparatus for automatically installing an operating system includes an obtaining module 31 and a control module 32; wherein the content of the first and second substances,
the obtaining module 31 is configured to notify the initialization script of the operating system to read a preset configuration file from the second memory after the first memory storing the installation script of the operating system is started;
the control module 32 is configured to modify, based on the preset configuration file, a relevant code for popping up a preset installation warning message in an installation script loaded in a memory of the computer device; installing the operating system at the computer device based on the modified installation script.
As an embodiment, the obtaining module 31 is further configured to:
analyzing the preset configuration file, and acquiring installation configuration information and a pre-installation script from the preset configuration file;
the pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
As an embodiment, the control module 32 is further configured to:
running the pre-installation script, and modifying related codes used for popping up preset installation warning information in the installation script;
suspending an installation process in a system process; wherein the system is in an operating system environment on the first memory after the first memory is booted.
As an embodiment, the control module 32 is further configured to:
restarting the installation process when the termination of the installation process is detected;
recompiling the installation script based on the modified installation script;
running the recompiled installation script in the operating system environment on the first memory, and installing the operating system in the computer device according to the installation configuration information;
wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
It should be understood by those skilled in the art that the functions of the modules in the apparatus for automatically installing an operating system according to the present embodiment can be understood by referring to the related description of the method for automatically installing an operating system.
In practical applications, the specific structures of the obtaining module 31 and the control module 32 may correspond to a processor. The specific structure of the processor may be an electronic component or a collection of electronic components having a Processing function, such as a Microprocessor (MCU), a Digital Signal Processor (DSP), or a Programmable Logic device (PLC). The processor includes executable codes, the executable codes are stored in a storage medium, the processor can be connected with the storage medium through a communication interface such as a bus, and when the corresponding functions of specific units are executed, the executable codes are read from the storage medium and executed. The portion of the storage medium used to store the executable code is preferably a non-transitory storage medium. The executable code is used for executing the control method described in the above embodiments.
The device for automatically installing the operating system does not need to re-customize the optical disc or use personnel to have the basic capability of modifying the script in the installation source file, and has wider application group and universal applicability.
Example four
An embodiment of the present invention further provides a system for automatically installing an operating system, as shown in fig. 4, the system includes:
the computer device 10 is provided with a display device,
a first memory 20, connectable to the computer device 10, for storing an installation script for installing an operating system;
a second memory 30, connectable to the computer device 10, for storing a preset configuration file for modifying the installation script;
an automatic operating system installation device 40, connected to the computer device 10, for modifying the relevant codes for popping up the preset installation warning messages in the installation scripts loaded into the memory of the computer device 10 based on the preset configuration file read from the second memory 30 after the first memory 20 is started; installing the operating system on the computer device 10 based on the modified installation script.
Here, it should be noted that: the hardware components of the apparatus 40 for automatically installing an operating system can refer to fig. 3, and are not described herein. For technical details not disclosed in the embodiments of the present invention, refer to the description of the embodiments of the method of the present invention.
The system for automatically installing the operating system can not display preset installation warning information in the process of installing the operating system unattended, does not need to customize an optical disc again, does not need to enable users to have the basic capability of modifying scripts in an installation source file, is wider in applicable group and has universal applicability.
The present embodiment also provides a storage medium storing a computer program, where the computer program is executed by a processor, and is capable of implementing any one or more of the methods for automatically installing an operating system.
The computer storage medium may be of various types, and in this embodiment may preferably be a non-transitory storage medium.
It should be understood by those skilled in the art that the functions of the programs in the storage medium of the present embodiment can be understood by referring to the description related to the method for automatically installing the operating system described in the embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A method for automatically installing an operating system, applied to a computer device, is characterized by comprising the following steps:
after a first memory storing an installation script of an operating system is started, an initialization script of the operating system reads a preset configuration file from a second memory; the installation script comprises an initialized script and an uninitialized script;
modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of a computer device based on the preset configuration file;
installing the operating system on the computer device based on the modified installation script;
before modifying, based on the preset configuration file, a relevant code for popping up preset installation warning information in an installation script loaded into a memory of a computer device, the method includes:
analyzing the preset configuration file, and acquiring installation configuration information and a pre-installation script from the preset configuration file; the pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
2. The method according to claim 1, wherein modifying, based on the preset configuration file, relevant code in an installation script loaded into a memory of a computer device for popping up preset installation warning information comprises:
running the pre-installation script, and modifying related codes used for popping up preset installation warning information in the installation script;
suspending an installation process in a system process; wherein the system is in an operating system environment on the first memory after the first memory is booted.
3. The method of claim 2, wherein installing the operating system at the computer device based on the modified installation script comprises:
restarting the installation process when the termination of the installation process is detected;
recompiling the installation script based on the modified installation script;
running the recompiled installation script in the operating system environment on the first memory, and installing the operating system in the computer device according to the installation configuration information;
wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
4. The method according to claim 3, wherein modifying the relevant code for popping up the preset installation warning message in the installation script loaded into the memory of the computer device based on the preset configuration file comprises:
determining relevant codes used for popping up preset installation warning information in the uninitialized script of the installation script;
modifying related codes used for popping up preset installation warning information in the uninitialized script; wherein the installation script comprises an initialized script and an uninitialized script;
accordingly, the recompiling installation script based on the modified installation script comprises:
recompiling the modified uninitialized script.
5. An apparatus for automatically installing an operating system, applied to a computer apparatus, the apparatus comprising:
the acquisition module is used for informing the initialization script of the operating system to read a preset configuration file from the second memory after the first memory which stores the installation script of the operating system is started; the installation script comprises an initialized script and an uninitialized script;
the control module is used for modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in a memory of the computer device based on the preset configuration file; installing the operating system on the computer device based on the modified installation script;
wherein the obtaining module is further configured to:
analyzing the preset configuration file, and acquiring installation configuration information and a pre-installation script from the preset configuration file; the pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
6. The apparatus of claim 5, wherein the control module is further configured to:
running the pre-installation script, and modifying related codes used for popping up preset installation warning information in the installation script;
suspending an installation process in a system process; wherein the system is in an operating system environment on the first memory after the first memory is booted.
7. The apparatus of claim 6, wherein the control module is further configured to:
restarting the installation process when the termination of the installation process is detected;
recompiling the installation script based on the modified installation script;
running the recompiled installation script in the operating system environment on the first memory, and installing the operating system in the computer device according to the installation configuration information;
wherein the installation configuration information at least includes: password setting, network setting and hard disk setting.
8. A system for automatically installing an operating system, the system comprising:
a computer device for controlling the operation of a computer,
the first memory is connected with the computer device and stores an installation script for installing an operating system; the installation script comprises an initialized script and an uninitialized script;
the second memory is connected with the computer device and stores a preset configuration file for modifying the installation script;
the device for automatically installing the operating system is connected with the computer device and used for modifying relevant codes which are used for popping up preset installation warning information and loaded in an installation script in the memory of the computer device based on the preset configuration file read from the second memory after the first memory is started; installing the operating system on the computer device based on the modified installation script;
the device for automatically installing the operating system is further used for analyzing the preset configuration file before modifying a relevant code which is used for popping up preset installation warning information and is loaded into an installation script in a memory of the computer device based on the preset configuration file, and obtaining installation configuration information and a pre-installation script from the preset configuration file; the pre-installation script is used for modifying relevant codes used for popping up preset installation warning information in the installation script.
CN201710475923.6A 2017-06-21 2017-06-21 Method, device and system for automatically installing operating system Active CN107357608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710475923.6A CN107357608B (en) 2017-06-21 2017-06-21 Method, device and system for automatically installing operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710475923.6A CN107357608B (en) 2017-06-21 2017-06-21 Method, device and system for automatically installing operating system

Publications (2)

Publication Number Publication Date
CN107357608A CN107357608A (en) 2017-11-17
CN107357608B true CN107357608B (en) 2020-09-25

Family

ID=60273966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710475923.6A Active CN107357608B (en) 2017-06-21 2017-06-21 Method, device and system for automatically installing operating system

Country Status (1)

Country Link
CN (1) CN107357608B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297645B (en) * 2019-06-28 2021-09-14 联想(北京)有限公司 System installation method and electronic equipment
CN111782230B (en) * 2020-07-07 2022-05-31 联想(北京)有限公司 Program installation control method and device and electronic equipment
CN113064607A (en) * 2021-06-02 2021-07-02 统信软件技术有限公司 Installation method of operating system, computing equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763275A (en) * 2009-12-31 2010-06-30 华为终端有限公司 Automatic operation method and device, and mobile device
CN103713916A (en) * 2012-10-09 2014-04-09 华平信息技术股份有限公司 Automatic application program running method and automatic application program running system in Windows embedded system
CN104267947A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Method and device for editing popup picture
CN105446758A (en) * 2014-08-29 2016-03-30 昆达电脑科技(昆山)有限公司 Method for installing operating system
US9342386B1 (en) * 2013-09-05 2016-05-17 Google Inc. Messaging channel for web pages, extensions, and applications to communicate
CN105653526A (en) * 2014-11-10 2016-06-08 腾讯科技(深圳)有限公司 Page access method and device
CN106383724A (en) * 2016-08-30 2017-02-08 广西电网有限责任公司 Tomcat and Sql Server combined one-key automatic deploying method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10102301B2 (en) * 2010-04-01 2018-10-16 Cloudflare, Inc. Internet-based proxy security services

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763275A (en) * 2009-12-31 2010-06-30 华为终端有限公司 Automatic operation method and device, and mobile device
CN103713916A (en) * 2012-10-09 2014-04-09 华平信息技术股份有限公司 Automatic application program running method and automatic application program running system in Windows embedded system
US9342386B1 (en) * 2013-09-05 2016-05-17 Google Inc. Messaging channel for web pages, extensions, and applications to communicate
CN105446758A (en) * 2014-08-29 2016-03-30 昆达电脑科技(昆山)有限公司 Method for installing operating system
CN104267947A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Method and device for editing popup picture
CN105653526A (en) * 2014-11-10 2016-06-08 腾讯科技(深圳)有限公司 Page access method and device
CN106383724A (en) * 2016-08-30 2017-02-08 广西电网有限责任公司 Tomcat and Sql Server combined one-key automatic deploying method

Also Published As

Publication number Publication date
CN107357608A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US7631173B2 (en) Method and system for performing pre-boot operations from an external memory including memory address and geometry
US9672112B2 (en) Backing up firmware during initialization of device
US20160188345A1 (en) Method of a UEFI firmware and Computer System thereof
US10289399B2 (en) System firmware configuration data
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
CN107357608B (en) Method, device and system for automatically installing operating system
KR20130107313A (en) Method of provisioning firmware in an operating system (os) absent services environment
US10481924B2 (en) Dynamically managing a serial port interface connected to a direct console user interface (DCUI) of virtualization software using headless flags
US10127050B2 (en) Efficient booting system
US10922116B2 (en) Creating operating system volumes
WO2016119548A1 (en) Method for preventing software decompilation, and method and apparatus for preventing decompilation software from starting
CN112506745B (en) Memory temperature reading method and device and computer readable storage medium
CN114756290B (en) Operating system installation method, device and readable storage medium
CN103064705B (en) Computer system starting processing method and device
CN116009921A (en) Method, device and medium for upgrading embedded operating system
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
US8949588B1 (en) Mobile telephone as bootstrap device
CN109614156B (en) Method, device and system for supporting driving of starting type external equipment
CN111433747A (en) Virtual memory for loading an operating system
US9852028B2 (en) Managing a computing system crash
CN109471630B (en) Application processing method and device
WO2021154200A1 (en) Firmware corruption recovery
WO2008048581A1 (en) A processing device operation initialization system
CN114860268A (en) Operating system installation method and device, electronic equipment and readable storage medium
US9141419B1 (en) Capturing and restoring an appliance image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant