CN103309706A - Memory file system preparation method and unit based on Linux operation system - Google Patents

Memory file system preparation method and unit based on Linux operation system Download PDF

Info

Publication number
CN103309706A
CN103309706A CN2013101996015A CN201310199601A CN103309706A CN 103309706 A CN103309706 A CN 103309706A CN 2013101996015 A CN2013101996015 A CN 2013101996015A CN 201310199601 A CN201310199601 A CN 201310199601A CN 103309706 A CN103309706 A CN 103309706A
Authority
CN
China
Prior art keywords
software package
software
file system
creation module
bag
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
CN2013101996015A
Other languages
Chinese (zh)
Other versions
CN103309706B (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.)
China Standard Software Co Ltd
Original Assignee
China Standard Software 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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201310199601.5A priority Critical patent/CN103309706B/en
Publication of CN103309706A publication Critical patent/CN103309706A/en
Application granted granted Critical
Publication of CN103309706B publication Critical patent/CN103309706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a memory file system preparation method and unit based on Linux operation system. The unit comprises an environment creation module, a software package creation module, a software package warehouse creation module, a core file system creation module and a memory file system creation module, wherein the environment creation module is used for creating and configuring operating environment; the software package creation module detects whether a to-be-compiled software package is fully complied or not, if no, the non-compiled software package is compiled according to the set package format, and then all the compiled software packages are stored in a software source directory; the software package warehouse creation module creates a software package warehouse on the basis of the software source directory; the core file system creation module acquires corresponding installation file, configuration file and a core from the software package warehouse to prepare a core file system; and the memory file system creation module creates a memory file system on the basis of the core file system. The preparation method and the unit can support the customization of multiple versions of memory file systems, and the compiled module is enabled to be normally loaded because of customization based on the set memory version.

Description

