CN109766105A - Drive programe installation method, device, server and computer readable storage medium - Google Patents

Drive programe installation method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN109766105A
CN109766105A CN201811584474.XA CN201811584474A CN109766105A CN 109766105 A CN109766105 A CN 109766105A CN 201811584474 A CN201811584474 A CN 201811584474A CN 109766105 A CN109766105 A CN 109766105A
Authority
CN
China
Prior art keywords
driver
mirror image
operating system
identification information
equipment identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811584474.XA
Other languages
Chinese (zh)
Inventor
蔡佳妮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811584474.XA priority Critical patent/CN109766105A/en
Publication of CN109766105A publication Critical patent/CN109766105A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The disclosure proposes a kind of drive programe installation method, device, server and computer readable storage medium, is related to field of computer technology.This method comprises: obtaining driver corresponding with the type of operating system mirror image of carry in the driving mirror image of carry, obtain the corresponding equipment identification information of driver, when equipment identification information is matched with the hardware configuration information of server, the corresponding driver of equipment identification information is determined as mountable driver, it installs for selection by the user, when operating system is installed, the mountable driver of user's selection is installed.So, user only needs to select the mountable driver being matched to according to self-demand, when operating system is installed, the driver of automatic installation user selection, it needs user voluntarily to search for, download after avoiding new installation operating system and the cumbersome of driver is installed, reduce the artificial waiting time compared with prior art, improves installation effectiveness, better user experience.

Description

