CN107357608A - The method, apparatus and system of a kind of automatic installing operating system - Google Patents

The method, apparatus and system of a kind of automatic installing operating system Download PDF

Info

Publication number
CN107357608A
CN107357608A CN201710475923.6A CN201710475923A CN107357608A CN 107357608 A CN107357608 A CN 107357608A CN 201710475923 A CN201710475923 A CN 201710475923A CN 107357608 A CN107357608 A CN 107357608A
Authority
CN
China
Prior art keywords
installation
script
operating system
memory
computer
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.)
Granted
Application number
CN201710475923.6A
Other languages
Chinese (zh)
Other versions
CN107357608B (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

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 kind of method, apparatus of automatic installing operating system and system, wherein, the method applied to the automatic installing operating system of computer installation includes:After being stored with the first memory startup of the installation script of operating system, the initializtion script of operating system reads preset configuration file from second memory;The correlative code for being used to eject default installation warning message in the installation script that is loaded onto in computer installation internal memory is modified based on the preset configuration file;The operating system is installed in the computer installation based on amended installation script.Using technical scheme described in the embodiment of the present invention, default installation warning message can not be shown in unattended installation operation systematic procedure, it is not necessary to customize mounting disc again, and it is wider to be applicable colony.

Description

The method, apparatus and system of a kind of automatic installing operating system
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method, apparatus of automatic installing operating system and is System.
Background technology
In VMware ESXi unattended installation process, it is possible to some warning messages can be ejected, such as:Network interface card It is upper to prompt " network not active " without slotting netting twine;Network settings be DHCP (DHCP, Dynamic Host Configuration Protocol) if when distribution less than Internet protocol address (IP, Internet Protocol) address, warning message can also be ejected.Also, every warning message stops just automatic closing, Ran Houcai after tens of seconds Installation can be continued executing with, although this warning message will not cause install failure, can make it that the set-up time is elongated.Moreover, this A little warning messages can cause to mislead to user, such as, user sees these warning messages, and what event is the system of may think that gone out Barrier.
The content of the invention
In view of this, can be at nobody present invention contemplates that providing the method, apparatus and system of a kind of automatic installing operating system Default installation warning message is not shown in installation operation systematic procedure on duty, it is not necessary to customize mounting disc again, and be applicable colony more Extensively.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiments of the invention provide a kind of method of automatic installing operating system, filled applied to computer Put, methods described includes:
Be stored with the installation script of operating system first memory start after, the initializtion script of operating system is from second Memory reads preset configuration file;
Based on the preset configuration file in the installation script that is loaded onto in computer installation internal memory be used to eject it is pre- If the correlative code of installation warning message is modified;
The operating system is installed in the computer installation based on amended installation script.
In such scheme, alternatively, it is described based on the preset configuration file to being loaded onto in computer installation internal memory Before the correlative code for being used to eject default installation warning message in installation script is modified, methods described includes:
The preset configuration file is parsed, installation configuration information and pre-installation pin are obtained from the preset configuration file This;
Wherein, the pre-installation script, for the phase to being used to eject default installation warning message in the installation script Code is closed to modify.
In such scheme, alternatively, it is described based on the preset configuration file to being loaded onto in computer installation internal memory The correlative code for being used to eject default installation warning message in installation script is modified, including:
The pre-installation script is run, changes the related generation for being used for ejecting default installation warning message in the installation script Code;
Erection schedule in suspension system process;Wherein, the system is after first memory starts, in the first storage The system in operating system environment on device.
It is alternatively, described that the behaviour is installed in the computer installation based on amended installation script in such scheme Make system, including:
When detecting that erection schedule stops, the erection schedule is restarted;
Installation script is recompilated based on amended installation script;
Installation script after operation is recompilated in the operating system environment on first memory, and according to described Configuration information is installed the operating system is installed in the computer installation;
Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
In such scheme, alternatively, it is described based on the preset configuration file to being loaded onto in computer installation internal memory The correlative code for being used to eject default installation warning message in installation script is modified, including:
Determine to be used for the correlative code for ejecting default installation warning message in the no initializtion script of the installation script;
The correlative code for being used to eject default installation warning message in the no initializtion script is modified;Wherein, The installation script includes initializtion script and no initializtion script;
Correspondingly, it is described that installation script is recompilated based on amended installation script, including:
Amended no initializtion script is recompilated.
Second aspect, the embodiments of the invention provide a kind of device of automatic installing operating system, is filled applied to computer Put, described device includes:
Acquisition module, for after being stored with the first memory of installation script of operating system and starting, notice to operate system The initializtion script of system reads preset configuration file from second memory;
Control module, for based on the preset configuration file to being loaded onto in the installation script in computer installation internal memory The correlative code for being used to eject default installation warning message modify;Based on amended installation script in the computer Device installs the operating system.
In such scheme, alternatively, the acquisition module, it is additionally operable to:
The preset configuration file is parsed, installation configuration information and pre-installation pin are obtained from the preset configuration file This;
Wherein, the pre-installation script, for the phase to being used to eject default installation warning message in the installation script Code is closed to modify.
In such scheme, alternatively, the control module, it is additionally operable to:
The pre-installation script is run, changes the related generation for being used for ejecting default installation warning message in the installation script Code;
Erection schedule in suspension system process;Wherein, the system is after first memory starts, in the first storage The system in operating system environment on device.
In such scheme, alternatively, the control module, it is additionally operable to:
When detecting that erection schedule stops, the erection schedule is restarted;
Installation script is recompilated based on amended installation script;
Installation script after operation is recompilated in the operating system environment on first memory, and according to described Configuration information is installed the operating system is installed in the computer installation;
Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
The third aspect, the embodiment of the present invention additionally provide a kind of system of automatic installing operating system, and the system includes:
Computer installation,
First memory, it is connected with computer installation, is stored with the installation script for installation operation system;
Second memory, it is connected with computer installation, is stored with the preset configuration text for changing the installation script Part;
The device of automatic installing operating system, is connected with computer installation, for the first memory startup after, Based on the preset configuration file read from second memory to being loaded onto in the installation script in computer installation internal memory Correlative code for ejecting default installation warning message is modified;Filled based on amended installation script in the computer Put the installation operating system.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable storage medium, in the computer-readable storage medium Computer executable instructions are stored with, the computer executable instructions are used to perform the automatic installation described in the embodiment of the present invention The method of operating system.
In the embodiment of the present invention, after the first memory startup for the installation script for being stored with operating system, operating system Initializtion script reads preset configuration file from second memory;Based on the preset configuration file to being loaded onto computer installation The correlative code for being used to eject default installation warning message in installation script in internal memory is modified;Based on amended peace Fill script and the operating system is installed in the computer installation;In this way, can be in unattended installation operation systematic procedure not The default installation warning message of display, it is not necessary to customize mounting disc again, the script in source file is installed with respect to modification, bullet The correlative code for going out warning message is given up, and is made for this mode of new fixing disc, using technical side of the present invention Case, without customizing CD again, possess the professional ability of the script in modification installation source file without user of service, be applicable group Body is wider, has general applicability.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the method for automatic installing operating system provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of automatic installation VM EXSi operating systems provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the device of automatic installing operating system provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of the system of automatic installing operating system provided in an embodiment of the present invention.
Embodiment
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to the reality of the present invention Now it is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for limiting the present invention.
Embodiment one:
The embodiment of the present invention provides a kind of method of automatic installing operating system, applied to computer installation, such as Fig. 1 institutes State, methods described includes:
After step 101, the first memory for the installation script for being stored with operating system start, the initialization pin of operating system This reads preset configuration file from second memory.
Wherein, the operating system can be VM EXSi operating systems, and the installation script can use Python The installation script of description.
Wherein, the first memory is the peace that CD or hard disk or USB flash disk or storage card etc. are capable of storage program area The equipment for filling script;The second memory is that CD or hard disk or USB flash disk or storage card etc. can store preset configuration file Equipment.
Here, the first memory and the second memory are two independent memories.
Step 102, based on the preset configuration file to the use that is loaded onto in the installation script in computer installation internal memory Modified in the correlative code of the default installation warning message of ejection.
Alternatively, it is described based on the preset configuration file to being loaded onto in the installation script in computer installation internal memory Before correlative code for ejecting default installation warning message is modified, methods described includes:
The preset configuration file is parsed, installation configuration information and pre-installation pin are obtained from the preset configuration file This.
Wherein, the pre-installation script, for the phase to being used to eject default installation warning message in the installation script Code is closed to modify.
Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
Here, the password sets the password for referring to operating system EXSi to set.
Here, the hard disk, which is set, refers to specific storage to which block hard disk on computer installation.
As a kind of embodiment, it is described based on the preset configuration file to the peace that is loaded onto in computer installation internal memory The correlative code for being used to eject default installation warning message in dress script is modified, including:
The pre-installation script is run, changes the related generation for being used for ejecting default installation warning message in the installation script Code;
Erection schedule in suspension system process;Wherein, the system is after first memory starts, in the first storage The system in operating system environment on device.
Here, the erection schedule in suspension system process, the Python processes in suspension system process are referred to.
In such scheme, alternatively, it is described based on the preset configuration file to being loaded onto in computer installation internal memory The correlative code for being used to eject default installation warning message in installation script is modified, including:
Determine to be used for the correlative code for ejecting default installation warning message in the no initializtion script of the installation script;
The correlative code for being used to eject default installation warning message in the no initializtion script is modified;Wherein, The installation script includes initializtion script and no initializtion script;
Correspondingly, it is described that installation script is recompilated based on amended installation script, including:
Amended no initializtion script is recompilated.
In general, Python installation scripts are divided into two large divisions, and Part I is source program script, and Part II is two Binary program script;The binary program script of Part II, it is allowed to modify before the mounting;Here, recompility is Finger regenerates binary program script.
The no initializtion script after being recompilated is so, it is possible, for subsequent installation operating system and is not ejected default Installation warning information is prepared.
Step 103, the operating system installed in the computer installation based on amended installation script.
It is described that the operation is installed in the computer installation based on amended installation script as a kind of embodiment System, including:
When detecting that erection schedule stops, the erection schedule is restarted;
Installation script is recompilated based on amended installation script;
Installation script after operation is recompilated in the operating system environment on first memory, and according to described Configuration information is installed the operating system is installed in the computer installation.
Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
In this way, because the first memory and the second memory are independent, and what is changed is to be loaded onto calculating Installation script in machine device internal memory, the former installation script in first memory is not modified, therefore, described first deposits Former installation script in reservoir is not destroyed, and the first memory can be applied to multiple calculating with the second memory The operating system installation of machine device.
Technical scheme of the present invention, after the first memory startup for the installation script for being stored with operating system, operation system The initializtion script of system reads preset configuration file from second memory;Based on the preset configuration file to being loaded onto computer The correlative code for being used to eject default installation warning message in installation script in device internal memory is modified;After modification Installation script the operating system is installed in the computer installation;In this way, can be in unattended installation operation systematic procedure In do not show default installation warning message, it is not necessary to customize mounting disc again, the script in source file be installed with respect to modification, The correlative code of ejection warning message is given up, made for this mode of new fixing disc, using skill of the present invention Art scheme, without customizing CD again, possess the professional ability of the script in modification installation source file without user of service, fit It is wider with colony, there is general applicability.
Embodiment two
Fig. 2 is the schematic flow sheet of automatic installation VM EXSi operating systems provided in an embodiment of the present invention, as shown in Fig. 2 The flow includes:
Step 201:After being mounted with the optical disk start-up of VM EXSi operating systems, operating system (OS, Operating System installation script) can be all loaded into the internal memory of computer installation.
Here, it is mounted with before the optical disk start-up of VM EXSi operating systems, the CD is pre-placed in computer installation Can installation site.
Here, the installation script for the OS being loaded into the internal memory of computer installation is writeable.These scripts are to use What Python was write, editor's text can be carried out changing.
Step 202, OS initializtion script read and parse the preset configuration file on USB flash disk, obtain installing configuration information With pre-installation (Pre-install) script.
Here, the preset configuration file of unattended installation is stored with USB flash disk.
Here, the preset configuration file includes installation configuration information and pre-installation script.
Wherein, the pre-installation script, for the phase to being used to eject default installation warning message in the installation script Code is closed to modify.
Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
Here, the installation mechanism of VMware ESXi systems, its mechanism can support the pre- of the preset configuration file in itself (pre-install) script is installed.
Here, OS installation script includes:Initializtion script and no initializtion script;Wherein, the initializtion script is The script first run, is responsible for reading the preset configuration file in USB flash disk, that is, obtains installation configuration information and pre-installation script.Institute The script run after stating no initializtion script and being, the no initializtion script include:During ESXi operating systems are installed For ejecting the correlative code of default installation warning message.
Step 203, Pre-install script automatic runnings, Python scripted codes are first changed, then stop Python and enter Journey.
Here, pre-install scripts, be in OS installation script no initializtion script operation start before perform 's.
Wherein, the pre-install scripts, for being used to eject in the no initializtion script in the installation script The correlative code of default installation warning message is modified so that is not shown in unattended installation operation systematic procedure default Warning message is installed.
Here, the modification includes the operations such as lookup, editor, replacement.
Step 204, Python processes are restarted automatically, recompilate Python scripts.
, it is necessary to which " python " process in system process is stopped in pre-install scripts.So, system can be certainly The python scripts changed, are recompilated operation, modification above is come into force by dynamic restarting python processes.
Step 205, OS installations start.
Specifically, the Python scripts installation OS based on recompility, and EXSi operations system is installed on a computing means System.
In fact, after installation disk startup for installing ESXi systems, first in the OS environment on CD, journey is installed Sort run is in the environment of OS;Finally just copy on the computer installation of user, when user uses EXSi operating systems, be from Start OS on the computer device hard disk.
Relative to existing using the " installation script in modification installation source file, the correlative code of ejection warning message Give up, make new fixing disc " come avoid in installation process eject warning information mode for, due to this mode need Fixing disc is remake, workload is larger, and requires at a relatively high to user, it is desirable to which user has program capability, common to use Family can not remake fixing disc.In addition, the file to be changed is placed on CD, it is impossible to is edited at any time, to be changed its content If, make CD again again.And technical scheme of the present invention is used, can be at nobody not only in the absence of above-mentioned technical problem Default installation warning message is not shown in installation operation systematic procedure on duty, it is not necessary to mounting disc is customized again, with respect to repairing Change the script in installation source file, the correlative code of ejection warning message is given up, makes this mode of new fixing disc For, using technical scheme of the present invention, without customizing CD again, possess modification installation source file without user of service In script professional ability, be applicable colony it is wider, there is general applicability.
Embodiment three
The embodiments of the invention provide a kind of device of automatic installing operating system, and applied to computer installation, Fig. 3 is this The composition structural representation of the device for the automatic installing operating system that inventive embodiments provide, as shown in figure 3, the automatic installation The device of operating system includes acquisition module 31, control module 32;Wherein,
The acquisition module 31, for after being stored with the first memory of installation script of operating system and starting, notifying The initializtion script of operating system reads preset configuration file from second memory;
The control module 32, for based on installation of the preset configuration file to being loaded onto in computer installation internal memory The correlative code for being used to eject default installation warning message in script is modified;Based on amended installation script described Computer installation installs the operating system.
As a kind of embodiment, the acquisition module 31, it is additionally operable to:
The preset configuration file is parsed, installation configuration information and pre-installation pin are obtained from the preset configuration file This;
Wherein, the pre-installation script, for the phase to being used to eject default installation warning message in the installation script Code is closed to modify.
As a kind of embodiment, the control module 32, it is additionally operable to:
The pre-installation script is run, changes the related generation for being used for ejecting default installation warning message in the installation script Code;
Erection schedule in suspension system process;Wherein, the system is after first memory starts, in the first storage The system in operating system environment on device.
As a kind of embodiment, the control module 32, it is additionally operable to:
When detecting that erection schedule stops, the erection schedule is restarted;
Installation script is recompilated based on amended installation script;
Installation script after operation is recompilated in the operating system environment on first memory, and according to described Configuration information is installed the operating system is installed in the computer installation;
Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
It will be appreciated by those skilled in the art that in the device of the automatic installing operating system of the present embodiment each module work( Can, it can refer to the associated description of the method for foregoing automatic installing operating system and understand.
In practical application, above-mentioned acquisition module 31, the concrete structure of control module 32 may both correspond to processor.The place Manage implement body structure can be microprocessor (MCU, Micro Controller Unit), digital signal processor (DSP, Digital Signal Processing) or PLD (PLC, Programmable Logic Controller) Deng the set of electronic component or electronic component with processing function.Wherein, the processor includes executable code, institute State executable code to be stored in storage medium, the processor can be by the communication interfaces such as bus and the storage medium It is connected, when performing the corresponding function of specific each unit, is read from the storage medium and run the executable code. The part that the storage medium is used to store the executable code is preferably non-moment storage medium.Wherein, it is described executable Code is used to perform the control method described in the various embodiments described above.
The device of automatic installing operating system described in the present embodiment, without customizing CD again, have without user of service The basic capacity of script in standby modification installation source file, applicable colony is wider, has general applicability.
Example IV
The embodiment of the present invention additionally provides a kind of system of automatic installing operating system, as shown in figure 4, the system bag Include:
Computer installation 10,
First memory 20, it can be connected with computer installation 10, be stored with the installation script for installation operation system;
It second memory 30, can be connected with computer installation 10, be stored with for changing the default of the installation script Configuration file;
The device 40 of automatic installing operating system, is connected with computer installation 10, in the first memory 20 After startup, based on from the preset configuration file that second memory 30 is read to the peace that is loaded onto in the internal memory of computer installation 10 The correlative code for being used to eject default installation warning message in dress script is modified;Based on amended installation script in institute State computer installation 10 and the operating system is installed.
It need to be noted that be:The hardware composition of the device 40 of automatic installing operating system can refer to Fig. 3, not do herein Repeat.For the ins and outs not disclosed in the embodiment of the present invention, the description of the inventive method embodiment refer to.
The system of automatic installing operating system described in the present embodiment, it can not show in unattended installation operation systematic procedure Show default installation warning message, without customizing CD again, possess the script in modification installation source file without user of service Basic capacity, be applicable colony it is wider, there is general applicability.
The present embodiment also provides a kind of storage medium, and the storage medium is stored with computer program, the computer journey After sequence is executed by processor, method that foregoing any one or more automatic installing operating system can be realized.
The computer-readable storage medium can be various types of storage mediums, preferably be deposited in the present embodiment for non-moment Storage media.
It will be appreciated by those skilled in the art that in the storage medium of the present embodiment each program function, can refer to embodiment The associated description of the method for described automatic installing operating system and understand.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only A kind of division of logic function, there can be other dividing mode when actually realizing, such as:Multiple units or component can combine, or Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location;Both a place can be located at, multiple network lists can also be distributed to In member;Partly or entirely unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used To be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned Integrated unit can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists During execution, execution the step of including above method embodiment;And foregoing storage medium includes:Movable storage device, read-only deposit Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. is various can be with the medium of store program codes.
Or if the above-mentioned integrated unit of the present invention is realized in the form of software function module and is used as independent product Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product, The computer software product is stored in a storage medium, including some instructions are causing a computer equipment (can be with It is personal computer, server or network equipment etc.) perform all or part of each embodiment methods described of the present invention. And foregoing storage medium includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

  1. A kind of 1. method of automatic installing operating system, applied to computer installation, it is characterised in that methods described includes:
    After being stored with the first memory startup of the installation script of operating system, the initializtion script of operating system stores from second Device reads preset configuration file;
    Default peace is ejected to being used in the installation script that is loaded onto in computer installation internal memory based on the preset configuration file The correlative code of dress warning message is modified;
    The operating system is installed in the computer installation based on amended installation script.
  2. 2. according to the method for claim 1, it is characterised in that described to be calculated based on the preset configuration file being loaded onto It is described before the correlative code for being used to eject default installation warning message in installation script in machine device internal memory is modified Method includes:
    The preset configuration file is parsed, installation configuration information and pre-installation script are obtained from the preset configuration file;
    Wherein, the pre-installation script, for the related generation to being used to eject default installation warning message in the installation script Code is modified.
  3. 3. according to the method for claim 2, it is characterised in that described to be calculated based on the preset configuration file being loaded onto The correlative code for being used to eject default installation warning message in installation script in machine device internal memory is modified, including:
    The pre-installation script is run, changes the correlative code for being used for ejecting default installation warning message in the installation script;
    Erection schedule in suspension system process;Wherein, the system is after first memory starts, on first memory Operating system environment in system.
  4. 4. according to the method for claim 3, it is characterised in that described to be based on amended installation script in the computer Device installs the operating system, including:
    When detecting that erection schedule stops, the erection schedule is restarted;
    Installation script is recompilated based on amended installation script;
    Installation script after operation is recompilated in the operating system environment on first memory, and according to the installation Configuration information installs the operating system in the computer installation;
    Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
  5. 5. according to the method for claim 4, it is characterised in that described to be calculated based on the preset configuration file being loaded onto The correlative code for being used to eject default installation warning message in installation script in machine device internal memory is modified, including:
    Determine to be used for the correlative code for ejecting default installation warning message in the no initializtion script of the installation script;
    The correlative code for being used to eject default installation warning message in the no initializtion script is modified;Wherein, it is described Installation script includes initializtion script and no initializtion script;
    Correspondingly, it is described that installation script is recompilated based on amended installation script, including:
    Amended no initializtion script is recompilated.
  6. A kind of 6. device of automatic installing operating system, applied to computer installation, it is characterised in that described device includes:
    Acquisition module, for after being stored with the first memory of installation script of operating system and starting, notifying operating system Initializtion script reads preset configuration file from second memory;
    Control module, for based on the preset configuration file to the use that is loaded onto in the installation script in computer installation internal memory Modified in the correlative code of the default installation warning message of ejection;Based on amended installation script in the computer installation The operating system is installed.
  7. 7. device according to claim 6, it is characterised in that the acquisition module, be additionally operable to:
    The preset configuration file is parsed, installation configuration information and pre-installation script are obtained from the preset configuration file;
    Wherein, the pre-installation script, for the related generation to being used to eject default installation warning message in the installation script Code is modified.
  8. 8. device according to claim 7, it is characterised in that the control module, be additionally operable to:
    The pre-installation script is run, changes the correlative code for being used for ejecting default installation warning message in the installation script;
    Erection schedule in suspension system process;Wherein, the system is after first memory starts, on first memory Operating system environment in system.
  9. 9. device according to claim 8, it is characterised in that the control module, be additionally operable to:
    When detecting that erection schedule stops, the erection schedule is restarted;
    Installation script is recompilated based on amended installation script;
    Installation script after operation is recompilated in the operating system environment on first memory, and according to the installation Configuration information installs the operating system in the computer installation;
    Wherein, the installation configuration information comprises at least:Password setting, network settings, hard disk are set.
  10. 10. a kind of system of automatic installing operating system, it is characterised in that the system includes:
    Computer installation,
    First memory, it is connected with computer installation, is stored with the installation script for installation operation system;
    Second memory, it is connected with computer installation, is stored with the preset configuration file for changing the installation script;
    The device of automatic installing operating system, is connected with computer installation, for after first memory startup, being based on From the preset configuration file that second memory is read to being used in the installation script that is loaded onto in computer installation internal memory The correlative code of the default installation warning message of ejection is modified;Pacified based on amended installation script in the computer installation Fill the operating system.
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 true CN107357608A (en) 2017-11-17
CN107357608B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297645A (en) * 2019-06-28 2019-10-01 联想(北京)有限公司 A kind of system installation method and electronic equipment
CN111782230A (en) * 2020-07-07 2020-10-16 联想(北京)有限公司 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 (8)

* 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
US20160014087A1 (en) * 2010-04-01 2016-01-14 Cloudflare, Inc. Internet-based proxy service to limit internet visitor connection speed
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

Patent Citations (8)

* 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
US20160014087A1 (en) * 2010-04-01 2016-01-14 Cloudflare, Inc. Internet-based proxy service to limit internet visitor connection speed
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297645A (en) * 2019-06-28 2019-10-01 联想(北京)有限公司 A kind of system installation method and electronic equipment
CN110297645B (en) * 2019-06-28 2021-09-14 联想(北京)有限公司 System installation method and electronic equipment
CN111782230A (en) * 2020-07-07 2020-10-16 联想(北京)有限公司 Program installation control method and device 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

Also Published As

Publication number Publication date
CN107357608B (en) 2020-09-25

Similar Documents

Publication Publication Date Title
KR100911953B1 (en) System and method for operating system installation on a diskless computing platform
EP3518099B1 (en) Installation of operating system
JP6089064B2 (en) Method, computer system and memory device for updating software components
CN101297284B (en) Rebootless display driver upgrades
CN102439565B (en) Method and device for starting recovery
CN107357608A (en) The method, apparatus and system of a kind of automatic installing operating system
EP2746935A1 (en) User interface with splash screen
CN107632846A (en) Firmware upgrade method and device, Shelf management module
CA2508875A1 (en) System and apparatus for eliminating user interaction during hardware configuration at system boot
CN107329792B (en) Docker container starting method and device
US20060112311A1 (en) Device driver rollback
CN103988181A (en) Method and system for patching a virtual image
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN113391828B (en) Method and system for realizing system disk RAID division and installing operating system
CN105607972A (en) Abnormity remedying method and device
CN114756290B (en) Operating system installation method, device and readable storage medium
CN109918096A (en) A kind of installation method of server operating system, system and associated component
CN106775674A (en) A kind of equipment and its startup method based on universal guiding loading procedure
US9250942B2 (en) Hardware emulation using on-the-fly virtualization
CN111104173A (en) Protection design method of bootstrap program
CN104820646A (en) PCIE (peripheral component interface express) device dynamic scanning method supporting multi RC (remote control) in Linux system
CN102968358A (en) Quick recovery method of soft RAID1 deployment system
CN105162833A (en) Client computer management system and method applied to diskless workstation
JP2006525567A (en) Software adaptation method
CN102799449B (en) Multi-system starting method and system

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