Memory file system preparation method and unit based on (SuSE) Linux OS
Technical field
The present invention relates to built-in field and custom-built system field, relate in particular to a kind of memory file system preparation method and unit based on (SuSE) Linux OS.
Background technology
Memory file system is that system starts the microminiature operating system that the back is moved in internal memory, and it is used for opening specific function and service being provided.Because its toggle speed is fast, system bulk is little, system file can be protected, therefore obtains widespread use aspect built-in field and custom-built system.
Memory file system has comprised basic linux kernel and initrd.img image file, the kernel that generates is to generate by configuration file, main specific function realizes in initrd.img, comprised the function program of customization of kernel module, configuration file, dynamic link library, the needs of needs among the initrd.img.The function of customization is put into initrd.img, decompress with the gzip compress mode.In a lot of performance historyes, all be manually to finish the exploitation memory file system, and memory file system function disunity, for example start fast function, hardware supported comprehensively, graphical, the module loading order of memory file system support etc., the dependence of memory file system file is tight, complicated, the generation release cycle time is long, the production cost height, the complicated difficulty of later maintenance.
Existing memory file system method for making all can't be supported the memory file system customization of many versions, and the overwhelming majority all is to finish whole generation by hand, can't support the driving that the robotization compiling relies in the linux kernel version of appointment.The core system environment is installed the system environments of the linux system of 103 deb bag compositions altogether, provides basic erecting tools, the bash environment.Kernel version number is inconsistent to cause the module that compiles can't normal load, and initrd.img uses gzip decompress(ion) mode, and starting in system is that the decompress(ion) speed time is longer.
Therefore, need a solution badly to address the above problem, realize many versions memory file system customization, optimize memory file system start-up time, solve the different form packet format of multiple Linux such as deb bag, tar bag, tar.gz bag, kernel bag, driving and wrap the problem that compiles.
Summary of the invention
One of technical matters to be solved by this invention is to provide a kind of memory file system based on (SuSE) Linux OS of many versions memory file system customization of can realizing to prepare the unit.
In order to solve the problems of the technologies described above, the invention provides a kind of memory file system based on (SuSE) Linux OS and prepare the unit, this unit comprises: the creating environments module, its establishment is also disposed the running environment that described memory file system prepares the unit; The software package creation module, whether the software package that its detection is to be compiled all compiles is finished, if testing result is not, then the software package that will not compile compiles according to setting packet format, the software package that all compilings are finished is stored in the software source catalogue then; Software package warehouse creation module, it is based on described software source directory creating software package warehouse; Core document system creation module, it obtains corresponding installation file, configuration file and kernel with preparation core document system according to specifying the memory file system version that will make from described software package warehouse; The memory file system creation module, it creates memory file system based on the core document system.
In one embodiment, described creating environments module is further used for carrying out following operation: step 10, whether the user identification code that checks current operation is the authority user, if then enter in the step 20, otherwise out of service and prompting user rights of using identification code is moved; Step 20 is obtained the software package of disposing running environment; Step 30 checks whether required configuration file exists, if exist, then described configuration file is moved in the corresponding catalogue, the file that does not exist then out of service and prompting to lack; Step 40 checks whether the software package of running environment all is mounted, if all install, and the then software package that lacks of out of service and prompting and the method for installation.
In one embodiment, described software package creation module is further used for: the form of unifying dissimilar software packages to be compiled by setting means, detecting all compilings when not finishing of software package to be compiled, the software package of not compiling is compiled into the software package of deb packet format, wherein, the type of software package comprises dsc bag, source code bag, scale-of-two bag, kernel bag and drives bag.
In one embodiment, whether described software package warehouse creation module is further used for detecting described software source catalogue is an effective source, if testing result is for being then it to be generated a software package warehouse.
In one embodiment, the creation module utilization of described software package warehouse travels through each software package under the described software source catalogue about the instrument of message digest algorithm, and generates the detected value listing file, wherein,
If the detected value listing file that generates before existing and identical with the detected value listing file of current generation determines that then this software source catalogue is an effective software source, generates it software package warehouse then;
The detected value listing file that generated if there is no or the detected value listing file of current generation are inequality with the detected value listing file that generates before, determine that then this software source catalogue is an invalid software source.
In one embodiment, when definite this software source catalogue is an invalid software source, described software package warehouse creation module is further preserved the detected value listing file of current generation, and the order of the software source catalogue of use deb bag regenerates a software source catalogue.
In one embodiment, described memory file system creation module further uses the lzop tool of compression to compress the initrd.img file of described memory file system.
In one embodiment, when another memory file system of preparation, only move described core document system creation module and described memory file system creation module.
According to a further aspect in the invention, also provide a kind of memory file system preparation method based on (SuSE) Linux OS, having comprised: the creating environments step, create and the configuration operation environment; The software package foundation step, whether the software package that detection is to be compiled all compiles is finished, if testing result then compiles the software package that does not compile in this catalogue for not according to setting packet format, the software package that all compilings are finished is put into the software source catalogue then; Software package warehouse foundation step is based on described software source directory creating software package warehouse; Core document system creation step, it obtains corresponding installation file, configuration file and kernel version with preparation core document system according to specifying the memory file system version that will make from described software package warehouse; The memory file system foundation step is created memory file system based on described core document system.
In one embodiment, in described software package foundation step, further: the form of unifying dissimilar software packages to be compiled by setting means, detecting all compilings when not finishing of software package to be compiled, the software package of not compiling is compiled into the software package of deb packet format, wherein, the described not software package type of compiling comprises dsc, source code bag, scale-of-two bag, kernel bag and drives bag.
Compared with prior art, one or more embodiment of the present invention can have following advantage:
A kind of method for preparing memory file system disclosed by the invention, the characteristics volume of the memory file microsystem that generates based on linux core document system is little, it is fast to start, move in internal memory, finishes concrete function, can be applied to multi-field.Now the X86 hardware platform of Zhi Chiing specifies corresponding parameter to generate the memory file system with characterization function automatically by instrument; Memory file system is in conjunction with existing linux core document system environments, a whole set of complete autofile compiling, packing, establishment source, system's generation method.The memory file microsystem that has solved can't use to be assured reason generation system is installed, and in conjunction with the general character in the memory file microsystem, uses configuration file control target version to generate.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in instructions, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used for jointly explaining the present invention with embodiments of the invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the functional block diagram according to the unit of the preparation memory file system of first embodiment of the invention;
Fig. 2 is the schematic flow sheet according to the method for preparing memory file system of second embodiment of the invention.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, how the application technology means solve technical matters to the present invention whereby, and the implementation procedure of reaching technique effect can fully understand and implements according to this.Need to prove that only otherwise constitute conflict, each embodiment among the present invention and each feature among each embodiment can mutually combine, formed technical scheme is all within protection scope of the present invention.
In addition, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
First embodiment
Fig. 1 is the functional sequence block diagram according to the unit of the preparation memory file system of first embodiment of the invention, below with reference to Fig. 1, describes each ingredient of this unit in detail.
As shown in Figure 1, this unit comprises: creating environments module (hereinafter to be referred as the CreateOS module) 11, software package creation module (hereinafter to be referred as the CreatePkg module) 12, software package warehouse creation module (hereinafter to be referred as the CreateRepo module) 13, core document system creation module (hereinafter to be referred as the Createbase module) 14 and memory file system creation module (CreateRamfs module) 15.
Need to prove that each module is based on the ubuntu11.10 environment and disposes in the present embodiment.
Wherein, CreateOS module 11 is for the running environment of creating and dispose whole memory file system production unit.
As shown in Figure 1, main user identification code (ID), the configuration operation environment that checks current operation of CreateOS module 11, set up environment indices and running environment and configuration file checked.
More specifically, check that at first whether run user ID is true, namely judges whether to be authority (root) user, if for root user then be judged as true and pass through, if user ID is not root user, then be judged as vacation, out of service and prompting user's rights of using (root) identification code is carried out.Wherein, root user refers to the power user in unix system (as AIX, BSD etc.) and class unix system (as the (SuSE) Linux OS of each distribution version such as Debian, Redhat, Ubuntu) and Android system.Root is power user unique in the system, has authorities all in the system, as starts or stops a process, deletion or increase user, increase or forbidding hardware etc.
When the active user was root user, CreateOS module 11 was obtained the software package of disposing running environment.Particularly, obtain main catalogue by reading the setvars file, comprise main catalogue such as input, output, repo, script in this setvars file, move at CreateOS, every the catalogue that comprises in the traversal setvars file, and use " mkdir " to order the environment that creaties directory, realize the deployment of running environment.
At last, the configuration operation environment, and check whether important configuration file exists.For example: the listing file of installation system version list file, file system and tool system configuration file.If these files exist, then configuration file is transferred to below the corresponding catalogue, for example: the system version tabulation transfers to/the NovaOS/input/config/ catalogue under.The file that does not exist then out of service and prompting to lack.
Check the needed dependence environment of operation, check namely whether the software package of running environment all is mounted, for example: the dependence bag of the dependence of compiling bag and making memory file system.Preferably, whether all install by the environment that the FLAG Mark Detection relies on, if all install by then FLAG is 0, will to give the FLAG assignment be 1 if lack dependence, out of service and the software package that lacks of prompting and the method for installation all need to detect relying on environment at every turn then.
In addition, after configuration is improved, transmit the parameter of CreatePkg module 12 and CreateRepo module 13.When parameter is true time, then can carry out corresponding module, be the module of then inoperation correspondence of vacation.
Need to prove, similar with CreateOS module 11, created memory file system if once utilize the memory file system of present embodiment to prepare the unit before, then when this creates new memory file system, the operation that can omit CreatePkg module 12 and CreateRepo module 13 by the mode of transmitting parameter, just when another memory file system of preparation, only move core document system creation module 14 and memory file system creation module 15, can save preparation time like this.
Whether the software package that 12 detections of CreatePkg module are to be compiled all compiles is finished, if testing result is for denying, then the software package that will not compile compiles according to setting packet format, the software package that all compilings are finished is stored in the software source catalogue then, and software package wherein to be compiled comprises dsc bag, source code bag, scale-of-two bag, kernel bag and drives bag.
Preferably, the form that can unify dissimilar software packages to be compiled in advance by setting means, for example, setting means can be that the uniform format with dissimilar software packages is to comprise software package title, version number, current format type and the form of the Format Type that will compile.For example, the scale-of-two bag is name-version-bin.tar.gz; The source code bag is name-version-src.tar.gz; The dsc bag is name-version.dsc.Wherein, each field uses "-" to distinguish, the name of Name representative bag, and the version number of version representative bag, bin represents the scale-of-two bag, and src represents the source code bag, and Dsc represents deb bag source code bag.The form (i.e. Bian Yi form) of Tar.gz representative packing.Then the CreatePkg module detect software package to be compiled all compiling the software package of not compiling is compiled into the software package of deb packet format when not finishing.
For example, in the NovaOS system, whether fully the compiling of software package to be compiled under the CreatePkg module 12 detection/NovaOS/input/app catalogues is finished, if also there is the not software package of compiling, the software package of then treating compiling compiles according to setting packet format, wraps in file/var/NovaOS/build/.buildlist simultaneously and records display format: " bag name OK time ".The then display format " bag name fail time " if compiling makes mistakes, prompting reports an error.
More specifically, Createpkg module 12 travels through each sub-directory of input catalogue successively, check the application software (app) under it, whether kernel (kernel) and driving (driver) sub-directory exist the not software package of compiling, if there is not composing software bag in current sub-directory, then composing software does not pack the software package that makes the deb packet format, and the deb bag that compiling is finished is put among software source catalogue/NovaOS/repo/update, wherein, deb comprises the kernel bag, drive bag, use this three classes bag of bag, they are corresponding one by one with corresponding catalogue respectively.If current sub-directory does not exist the software package of not compiling then to skip, software package all sub-directories in traversal input catalogue that read in the next sub-directory finish.
Need to prove, normal conditions, kernel is finished in compiling, need be installed to restarting systems in the translation and compiling environment to kernel, could compile driver module, otherwise the driving version that will cause compiling does not match, and kernel can't load.And dsc bag, two advances bag, and the src bag all needs manually to produce and generate unified available bag by different Compilation Methods.But, the CreatePkg module of present embodiment waits to compile the form of dissimilar bags by the stipulated form unification, when the compiling kernel, keep the source code after kernel compiles, and the source code catalogue is connected to/lib/modules/ kernel version/build catalogue by instrument " ln ".By given core version number, when compiling drives, obtain the kernel version information, specify in/lib/modules catalogue kernel version, find the translation and compiling environment compiling to drive, generate spendable bag.Therefore, use the deb bag to manage by the CreatePkg module, can solve and to realize for example problem of the unified compiling of dsc bag, scale-of-two bag, source code bag, kernel bag and driving bag of various definitions different-format bag in the prior art.
The software source directory creating software package warehouse that CreateRepo module 13 obtains based on Createpkg module 12.
CreateRepo module 13 detects further whether the software source catalogue that Createpkg modules 12 obtain is an effective source, if testing result is for being then it to be generated a software package warehouse.
CreateOS module 11 is transmitted parameter and is given CreateRepo module 13, and the parameter value of CreateRepo module 13 is true time, checks then whether software source catalogue/NovaOS/repo/ is an effective source.When the parameter value of CreateRepo module 13 is false, skip the operation that CreateBase module 14 is directly carried out in inspection.Can omit the operation of CreateRepo module 13 like this, save time.
Particularly, at first use the instrument md5sum about message digest algorithm, for example, the md5sum instrument travels through each software package under this software source catalogue/NovaOS/repo/, and generates MD5 detected value listing file.If the MD5 detected value listing file that generates before existing and identical with the MD5 detected value listing file of current generation represents that then this software source catalogue is an effective software source, then it is generated with the software package warehouse.The MD5 detected value listing file or twice tabulation that generated if there is no are inequality, determine that then this software source catalogue is an invalid software source, show that namely current software source needs to upgrade.
When the software source catalogue is an invalid software source, preserve MD5 detected value listing file under/NovaOS/repo/ catalogue, and the order of the software source catalogue of use deb bag regenerates a software source catalogue.Order " dpkg-scanpackages " in debian, the ubuntu of (SuSE) Linux OS distribution version, it is to make deb bag index list instrument, be mainly used to create the source of deb bag, the order specification be " dpkg-scanpackages[option...] binary-dir〉Packages ", so can utilize " dpkg-scanpackages-m repo/dev/null|gzip〉repo/Packages.gz " to regenerate the software source catalogue.
Createbase module 14 is according to the kernel version of specifying the memory file system appointment that will make, from the software package warehouse, obtain corresponding installation file and configuration file with preparation core document system, the core document system refers to a complete system that simplifies, satisfy the deb packet function is installed, bash environment and basic storehouse.And memory file system is based on the file system that the core document system makes.
Particularly, dispose the core document system environments and by the core document system environments of disposing the bag that needs is installed, configuration installation file, deb bag source address are with preparation core document system.
For example, when the kernel version name of the memory file system appointment that will make is the EDU version, then imports this title and pass to CreateBase module 14, if do not have version name then out of service.CreateBase module 14 obtains EDU version installation kit listing file and configuration file from/NovaOS/input/config, establishment/var/NovaOS/rootfs file directory, core document system under/NovaOS/input/core/ catalogue is unziped to/the var/NOvaOS/rootfs catalogue in, the software source of profile system and copy installation kit listing file, install.sh file are to the rootfs catalogue.Utility command " chroot$ROOTFS./install.sh " resolve the package list file automatically, installation kit is in rootfs core document system.Behind aforesaid operations, installation the core document system of a customization, need to prove, except the EDU version, can also customize for example core document system of other versions such as HPC, ISO, TDX.
CreateRamfs module 15 is created memory file system based on the core document system.
Particularly, create kernel and the initrd.img file of memory file system based on the rootfs file directory.For example, the kernel under the copy/var/NovaOS/rootfs catalogue is created the memory file system of initrd.img customization to generating under the release directory.
The core document system that 15 pairs of CreateBase modules of CreateRamfs module 14 generate carries out the init script to be created, and init mainly calls to install and uses and the initialization memory file system, is made into initrd.img internal storage starting file.
Particularly, give CreateRamfs module 15 by specifying the rootfs path, CreateRamfs module 15 reads/the NovaOS/input/config/ramfs.conf file, comprises kernel module, required application file name, dynamic base in the ramfs.conf file.Traversal each filename of ramfs.conf also copies in the initramfs catalogue that creates, utility command " chroot./sbin/ldconfig ", " chroot./sbin/depmod$KVERSION " generates storehouse and the kernel configuration relies on, will utilize then that the lzop tool of compression is compressed into can be in internal memory fast the miniature custom file system of decompress(ion) copy under the indicated release catalogue.Because use the lzop tool of compression to compress the initrd.img file, the decompressing files system speed can obviously be promoted in internal memory.
In sum, the unit of preparation memory file system of the present invention, can support the memory file system customization of many versions, owing to customize based on the set memory version, make that the module after the compiling can normal load, and owing to use deb to assure reason, can support dsc bag, tar bag, tar.gz bag, the compiling of kernel, driving.Use the lzop tool of compression to compress the initrd.img file in addition, the decompressing files system speed obviously promotes in internal memory.
Second embodiment
In addition, the present invention also provides a kind of method for preparing memory file system, and Fig. 2 is the schematic flow sheet according to the method for preparing memory file system of second embodiment of the invention.Please refer to the present embodiment of Fig. 2 describes.
S210 creates and the configuration operation environment.
Particularly, comprise following substep:
S211 checks whether the user identification code of current operation is authority (root) user, if then enter in the step 212, otherwise out of service and prompting user uses the root identification code to move.
S212 obtains the software package of disposing running environment, for example reads the setvars file to obtain wherein all catalogue files.
S213 checks whether required configuration file exists, if exist, then described configuration file is moved in the corresponding catalogue, the file that does not exist then out of service and prompting to lack.
S214 checks whether the software package of running environment is mounted, if all install, and the then software package that lacks of out of service and prompting and the method for installation.
Finished the configuration of running environment by above step.
S220, detect software package to be compiled whether all compiling finish, if testing result is not for, then the software package with the not compiling in this catalogue compiles according to setting packet format, the software package that all compilings are finished is put into the software source catalogue then.
Particularly, check whether software package to be compiled is all finished in the input catalogue, if testing result then is compiled into the not software package of compiling in this catalogue the software package of deb packet format for not, the software package that all compilings are finished is put into the software source catalogue then.
Preferably, the form of unifying dissimilar software packages to be compiled by setting means, for example, setting means can be that the uniform format with dissimilar software packages is to comprise software package title, version number, current format type and the form of the Format Type that will compile.Detecting all compilings when not finishing of software package to be compiled, the software package of not compiling is compiled into the software package of deb packet format, wherein, the type of software package comprises dsc bag, source code bag, scale-of-two bag, kernel bag and drives wraps.
S230 is based on described software source directory creating software package warehouse.Particularly, detect whether the software source catalogue is an effective source, if testing result is for being then it to be generated a software package warehouse.
Particularly, utilization travels through each software package under the described software source catalogue about the instrument of message digest algorithm, and generation detected value listing file, if the detected value listing file that generates before existing and identical with the detected value listing file of current generation, determine that then this software source catalogue is an effective software source, generates it software package warehouse then.
The detected value listing file that generated if there is no or the detected value listing file of current generation are inequality with the detected value listing file that generates before, determine that then this software source catalogue is an invalid software source, then preserve the detected value listing file of current generation, and the order of the software source catalogue of use deb bag regenerates a software source catalogue.
S240 according to the kernel version of the memory file system appointment that will make, obtains corresponding installation file and configuration file with preparation core document system from described software package warehouse.
S250, memory file system is created by system based on core document.
Use lzop tool of compression comes the initrd.img file of compression memory file system, and the file after will compressing copies under the indicated release catalogue.
In sum, the method for preparing memory file system of the present invention, can support the memory file system customization of many versions, owing to customize based on the set memory version, make that the module after the compiling can normal load, and owing to use deb to assure reason, can support dsc bag, tar bag, tar.gz bag, the compiling of kernel, driving.Use the lzop tool of compression to compress the initrd.img file in addition, the decompressing files system speed obviously promotes in internal memory.Method with the complete making memory file system of a cover has solved long and difficult in maintenance etc. problem of production cycle time.
Those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Though the disclosed embodiment of the present invention as above, the embodiment that described content just adopts for the ease of understanding the present invention is not in order to limit the present invention.Technician in any the technical field of the invention; under the prerequisite that does not break away from the disclosed spirit and scope of the present invention; can do any modification and variation in the details of implementing that reaches in form; but scope of patent protection of the present invention still must be as the criterion with the scope that appending claims was defined.