Drive programe installation method, device, server and computer readable storage medium
Technical field
This disclosure relates to field of computer technology, in particular to a kind of drive programe installation method, device, service Device and computer readable storage medium.
Background technique
Currently, after operating system (Operating System, OS) is installed for equipment such as servers, in order to make it just It often works, needs to install necessary driver in new operating system, when the hardware configuration difference of equipment, needed for equipment Driver to be mounted is also not quite similar, and under different operating system, the installation method of driver also very much not phase Together.If by way of driver is installed manually, need user understand equipment particular hardware configuration, and voluntarily search and under The driver of device hardware adaptation is carried, whole installation process is comparatively laborious, and installation effectiveness is low, and user experience is poor.
Summary of the invention
The disclosure is designed to provide a kind of drive programe installation method, device, server and computer-readable storage Medium is selected with the driver for the hardware device adaptation that Auto-matching goes out server in the installation process of operating system for user Installation is selected, the installation effectiveness of driver is improved.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, the disclosure proposes a kind of drive programe installation method, it is applied to server, which comprises obtain Driver corresponding with the type of operating system mirror image of carry in the driving mirror image that getting carries;Obtain the driver pair The equipment identification information answered;When the equipment identification information is matched with the hardware configuration information of the server, set described The standby corresponding driver of identification information is determined as mountable driver, installs for selection by the user;When operating system is installed When completion, the mountable driver of user's selection is installed.
Second aspect, the disclosure also propose a kind of driver mounting device, are applied to server, and described device includes: Driver obtains module, driving corresponding with the type of operating system mirror image of carry in the driving mirror image for obtaining carry Program;Identification information obtains module, for obtaining the corresponding equipment identification information of the driver;Driver determines mould Block, for when the equipment identification information is matched with the hardware configuration information of the server, by the equipment identification information Corresponding driver is determined as mountable driver, installs for selection by the user;Driver installs module, for as behaviour When being installed as system, the mountable driver of user's selection is installed.
The third aspect, the disclosure also propose a kind of computer readable storage medium, are stored thereon with computer program, described When computer program is read out by the processor and runs, method described in above-mentioned first aspect is realized.
Fourth aspect, the disclosure also propose a kind of server, memory and processor including being stored with computer program, When the computer program is read and run by the processor, method described in above-mentioned first aspect is realized.
Compared with the prior art, the disclosure has the advantages that
Drive programe installation method, device provided by the disclosure, server and computer readable storage medium, this method Include: driver corresponding with the type of operating system mirror image of carry in the driving mirror image for obtain carry, obtains the drive The corresponding equipment identification information of dynamic program, when the equipment identification information is matched with the hardware configuration information of the server, The corresponding driver of the equipment identification information is determined as mountable driver, installs for selection by the user, works as operation When system is installed, the mountable driver of user's selection is installed.In this way, when installing an operating system, it can root It is set according to the hardware that the hardware configuration information of the OS Type and current device that are currently installed on is automatically matched to the server The driver of standby adaptation is selected for user, and user only needs to select driver to be installed according to self-demand, when operation is When system is installed, user's driver selected during installing operating system can be installed automatically, avoid new installation It needs user voluntarily to search for, download after operating system and the cumbersome of driver is installed, reduce artificial waiting compared with prior art Time improves the installation effectiveness of driver, better user experience.
Other feature and advantage of the disclosure will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing disclosure understanding.The purpose of the disclosure and other advantages can be by written specifications, power Specifically noted structure is achieved and obtained in sharp claim and attached drawing.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as to range It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other relevant attached drawings.
Fig. 1 shows the schematic diagram of Windows mirror image of the production with driver in the prior art
Fig. 2 shows the structural block diagrams of server provided by the disclosure.
Fig. 3 shows a kind of flow diagram of drive programe installation method provided by the disclosure.
Fig. 4 shows another flow diagram of drive programe installation method provided by the disclosure.
Fig. 5 shows another flow diagram of drive programe installation method provided by the disclosure.
Fig. 6 shows the schematic diagram of installation operating system provided by the disclosure.
Fig. 7 shows another flow diagram of drive programe installation method provided by the disclosure.
Fig. 8 shows the functional block diagram of driver mounting device provided by the disclosure.
Icon: 100- server;400- driver mounting device;110- memory;120- processor;130- communication connects Mouthful;410- driver obtains module;420- identification information obtains module;430- matching module;440- driver determines mould Block;450- driver copies module;460- driver installs module.
Specific embodiment
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described, it is clear that Described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually retouched in attached drawing here The component for the disclosure stated and shown can be arranged and be designed with a variety of different configurations.Therefore, below to mentioning in the accompanying drawings The detailed description of the embodiment of the disclosure of confession is not intended to limit claimed the scope of the present disclosure, but is merely representative of this Disclosed selected embodiment.Based on embodiment of the disclosure, those skilled in the art are in the premise for not making creative work Under every other embodiment obtained, belong to the disclosure protection range.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
During realizing technical solution provided by the present disclosure, through inventor the study found that being installed currently with driving Tool guides user configuration and the mode that driver is installed according to the hardware information detected, the installation and driving of operating system The installation of program is two independent processes, passes through operation driving installation tool after needing user that operating system is waited to be installed Driver is installed, therefore installation effectiveness is low, user experience is poor.
In order to realize the automatic installation of driver during installing operating system, the prior art provides a kind of incite somebody to action Driver is injected into the scheme of operating system mirror image, i.e., driver is packed into operating system mirror image, when execution has , it can be achieved that the installation of operating system and driver when the operating system mirror image of driver.To install Windows operating system For, by an included image deployment management tool (the Deployment Image Servicing of Windows operating system And Management, DISM), it can easily configure and update the function and program bag in Windows mirror image.Wherein, The process of Windows mirror image of the DISM tool making with driver is as shown in Figure 1, first with virtual drive or decompression Software by Windows image decompressing and extract/path source under two files of boot.wim and install.wim, then Windows mirror image is mounted to particular file folder by dism/mount-wim order, the content of boot.wim is loaded, will need The driver of installation is uniformly stored under a file directory, can be boot.wim by dism/add-driver order Add driver ,/recurse parameter can all drivers under recursive search file directory, driver addition terminates Afterwards, dism/umount-wim order is called to save and unload mirror image;Install.wim file is also used above-mentioned identical Method adds driver;Finally original Windows mirror image is replaced with the boot.wim file and install.wim file newly obtained In boot.wim file and install.wim file, to obtain new Windows mirror image.
Although the above-mentioned mode that driver is packed into operating system mirror image realizes automatic when installing operating system Driver is installed, but the process that driver is packed into operating system mirror image is cumbersome, it is difficult for ordinary user It spends higher;And since user needs that driver is bundled in operating system mirror image before installing operating system, therefore user It can not select to need driver to be mounted in the installation process of operating system, while also can not be according to the hardware information of equipment To detect the driver of adaptation.In addition, after driver is bundled to operating system mirror image so that operating system mirror image with Driver is highly coupled, once driver updates, then needs to repack updated driver to operation In system image, it is equivalent to and operating system mirror image is updated;And when driver is more, operation system is also resulted in System mirror image becomes very huge.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and the hereinafter disclosure are proposed regarding to the issue above, all It should be the contribution that inventor makes the disclosure during invention.
Based on the research to drawbacks described above, the present disclosure proposes one kind to be packed into operation for driver not needing user In the case where system image, the technical solution of driver in operating system installation process installed automatically is realized, to avoid User voluntarily searches for, downloads and install the cumbersome of driver after operating system installation, and user only need to be in installation operating system Selection needs driver to be mounted, and operating system mirror image and driving mirror image lower coupling in the process, when driving mirror image need into When row is updated or extended, does not need to carry out operating system mirror image additional extension or update work, that is, the update driven is disobeyed Rely the update in operating system.In the following, will describe in detail in conjunction with attached drawing to the content.
It referring to figure 2., is the structural block diagram of server 100 provided by the disclosure.Server 100 may include memory 110, processor 120 and communication interface 130, the memory 110, processor 120 and communication interface 130, each element are mutual It is directly or indirectly electrically connected, to realize the transmission or interaction of data.For example, these elements between each other can by one or A plurality of communication bus or signal wire, which are realized, to be electrically connected.Memory 110 can be used for storing software program and module, such as disclosure institute Corresponding program instruction/the module of the drive programe installation method and device of offer, processor 120 are stored in memory by executing Software program and module in 110, thereby executing various function application and data processing.The communication interface 130 can be used for Other node devices carry out the communication of signaling or data.
Wherein, memory 110 can be but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 120 may be a kind of IC chip, have signal handling capacity.The processor 120 can be logical With processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), specific integrated circuit (ASIC), ready-made programmable gate Array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It is appreciated that structure shown in Fig. 2 is only to illustrate, server 100 may also include than shown in Fig. 2 more or more Few component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software or its group It closes and realizes.
The disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The drive programe installation method that the disclosure discloses is realized when sequence is executed by processor 120.
It referring to figure 3., is the flow diagram of drive programe installation method provided by the disclosure.It should be noted that Drive programe installation method described in the disclosure is not limitation with Fig. 3 and specific order as described below, it should be understood that In other embodiments, the sequence of drive programe installation method part step described in the disclosure can phase according to actual needs Part steps interchangeable or therein also can be omitted or delete.The drive programe installation method can be applied to above-mentioned clothes Business device 100, below will be described in detail detailed process shown in Fig. 3.
Step S101 obtains driving journey corresponding with the type of operating system mirror image of carry in the driving mirror image of carry Sequence.
In the present embodiment, the automatic installation of driver is realized in the installation process of operating system due to needs, therefore First carry operating system mirror image and driving mirror image are needed before operating system is installed.Carry mirror image can be understood as image file Directly become a driver and distribute corresponding drive, as long as directly using file therein into drive.Implement When, it can use the mirror image carry function that special system installation tool provides and operating system mirror image and driving mirror image hung It carries, after image file can also being burnt to physical disc, physical disc insertion physical light is driven operation and realizes operating system mirror The carry of picture and driving mirror image.For example, after user is using opening operation system image in system installation tool and driving mirror image, System installation tool can detect current operation system mirror image first and drive the legitimacy of mirror image, after legitimacy verifies pass through, The type of the operating system mirror image of front mount is worked as in the judgement of system installation tool, and reads carry according to the type of operating system mirror image Driving mirror image in corresponding driver.
Specifically, the type of the operating system mirror image may include Windows mirror image and Linux mirror image, the driving mirror image It may include the driver of the exe type by encapsulation and the driver of rpm type, under Windows operating system usually The driver of exe type is needed, and usually requires the driver of rpm type under (SuSE) Linux OS.Therefore, work as operation System image and driving mirror image are by the way that after legitimacy verifies, the class of the operating system mirror image of front mount is worked as in the judgement of system installation tool Type then obtains the driver of the exe type in the driving mirror image when the operating system mirror image is Windows mirror image, When the operating system mirror image is Linux mirror image, then the driver of the rpm type in the driving mirror image is obtained.
Step S102 obtains the corresponding equipment identification information of driver.
It in the present embodiment, further include driving configuration file in the driving mirror image, record has drive in the driving configuration file The corresponding equipment identification information of dynamic program, system installation tool can obtain the corresponding equipment of driver from driving configuration file Identification information.
Step S103, when equipment identification information is matched with the hardware configuration information of server, by equipment identification information pair The driver answered is determined as mountable driver, installs for selection by the user.
In the present embodiment, which is the information of current hardware device in place on server 100, when setting When standby identification information is matched with hardware configuration information, show that the corresponding driver of the equipment identification information is adapted to the hardware configuration The corresponding hardware device of information, therefore the driver is determined as mountable driver and is supplied to user, for selection by the user Installation.
Step S104 installs the mountable driver of user's selection when operating system is installed.
In the present embodiment, after user selects to need mountable driver to be mounted, system installation tool starts to hold File in row operating system mirror image carries out the installation of operating system, when operating system is installed, then executes and presets Driving installation order to be installed to the mountable driver that user selects.For example, when operating system mirror image is When Windows mirror image, pre-set driving installation order is recorded in the SetupComplete.cmd script of Windows mirror image In, for the installation process of Windows operating system, default guides installation by the boot.wim file in Windows mirror image, Then it executes setup.exe to start that operating system is installed, (be equivalent at this time when proceeding to " welcoming the to use Windows " stage Operating system is installed), it is automatic to execute SetupComplete.cmd script, and then in the SetupComplete.cmd script Middle execution drives installation order, and records installation log, realizes the automatic installation of the mountable driver of user's selection.Work as behaviour Make system image be Linux mirror image when, it is pre-set driving installation order be recorded in Linux mirror image ks (kickstart, Automatic-answering back device script) in file, contain the problem of all installation procedures can be asked answer in ks file, for example system uses How time zone carries out subregion to driver, should install which software package etc., therefore can determine how installation operation based on ks file System, to realize the automatic installation of operating system;For the installation process of (SuSE) Linux OS, default passes through Linux mirror image In initrd.img file guide installation, the method installed by ks file configuration realizes the automation of installation process, works as behaviour When being installed as system, the automatic driving installation order executed in ks file completes the automatic installation of mountable driver.
In the present embodiment, the equipment identification information recorded in the driving configuration file includes device id (i.e. Device ID), vendor id (i.e. Vendor ID), sub- device id (i.e. Subdevice ID) and sub- vendor id (i.e. Subvendor ID) lead to The hardware device of driver adaptation can be uniquely determined by crossing the device id, vendor id, sub- device id and sub- vendor id, in this way, By the corresponding equipment identification information of driver each in reading driving configuration file, each driver adaptation can be determined Device type (such as network interface card, video card, sound card, mouse, keyboard etc.).
The hardware configuration information includes device id, the vendor id, sub- equipment of current hardware device in place on server 100 ID and sub- vendor id can uniquely determine one by Device ID, Device ID, Subdevice ID and Subvendor ID A hardware device (such as network interface card, video card, sound card, mouse, keyboard etc.).Wherein, current all hardware in place on server 100 Device ID, Device ID, Subdevice ID and the Subvendor ID of equipment, can use lspci tool (for showing Show the tool of all pci bus equipment or all devices being connected in the bus in system) it obtains.
In this way, using the device id, vendor id, sub- device id, the sub- vendor id that are recorded in driving configuration file, and Device ID, Device ID, Subdevice ID and the Subvendor ID of lspci tool acquisition can provide a user matching The mountable driver arrived selects to install for user.Specifically, as shown in figure 4, obtaining the corresponding equipment mark of driver After knowing information, this method further include:
Step S11 judges that the device id in equipment identification information, vendor id, sub- device id and sub- vendor id and hardware are matched Whether device id, vendor id, sub- device id and sub- vendor id in confidence breath correspond to unanimously;If corresponding consistent, it is determined that equipment Identification information is matched with hardware configuration information.
In the present embodiment, each hardware configuration information that lspci tool can be obtained and driving configuration file in record All devices identification information matched, judge device id, vendor id, sub- device id and the sub- manufacturer in equipment identification information ID in hardware configuration information device id, vendor id, sub- device id and sub- vendor id it is whether corresponding consistent, i.e., judgement is set respectively Whether the device id in device id and hardware configuration information in standby identification information consistent, the vendor id in equipment identification information with Whether the vendor id in hardware configuration information is consistent, and the sub- device id in equipment identification information is set with the son in hardware configuration information Whether standby ID is consistent, and whether the sub- vendor id in equipment identification information and the sub- vendor id in hardware configuration information are consistent.When setting The device id in device id, vendor id, sub- device id and sub- vendor id and hardware configuration information in standby identification information, manufacturer When ID, sub- device id and sub- vendor id correspond to consistent, show that the corresponding driver of the equipment identification information is adapted to the hardware and matches Confidence ceases corresponding hardware device.
It should be noted that in practical applications, it is understood that there may be multiple drivers correspond to identical equipment identification information, Therefore a hardware device adaptation driver be also likely to be present it is multiple.For example, when according to some hardware on server 100 When the mountable driver that the corresponding device id of equipment, vendor id, sub- device id and sub- vendor id are matched to there are 3, then will 3 mountable drivers being matched to are shown on installation interface, similarly, other hardware devices are matched to mountable Driver also can be displayed on installation interface, independently select to install convenient for user.
As it can be seen that when corresponding with the type of current operation system mirror image all in system installation tool acquisition driving mirror image After driver, the corresponding Device ID of driver each in driving configuration file, Device ID, Subdevice are utilized ID and Subvendor ID uniquely determines the hardware device of adaptation, and obtained using lspci tool Device ID, Device ID, Subdevice ID and Subvendor ID determine the hardware device in place on server 100, and then automatic Allot the mountable drive for being consistent with the type of current operation system mirror image, being adapted to the hardware device on current server 100 Dynamic program selects to install for user.Therefore, in whole installation process, user is only needed to select mountable drive according to self-demand Dynamic program automatically installs the mountable driver of user's selection, eliminates new peace when operating system is installed It voluntarily searches for, download after dress system and the cumbersome of driver is installed, operated for ordinary user simpler, conveniently.
Further, since being to carry out carry to operating system mirror image and driving mirror image respectively, compared to existing before installation operating system There is the mode that driver is packed into technology and installs driver when operating system mirror image realizes installation operating system automatically, The disclosure realizes the lower coupling of driving mirror image and operating system mirror image, so that the update of driver is independent of operating system Update, when needing to be extended driver or update, it is only necessary to add newer driver and modification in driving mirror image Configuration file is driven, without carrying out additional extension or update to operating system mirror image.
Further, for the ease of installed automatically when operating system is installed user selection mountable driving journey Sequence needs the mountable driver selected user to copy, to use during subsequent installation.As shown in figure 5, in step Before rapid S104, this method further include:
The mountable driver that user selects is copied in non-system disk by step S21 before installing operating system It saves, wherein non-system disk is different fdisks from the system disk of installation operating system.
In the present embodiment, due to that can be formatted system disk when installation operating system, in order to avoid mountable drive Dynamic program is deleted, therefore the mountable driver that user selects is copied in the temp directory of non-system disk and is saved.
Step S22, when installing an operating system, after formatting system disk and creation boot partition, by mountable driving Program is copied to boot partition from non-system disk.
As shown in fig. 6, either installing Windows operating system or (SuSE) Linux OS, it is necessary first to be grasped to installation The system disk for making system is formatted and creates boot partition, then copies the mountable driver saved on non-system disk Shellfish is into boot partition.When installing Windows operating system, is then guided and installed by boot.wim file, and pass through execution Driving installation order in SetupComplete.cmd script realizes the automatic installation of mountable driver;As installation Linux When operating system, then initrd.img file guidance installation, and the driving installation order realization by executing in ks file can be pacified Fill the automatic installation of driver.
Further, as shown in fig. 7, before step S104, this method further include:
Step S23, if operating system mirror image is Linux mirror image, when executing the pre-installation script in Linux mirror image, Mountable driver is copied in WindowsPE from boot partition;It is installed in operating system and executes Linux mirror After installation as in when script, the mountable driver in WindowsPE is copied in operating system.
In the present embodiment, due to during executing ks file, before (SuSE) Linux OS is installed, can again into The operation of row once format hard disk needs to guide in order to avoid the mountable driver in boot partition is formatted Mountable driver in subregion is first copied to WindowsPE, by mountable drive after (SuSE) Linux OS is installed Dynamic program copies in real system again.Specifically, the foot when operating system mirror image is Linux mirror image, in ks file Script (%post) wherein, pre-installs script in operating system and installs it after this section includes pre-installation script (%pre) and installs Preceding execution, script executes after operating system is installed after installation.In the installation process of operating system, in ks file %pre execute the stage, need mountable driver being copied to WindowsPE (i.e. anaconda from the boot partition Environment) in, the stage is executed in the %post of ks file, needs for the mountable driver in anaconda environment to be copied to very In real operating system, the automatic installation that the driving installation order in ks file realizes mountable driver is then executed.
Fig. 8 is please referred to, is the functional block diagram of driver mounting device 400 provided by the disclosure.It needs It is bright, driver mounting device 400 provided by the present embodiment, the technical effect and aforementioned side of basic principle and generation Method embodiment is identical, to briefly describe, does not refer to part in the present embodiment, can refer to corresponding interior in preceding method embodiment Hold.The driver mounting device 400 can be applied to above-mentioned server 100 comprising driver acquisition module 410, Identification information obtains module 420, matching module 430, driver determining module 440, driver copy module 450 and driving Program installs module 460.
The driver obtains the class driven in mirror image with the operating system mirror image of carry that module 410 is used to obtain carry The corresponding driver of type.
In the present embodiment, the type of the operating system mirror image includes Windows mirror image and Linux mirror image, the driving Program obtains module 410 and is specifically used for then obtaining in the driving mirror image when the operating system mirror image is Windows mirror image Exe type driver, when the operating system mirror image be Linux mirror image when, then obtain it is described driving mirror image in rpm The driver of type.
It is appreciated that the driver, which obtains module 410, can execute above-mentioned steps S101.
The identification information obtains module 420 for obtaining the corresponding equipment identification information of the driver.
It in the present embodiment, include driving configuration file in the driving mirror image, the driving configuration file record is The corresponding equipment identification information of driver is stated, which obtains module 420 and be specifically used for from the driving configuration file It is middle to obtain the corresponding equipment identification information of the driver.
It is appreciated that the identification information, which obtains module 420, can execute above-mentioned sub-step S102.
The matching module 430 is used to judge device id, vendor id, sub- device id and the Zi Chang in the equipment identification information Quotient ID in the hardware configuration information device id, vendor id, sub- device id and sub- vendor id it is whether corresponding consistent;If corresponding Unanimously, it is determined that the equipment identification information is matched with the hardware configuration information.
It is appreciated that the matching module 430 can execute above-mentioned steps S11.
The driver determining module 440 is used for the hardware configuration when the equipment identification information and the server 100 When information matches, the corresponding driver of the equipment identification information is determined as mountable driver, for selection by the user Installation.
It is appreciated that the driver determining module 440 can execute above-mentioned steps S103.
The driver copies module 450 and is used for before installing the operating system, will can pacify described in user's selection Dress driver, which is copied in non-system disk, to be saved, wherein the non-system disk and the system disk of the installation operating system are Different fdisks;It, will be described after formatting the system disk and creation boot partition when installing the operating system Mountable driver is copied to the boot partition from the non-system disk.
If it is Linux mirror image that driver copy module 450, which is also used to the operating system mirror image, described in execution When pre-installation script in Linux mirror image, the mountable driver is copied to WindowsPE from the boot partition In;When the operating system is installed and executes script after the installation in the Linux mirror image, by the WindowsPE In the mountable driver be copied in the operating system.
It is appreciated that driver copy module 450 can execute above-mentioned steps S21, step S22, step S23.
The driver is installed module 460 and is used for when operating system is installed, the mountable driving to user's selection Program is installed.
It is appreciated that driver installation module 460 can execute above-mentioned steps S104.
In conclusion drive programe installation method, device provided by the disclosure, server and computer-readable storage medium Matter obtains this method comprises: obtaining driver corresponding with the type of operating system mirror image of carry in the driving mirror image of carry The corresponding equipment identification information of the driver is taken, when the hardware configuration information of the equipment identification information and the server When matching, the corresponding driver of the equipment identification information is determined as mountable driver, is installed for selection by the user, When operating system is installed, the mountable driver of user's selection is installed.In this way, when installation operating system When, the server can be automatically matched to according to the hardware configuration information of the OS Type and current device that are currently installed on The driver of hardware device adaptation is selected for user, and user only needs to select driver to be installed according to self-demand, when When operating system is installed, user's driver selected during installing operating system can be installed automatically, avoided It needs user voluntarily to search for, download after new installation operating system and the cumbersome of driver is installed, reduce people compared with prior art The work waiting time, the installation effectiveness of driver is improved, operated for ordinary user simpler, conveniently, improved User experience.Further, since being to carry out carry to operating system mirror image and driving mirror image respectively, comparing before installation operating system Driver is packed into the side for installing driver when operating system mirror image realizes installation operating system automatically in the prior art Formula, the disclosure realizes the lower coupling of driving mirror image and operating system mirror image, so that the update of driver is independent of operation The update of system, when needing to be extended driver or update, it is only necessary to driving mirror image in addition newer driver and Modification driving configuration file, without carrying out additional extension or update to operating system mirror image.
It should be understood by those skilled in the art that, the disclosure can provide as the production of method, apparatus, equipment or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the disclosure Form.It can be used moreover, the disclosure can be used in the computer that one or more wherein includes computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.
The disclosure is flow chart and/or side of the reference according to disclosed method, device, equipment and computer program product Block diagram describes.It should be understood that each process and/or the side in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in frame and flowchart and/or the block diagram.These computer program instructions be can provide to logical With the processor of computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate a machine Device, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realizing in process The device for the function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In several embodiments provided by the disclosure, it should be understood that disclosed device and method can also pass through Other modes are realized.Device and method embodiment described above is only schematical, for example, the flow chart in attached drawing The device of multiple embodiments according to the disclosure, the system in the cards of method and computer program product are shown with block diagram Framework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generation A part of code, a part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they Sometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chart In each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is special Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the disclosure can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the disclosure all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs Illustrate, herein, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element There is also other identical elements in journey, method, article or equipment.
The foregoing is merely the alternative embodiments of the disclosure, are not limited to the disclosure, for the skill of this field For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (10)