Claims (10)

1. the memory file system based on (SuSE) Linux OS prepares the unit, it is characterized in that, comprising:
The creating environments module, its establishment is also disposed the running environment that described memory file system prepares the unit;
The software package creation module, whether the software package that its detection is to be compiled all compiles is finished, if testing result is not, then the software package that will not compile compiles according to setting packet format, the software package that all compilings are finished is stored in the software source catalogue then;
Software package warehouse creation module, it is based on described software source directory creating software package warehouse;
Core document system creation module, it obtains corresponding installation file, configuration file and kernel with preparation core document system according to specifying the memory file system version that will make from described software package warehouse;
The memory file system creation module, it creates memory file system based on the core document system.
2. unit according to claim 1 is characterized in that, described creating environments module is further used for carrying out following operation:
Step 10 checks whether the user identification code of current operation is the authority user, if then enter in the step 20, otherwise out of service and prompting user rights of using identification code is moved;
Step 20 is obtained the software package of disposing running environment;
Step 30 checks whether required configuration file exists, if exist, then described configuration file is moved in the corresponding catalogue, the file that does not exist then out of service and prompting to lack;
Step 40 checks whether the software package of running environment all is mounted, if all install, and the then software package that lacks of out of service and prompting and the method for installation.
3. unit according to claim 1 is characterized in that, described software package creation module is further used for:
The form of unifying dissimilar software packages to be compiled by setting means, detecting all compilings when not finishing of software package to be compiled, the software package of not compiling is compiled into the software package of deb packet format, wherein, the type of software package comprises dsc bag, source code bag, scale-of-two bag, kernel bag and drives bag.
4. unit according to claim 3 is characterized in that, whether described software package warehouse creation module is further used for detecting described software source catalogue is an effective source, if testing result is for being then it to be generated a software package warehouse.
5. unit according to claim 4 is characterized in that,
The creation module utilization of described software package warehouse travels through each software package under the described software source catalogue about the instrument of message digest algorithm, and generates the detected value listing file, wherein,
If the detected value listing file that generates before existing and identical with the detected value listing file of current generation determines that then this software source catalogue is an effective software source, generates it software package warehouse then;
The detected value listing file that generated if there is no or the detected value listing file of current generation are inequality with the detected value listing file that generates before, determine that then this software source catalogue is an invalid software source.
6. unit according to claim 5, it is characterized in that, when definite this software source catalogue is an invalid software source, described software package warehouse creation module is further preserved the detected value listing file of current generation, and the order of the software source catalogue of use deb bag regenerates a software source catalogue.
7. unit according to claim 1 is characterized in that, described memory file system creation module further uses the lzop tool of compression to compress the initrd.img file of described memory file system.
8. according to each described unit in the claim 1 to 7, it is characterized in that, when another memory file system of preparation, only move described core document system creation module and described memory file system creation module.
9. the memory file system preparation method based on (SuSE) Linux OS is characterized in that, comprising:
The creating environments step is created and the configuration operation environment;
The software package foundation step, whether the software package that detection is to be compiled all compiles is finished, if testing result then compiles the software package that does not compile in this catalogue for not according to setting packet format, the software package that all compilings are finished is put into the software source catalogue then;
Software package warehouse foundation step is based on described software source directory creating software package warehouse;
Core document system creation step according to specifying the memory file system version that will make, is obtained corresponding installation file, configuration file and kernel version with preparation core document system from described software package warehouse;
The memory file system foundation step is created memory file system based on described core document system.
10. method according to claim 9 is characterized in that, in described software package foundation step, further:
The form of unifying dissimilar software packages to be compiled by setting means, detecting all compilings when not finishing of software package to be compiled, the software package of not compiling is compiled into the software package of deb packet format, wherein, the described not software package type of compiling comprises dsc, source code bag, scale-of-two bag, kernel bag and drives bag.
CN201310199601.5A 2013-05-24 2013-05-24 Memory file system preparation method based on (SuSE) Linux OS and unit Active CN103309706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310199601.5A CN103309706B (en) 2013-05-24 2013-05-24 Memory file system preparation method based on (SuSE) Linux OS and unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310199601.5A CN103309706B (en) 2013-05-24 2013-05-24 Memory file system preparation method based on (SuSE) Linux OS and unit

Publications (2)

Publication Number Publication Date
CN103309706A true CN103309706A (en) 2013-09-18
CN103309706B CN103309706B (en) 2016-12-28

Family

ID=49134966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310199601.5A Active CN103309706B (en) 2013-05-24 2013-05-24 Memory file system preparation method based on (SuSE) Linux OS and unit

Country Status (1)

Country Link
CN (1) CN103309706B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760460A (en) * 2016-02-04 2016-07-13 北京金山安全软件有限公司 Method and device for moving picture across storage areas and electronic equipment
CN106325965A (en) * 2015-06-24 2017-01-11 龙芯中科技术有限公司 Method and device for compiling of operating system
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS
CN107632932A (en) * 2017-09-11 2018-01-26 天津麒麟信息技术有限公司 A kind of software storage reliability checking method of multistage verification
CN109189418A (en) * 2018-11-08 2019-01-11 郑州云海信息技术有限公司 A kind of (SuSE) Linux OS Software Create, installation method and system
CN110806891A (en) * 2019-09-27 2020-02-18 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Method and device for generating software version of embedded equipment
CN111124478A (en) * 2019-12-19 2020-05-08 杭州迪普科技股份有限公司 Version management method and device
CN111367745A (en) * 2020-03-13 2020-07-03 苏州浪潮智能科技有限公司 Memory pressure testing method and system without support of operating system and related components
CN111949268A (en) * 2020-06-23 2020-11-17 贝壳技术有限公司 Project compiling method and device, electronic equipment and storage medium
CN113176880A (en) * 2021-04-12 2021-07-27 深圳市明源云科技有限公司 Project compiling method, project compiling device and computer readable storage medium
CN113407187A (en) * 2021-05-25 2021-09-17 鹏城实验室 Method, device and equipment for constructing file system and computer storage medium
CN113835713A (en) * 2021-09-24 2021-12-24 苏州浪潮智能科技有限公司 Source code package downloading method and device, computer equipment and storage medium
CN115220728A (en) * 2022-07-01 2022-10-21 广州汽车集团股份有限公司 Embedded Linux system software interactive compiling management method and device
CN116341012A (en) * 2023-05-22 2023-06-27 麒麟软件有限公司 File system security reinforcement method based on read-only mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008027922A2 (en) * 2006-08-29 2008-03-06 Adobe Systems Incorporated Software installation using template executables
CN101662533A (en) * 2008-08-27 2010-03-03 深圳富泰宏精密工业有限公司 Software updating system and method
CN102053831A (en) * 2010-12-10 2011-05-11 浪潮(北京)电子信息产业有限公司 Linux operating system customizing method and system
CN102129381A (en) * 2011-03-14 2011-07-20 兰雨晴 Method for customizing linux operating system
CN102567051A (en) * 2011-12-14 2012-07-11 中标软件有限公司 Method and device for preparing graphical installation system of Loongson platform
US8793683B2 (en) * 2008-08-28 2014-07-29 Red Hat, Inc. Importing software distributions in a software provisioning environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008027922A2 (en) * 2006-08-29 2008-03-06 Adobe Systems Incorporated Software installation using template executables
WO2008027922A3 (en) * 2006-08-29 2008-10-16 Adobe Systems Inc Software installation using template executables
CN101662533A (en) * 2008-08-27 2010-03-03 深圳富泰宏精密工业有限公司 Software updating system and method
US8793683B2 (en) * 2008-08-28 2014-07-29 Red Hat, Inc. Importing software distributions in a software provisioning environment
CN102053831A (en) * 2010-12-10 2011-05-11 浪潮(北京)电子信息产业有限公司 Linux operating system customizing method and system
CN102129381A (en) * 2011-03-14 2011-07-20 兰雨晴 Method for customizing linux operating system
CN102567051A (en) * 2011-12-14 2012-07-11 中标软件有限公司 Method and device for preparing graphical installation system of Loongson platform

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325965A (en) * 2015-06-24 2017-01-11 龙芯中科技术有限公司 Method and device for compiling of operating system
CN106325965B (en) * 2015-06-24 2019-09-10 龙芯中科技术有限公司 The Compilation Method and device of operating system
CN105760460B (en) * 2016-02-04 2019-04-12 北京金山安全软件有限公司 Method and device for moving picture across storage areas and electronic equipment
CN105760460A (en) * 2016-02-04 2016-07-13 北京金山安全软件有限公司 Method and device for moving picture across storage areas and electronic equipment
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS
CN107632932A (en) * 2017-09-11 2018-01-26 天津麒麟信息技术有限公司 A kind of software storage reliability checking method of multistage verification
CN109189418A (en) * 2018-11-08 2019-01-11 郑州云海信息技术有限公司 A kind of (SuSE) Linux OS Software Create, installation method and system
CN110806891A (en) * 2019-09-27 2020-02-18 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Method and device for generating software version of embedded equipment
CN110806891B (en) * 2019-09-27 2023-09-19 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Method and device for generating software version of embedded device
CN111124478A (en) * 2019-12-19 2020-05-08 杭州迪普科技股份有限公司 Version management method and device
CN111367745B (en) * 2020-03-13 2022-08-02 苏州浪潮智能科技有限公司 Memory pressure testing method and system without support of operating system and related components
CN111367745A (en) * 2020-03-13 2020-07-03 苏州浪潮智能科技有限公司 Memory pressure testing method and system without support of operating system and related components
CN111949268A (en) * 2020-06-23 2020-11-17 贝壳技术有限公司 Project compiling method and device, electronic equipment and storage medium
CN113176880A (en) * 2021-04-12 2021-07-27 深圳市明源云科技有限公司 Project compiling method, project compiling device and computer readable storage medium
CN113407187A (en) * 2021-05-25 2021-09-17 鹏城实验室 Method, device and equipment for constructing file system and computer storage medium
CN113835713A (en) * 2021-09-24 2021-12-24 苏州浪潮智能科技有限公司 Source code package downloading method and device, computer equipment and storage medium
CN113835713B (en) * 2021-09-24 2023-08-08 苏州浪潮智能科技有限公司 Source code packet downloading method, device, computer equipment and storage medium
CN115220728A (en) * 2022-07-01 2022-10-21 广州汽车集团股份有限公司 Embedded Linux system software interactive compiling management method and device
CN115220728B (en) * 2022-07-01 2023-12-01 广州汽车集团股份有限公司 Interactive compiling management method and device for embedded Linux system software
CN116341012A (en) * 2023-05-22 2023-06-27 麒麟软件有限公司 File system security reinforcement method based on read-only mechanism
CN116341012B (en) * 2023-05-22 2023-08-22 麒麟软件有限公司 File system security reinforcement method based on read-only mechanism