1. a kind of drive programe installation method is applied to server, which is characterized in that the described method includes:
Obtain driver corresponding with the type of operating system mirror image of carry in the driving mirror image of carry;
Obtain the corresponding equipment identification information of the driver;
It is when the equipment identification information is matched with the hardware configuration information of the server, the equipment identification information is corresponding Driver be determined as mountable driver, install for selection by the user;
When operating system is installed, the mountable driver of user's selection is installed.
2. drive programe installation method as described in claim 1, which is characterized in that the type of the operating system mirror image includes Windows mirror image and Linux mirror image, it is described obtain carry driving mirror image in it is corresponding with the type of operating system mirror image of carry Driver the step of include:
When the operating system mirror image is Windows mirror image, then the driving journey of the exe type in the driving mirror image is obtained Sequence;
When the operating system mirror image is Linux mirror image, then the driver of the rpm type in the driving mirror image is obtained.
3. drive programe installation method as described in claim 1, which is characterized in that include driving configuration in the driving mirror image File, the driving configuration file record has the corresponding equipment identification information of the driver, described to obtain the driving journey The step of sequence corresponding equipment identification information includes:
The corresponding equipment identification information of the driver is obtained from the driving configuration file.
4. drive programe installation method as described in claim 1, which is characterized in that the equipment identification information and the hardware Configuration information includes device id, vendor id, sub- device id and sub- vendor id;It is described to obtain the corresponding equipment of the driver After the step of identification information, the method also includes:
Judge that device id, vendor id, sub- device id and sub- vendor id and the hardware configuration in the equipment identification information are believed Whether device id, vendor id, sub- device id and sub- vendor id in breath correspond to unanimously;
If corresponding consistent, it is determined that the equipment identification information is matched with the hardware configuration information.
5. drive programe installation method as described in claim 1, which is characterized in that it is described when operating system is installed, Before the step of being installed to the mountable driver of user's selection, the method also includes:
Before the operating system is installed, the mountable driver that user selects is copied in non-system disk and is protected It deposits, wherein the non-system disk is different fdisks from the system disk for installing the operating system;
When installing the operating system, after formatting the system disk and creation boot partition, by the mountable driving Program is copied to the boot partition from the non-system disk.
6. drive programe installation method as claimed in claim 5, which is characterized in that it is described when operating system is installed, Before the step of being installed to the mountable driver of user's selection, the method also includes:
If the operating system mirror image is Linux mirror image, when executing the pre-installation script in the Linux mirror image, by institute Mountable driver is stated to be copied in WindowsPE from the boot partition;It is installed and executes in the operating system After installation in the Linux mirror image when script, the mountable driver in the WindowsPE is copied to institute It states in operating system.
7. a kind of driver mounting device, it is applied to server, which is characterized in that described device includes:
Driver obtains module, corresponding with the type of operating system mirror image of carry in the driving mirror image for obtaining carry Driver;
Identification information obtains module, for obtaining the corresponding equipment identification information of the driver;
Driver determining module, for when the equipment identification information is matched with the hardware configuration information of the server, The corresponding driver of the equipment identification information is determined as mountable driver, is installed for selection by the user;
Driver installs module, for being carried out to the mountable driver of user's selection when operating system is installed Installation.
8. driver mounting device as claimed in claim 7, which is characterized in that the equipment identification information and the hardware Configuration information includes device id, vendor id, sub- device id and sub- vendor id;Described device further include:
Matching module, for judging the device id in the equipment identification information, vendor id, sub- device id and sub- vendor id and institute State whether the device id in hardware configuration information, vendor id, sub- device id and sub- vendor id correspond to unanimously;If corresponding consistent, Determine that the equipment identification information is matched with the hardware configuration information.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt When processor reads and runs, as the method according to claim 1 to 6 is realized.
10. a kind of server, which is characterized in that memory and processor including being stored with computer program, the computer When program is read and run by the processor, as the method according to claim 1 to 6 is realized.
CN201811584474.XA 2018-12-24 2018-12-24 Drive programe installation method, device, server and computer readable storage medium Pending CN109766105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811584474.XA CN109766105A (en) 2018-12-24 2018-12-24 Drive programe installation method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811584474.XA CN109766105A (en) 2018-12-24 2018-12-24 Drive programe installation method, device, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109766105A true CN109766105A (en) 2019-05-17

Family

ID=66450988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811584474.XA Pending CN109766105A (en) 2018-12-24 2018-12-24 Drive programe installation method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109766105A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187897A (en) * 2019-05-28 2019-08-30 新华三技术有限公司 A kind of firmware upgrade method and device
CN110442355A (en) * 2019-08-06 2019-11-12 浪潮商用机器有限公司 A kind of installation method of computer drivers, device, equipment and medium
CN110618822A (en) * 2019-08-26 2019-12-27 杭州顺网科技股份有限公司 Method for pre-installing network card drive in starting stage of diskless workstation
CN111694604A (en) * 2020-05-06 2020-09-22 新华三云计算技术有限公司 Method, device and equipment for installing drivers in batches and machine-readable storage medium
CN112306510A (en) * 2020-10-30 2021-02-02 深圳忆联信息***有限公司 Method and device for batch downloading and deploying of drivers, computer equipment and storage medium
CN114756291A (en) * 2022-06-13 2022-07-15 统信软件技术有限公司 Hardware self-adaption method and device
WO2022247670A1 (en) * 2021-05-24 2022-12-01 广州视源电子科技股份有限公司 Method and apparatus for managing mirror image file, and processor and storage medium
CN116775058A (en) * 2023-06-25 2023-09-19 深圳市青葡萄科技有限公司 Mirror image starting method compatible with heterogeneous hardware, terminal and server
CN117215602A (en) * 2023-10-30 2023-12-12 广州鼎甲计算机科技有限公司 Method, device, computer equipment and storage medium for updating drive program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020095526A1 (en) * 2000-11-29 2002-07-18 Dirie Herzi System and method for installing device drivers in a computer system
CN1464387A (en) * 2002-06-26 2003-12-31 联想(北京)有限公司 Hardware equipment drive program installing method and computer therefor
CN1920774A (en) * 2005-08-25 2007-02-28 英业达股份有限公司 Method and system for driving program automatic installation
CN104094225A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Creation or installation of disk image for target device having one of a plurality of hardware platforms
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN106020915A (en) * 2016-06-12 2016-10-12 北京金山安全软件有限公司 driver installation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020095526A1 (en) * 2000-11-29 2002-07-18 Dirie Herzi System and method for installing device drivers in a computer system
CN1464387A (en) * 2002-06-26 2003-12-31 联想(北京)有限公司 Hardware equipment drive program installing method and computer therefor
CN1920774A (en) * 2005-08-25 2007-02-28 英业达股份有限公司 Method and system for driving program automatic installation
CN104094225A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Creation or installation of disk image for target device having one of a plurality of hardware platforms
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN106020915A (en) * 2016-06-12 2016-10-12 北京金山安全软件有限公司 driver installation method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187897A (en) * 2019-05-28 2019-08-30 新华三技术有限公司 A kind of firmware upgrade method and device
CN110187897B (en) * 2019-05-28 2022-05-31 新华三技术有限公司 Firmware upgrading method and device
CN110442355A (en) * 2019-08-06 2019-11-12 浪潮商用机器有限公司 A kind of installation method of computer drivers, device, equipment and medium
CN110618822A (en) * 2019-08-26 2019-12-27 杭州顺网科技股份有限公司 Method for pre-installing network card drive in starting stage of diskless workstation
CN111694604A (en) * 2020-05-06 2020-09-22 新华三云计算技术有限公司 Method, device and equipment for installing drivers in batches and machine-readable storage medium
CN112306510A (en) * 2020-10-30 2021-02-02 深圳忆联信息***有限公司 Method and device for batch downloading and deploying of drivers, computer equipment and storage medium
WO2022247670A1 (en) * 2021-05-24 2022-12-01 广州视源电子科技股份有限公司 Method and apparatus for managing mirror image file, and processor and storage medium
CN114756291A (en) * 2022-06-13 2022-07-15 统信软件技术有限公司 Hardware self-adaption method and device
CN114756291B (en) * 2022-06-13 2022-09-06 统信软件技术有限公司 Hardware self-adaption method and device
CN116775058A (en) * 2023-06-25 2023-09-19 深圳市青葡萄科技有限公司 Mirror image starting method compatible with heterogeneous hardware, terminal and server
CN117215602A (en) * 2023-10-30 2023-12-12 广州鼎甲计算机科技有限公司 Method, device, computer equipment and storage medium for updating drive program

Similar Documents

Publication Publication Date Title
CN109766105A (en) Drive programe installation method, device, server and computer readable storage medium
CN103778178B (en) Method and system for reconfiguring snapshot of virtual machine (VM)
CN101393524A (en) Firmware update method and system using the same
CN104636172B (en) A kind of application upgrade method and apparatus
US20160011879A1 (en) Preconfiguring hardware and speeding up server discovery prior to bios boot
CN102999349B (en) A kind of method for upgrading software
US8397055B2 (en) Method and system for post-build modification of firmware binaries to support different hardware configurations
CN107704282B (en) Loading method and device applied to embedded system
CN103324505A (en) Method for deploying GPU (graphic processor unit) development environments in cluster system and could computing system
CN110941453A (en) Method and device for initializing Baseboard Management Controller (BMC) configuration
CN107423095B (en) Data processing method and device adaptive to hardware, storage medium and computer equipment
CN106528226B (en) Installation method and device of operating system
CN113835729B (en) Upgrading method, upgrading device, terminal equipment and computer readable storage medium
CN113805965B (en) Method, device, equipment and readable medium for installing external plug-in
CN105700903A (en) User terminal upgrading method and user terminal
CN108733398B (en) Software upgrading processing method and device
CN104063306B (en) Automatic logging method, device and system in intelligent terminal software test
CN107741854A (en) The installation method and device of the trawl performance of a kind of electronic equipment
CN105808465B (en) A kind of upgrade method and device of picture pick-up device
CN105988943A (en) Method and device for driving wireless adapter
US8892499B2 (en) Life cycle management of rule sets
JP2004295589A (en) Controller and method for updating program
CN106990981A (en) Program updating method and device
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN101299190B (en) Software upgrading method, system and built-in equipment of read-only file 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190517