Also Published As

Publication number Publication date
CN103309706B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103309706A (en) Memory file system preparation method and unit based on Linux operation system
CN108958927B (en) Deployment method and device of container application, computer equipment and storage medium
RU2419839C2 (en) Software update system and method for portable ota supporting mobile terminal
US20070294686A1 (en) Program upgrade system and method for ota-capable device
CN110727440B (en) Software packaging method
CN111258587B (en) Android application plug-in implementation method, device, equipment and storage medium
CN103324474B (en) Based on (SuSE) Linux OS across the method for System structure ISO and module
CN103530148A (en) Distribution method for large-scale Linux software package
CN106648724B (en) Application program hot repair method and terminal
US9116770B2 (en) Recipe-based application conversion
CN109144519A (en) Generation method, device, computer equipment and the storage medium of upgrade package
CN103218227B (en) The method of compatible multiple file system and device on a kind of Android device built-in hard disk
CN114706564B (en) Software package manufacturing method and device, electronic equipment and storage medium
CN104156225A (en) Downloading method, system and server for installation package
CN112631622A (en) Application installation method and device, server and computer readable medium
CN105144085B (en) For the software frame of storage device
CN112148297A (en) Intelligent server encryption and packaging method and device
CN115509582A (en) Application program issuing method, device, equipment and storage medium
CN106406923A (en) Processing method and device of dynamic library file
CN104484207A (en) Mirror image upgrading method for switch, linux operation system and switch
CN117707543A (en) Application installation package manufacturing and installation method, computing device and storage medium
CN112286543A (en) Application service deployment method and device
EP3396536A1 (en) Application program running method and apparatus
CN110795113B (en) Redis cluster service installation method, server and medium
CN111752548A (en) SDK embedding method and device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant