CN118192999A - Method for customizing credit-created operating system installation package - Google Patents

Method for customizing credit-created operating system installation package Download PDF

Info

Publication number
CN118192999A
CN118192999A CN202410598509.4A CN202410598509A CN118192999A CN 118192999 A CN118192999 A CN 118192999A CN 202410598509 A CN202410598509 A CN 202410598509A CN 118192999 A CN118192999 A CN 118192999A
Authority
CN
China
Prior art keywords
file
operating system
installation
installation package
customizing
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
CN202410598509.4A
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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology 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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202410598509.4A priority Critical patent/CN118192999A/en
Publication of CN118192999A publication Critical patent/CN118192999A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of operating systems, in particular to a method for customizing an installation package of a credit-created operating system. The method for customizing the information-created operating system installation package modifies the image file of the operating system, modifies and replaces the file, the software package, the bootstrap program and the installation configuration in the installation package, regenerates the image file and the installation configuration file, completes the function design, realizes the logic, the data configuration and the test execution, and realizes the manufacture of the operating system installation package. The method for customizing the credit-invasive operating system installation package has lower requirements on system performance and lower resource occupancy rate, and can rapidly realize the manufacture of the operating system installation package without affecting functions and performance, thereby greatly improving the manufacture speed and efficiency of the credit-invasive operating system installation package.

Description

Method for customizing credit-created operating system installation package
Technical Field
The invention relates to the technical field of operating systems, in particular to a method for customizing an installation package of a credit-created operating system.
Background
With the development of hardware, the functions of the hardware are more and more, and the related functions of an operating system are more and more. Particularly, the development of various application requirements causes more and more complex operating systems, more and more functions, more and more corresponding software packages, and more volumes of single software packages. Operating systems can be loaded from the earliest floppy disk, and gradually evolve to the current size of hundreds of megabytes, even tens of gigabytes. At present, a compact operating system also needs a high-density optical disc CD (Compact Disc) to be installed, and for a non-compact operating system, at least one DVD optical disc is needed to be installed, and for a complete operating system, a plurality of high-density digital video optical discs DVD (Digital Video Disc) or high-capacity flash discs or magnetic discs are needed to be installed. As operating systems become larger, the requirements for manufacturing operating system installation packages are also increasing, and in particular, operating system installation packages are manufactured quickly.
In recent years, with the development of a domestic Central Processing Unit (CPU) and various hardware, a domestic operating system is rapidly developed and gradually matured. Particularly, the development of the credit and debit industry, the domestic operation system is widely used. The widespread use of domestic operating systems has led to a variety of techniques for making operating system installation packages, each of which has its own features. Some of the methods start from source code compilation, all the required installation packages are compiled, the resource requirements are very high, the speed is very low, the functions with smaller modifications are modified, and the operation system installation packages cannot be quickly manufactured from the source code compilation. Some of the packages are manufactured from the installation package, a complete manufacturing process is also required, and if a certain package does not exist, the installation package needs to be recompiled, so that the time is long and the efficiency is low. In addition, the installation verification is needed after the installation package is manufactured, the installation package can pass through well once and cannot pass through once, and the remanufacturing process is very time-consuming.
Based on the above situation, the invention provides a method for customizing the installation package of the credit-created operating system.
Disclosure of Invention
The invention provides a simple and efficient method for customizing the installation package of the credit-created operating system in order to make up the defects of the prior art.
The invention is realized by the following technical scheme:
a method for customizing an installation package of a credit-created operating system, which is characterized by comprising the following steps: modifying the image file of the operating system, modifying and replacing the file, the software package, the bootstrap program and the installation configuration in the installation package, regenerating the image file and the installation configuration file, completing the function design, realizing the logic, the data configuration and the test execution, and realizing the manufacture of the installation package of the operating system;
The method comprises the following steps:
S1, mounting a mount mirror image file;
The ISO optical disk mirror image file is mounted to an empty folder, so that the unpacking function of the ISO optical disk mirror image file mounting package is realized;
S2, copying all the mirror image contents to a new catalog;
Copying all files from the folder from the mount in the step S1, wherein the files comprise folders and subfolders and files in the folders, and copying the subfolders and the files into a temporary directory;
S3, replacing the installation package and the file;
replacing the installation package and the file to be replaced in the temporary directory with a new installation package and a new file;
S4, modifying the content of the existing file;
Modifying the file to be modified, and storing after modification;
s5, copying an installation guide file install. Img in the system installation mirror image file to a temporary folder;
s6, decompressing installation guide file installment.img, modifying the files and the installation packages in the replacement installation guide file installment.img, and storing;
s7, regenerating an installation guide file install. Img;
And S8, regenerating the configuration file and the image file.
In the step S1, the ISO optical disc image file installation package is decompressed using the mount command.
In the step S5, if the installation guide file install. Img needs to be modified, the file needs to be copied to an empty temporary folder; if no modification is needed, step S5 is skipped.
In the step S6, the mount boot file install. Img is decompressed using the decompress SquashFS compact read-only file system command unSquashFS.
In the step S7, a new installation guide file install. Img is generated by compressing the read-only file system command mkSquashFS using the production SquashFS; after the generation, the original file is replaced by the new installation guide file install. Img.
In the step S8, the installation configuration file is regenerated using the create repository tool createpo.
In the step S8, the installation package file is regenerated by using the mirror image file creation command mkisofs.
An apparatus for implementing a method for customizing an installation package of a credit-created operating system, comprising: comprising a memory and a processor; the memory is used for storing a computer program, and the processor is used for implementing the method steps described above when executing the computer program.
A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method steps as described above.
The beneficial effects of the invention are as follows: the method for customizing the credit-invasive operating system installation package has lower requirements on system performance and lower resource occupancy rate, and can rapidly realize the manufacture of the operating system installation package without affecting functions and performance, thereby greatly improving the manufacture speed and efficiency of the credit-invasive operating system installation package.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a method for customizing a signal-created operating system installation package according to the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the technical solution of the present invention, the following description will make clear and complete description of the technical solution of the present invention in combination with the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The method for customizing the information-created operating system installation package supports different CPU (central processing unit) architectures such as AMD64/C86/ARM64/loongarch, and the embodiment uses ARM64 architecture for testing.
The method for customizing the information-created operating system installation package modifies the image file of the operating system, modifies and replaces the file, the software package, the bootstrap program and the installation configuration in the installation package, regenerates the image file and the installation configuration file, completes the function design, realizes the logic, the data configuration and the test execution, and realizes the manufacture of the operating system installation package;
The method comprises the following steps:
S1, mounting a mount mirror image file;
The ISO optical disk mirror image file is mounted to an empty folder, so that the unpacking function of the ISO optical disk mirror image file mounting package is realized;
An ISO file is a standardized optical disc image file format that may contain an operating system, programs, data, etc. for creating an image of a CD or DVD.
S2, copying all the mirror image contents to a new catalog;
Copying all files from the folder from the mount in the step S1, wherein the files comprise folders and subfolders and files in the folders, and copying the subfolders and the files into a temporary directory;
S3, replacing the installation package and the file;
replacing the installation package and the file to be replaced in the temporary directory with a new installation package and a new file;
S4, modifying the content of the existing file;
Modifying the file to be modified, and storing after modification;
s5, copying an installation guide file install. Img in the system installation mirror image file to a temporary folder;
s6, decompressing installation guide file installment.img, modifying the files and the installation packages in the replacement installation guide file installment.img, and storing;
s7, regenerating an installation guide file install. Img;
And S8, regenerating the configuration file and the image file.
In the step S1, the ISO optical disc image file installation package is decompressed using the mount command.
In the step S5, if the installation guide file install. Img needs to be modified, the file needs to be copied to an empty temporary folder; if no modification is needed, step S5 is skipped.
SquashFS is a read-only compressed file system designed for the Linux system that allows the entire file system or a single directory to be compressed into one file.
In the step S6, the mount boot file install. Img is decompressed using the decompress SquashFS compact read-only file system command unSquashFS.
In the step S7, a new installation guide file install. Img is generated by compressing the read-only file system command mkSquashFS using the production SquashFS; after the generation, the original file is replaced by the new installation guide file install. Img.
In the step S8, the installation configuration file is regenerated using the create repository tool createpo.
In the step S8, the installation package file is regenerated by using the mirror image file creation command mkisofs.
The device for realizing the method for customizing the credit creation operating system installation package comprises a memory and a processor; the memory is used for storing a computer program, and the processor is used for implementing the method steps described above when executing the computer program.
The readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method steps as described above.
Compared with the prior art, the method for customizing the information creation operating system installation package has the following characteristics:
Based on the modification of the existing operating system installation package, a new installation package is manufactured, the modification and replacement of files in the installation package are realized, and the modification of the guide mirror image in the installation package can be realized;
The requirements on the system performance and the resource occupancy rate are low, a large amount of resources and matched software are not needed, and the speed and the efficiency of manufacturing the installation package of the credit-invasive operating system can be effectively improved under the condition that the functions and the performance are not influenced; particularly, under the condition of small change amount, the manufacturing speed and efficiency of the credit operation system installation package can be greatly improved.
The above examples are only one of the specific embodiments of the present invention, and the ordinary changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method for customizing an installation package of a credit-created operating system, which is characterized by comprising the following steps: modifying the image file of the operating system, modifying and replacing the file, the software package, the bootstrap program and the installation configuration in the installation package, regenerating the image file and the installation configuration file, completing the function design, realizing the logic, the data configuration and the test execution, and realizing the manufacture of the installation package of the operating system;
The method comprises the following steps:
S1, mounting a mount mirror image file;
The ISO optical disk mirror image file is mounted to an empty folder, so that the unpacking function of the ISO optical disk mirror image file mounting package is realized;
Step S2, copying all the mirror image contents to a new catalog
Copying all files from the folder from the mount in the step S1, wherein the files comprise folders and subfolders and files in the folders, and copying the subfolders and the files into a temporary directory;
S3, replacing the installation package and the file;
replacing the installation package and the file to be replaced in the temporary directory with a new installation package and a new file;
S4, modifying the content of the existing file;
Modifying the file to be modified, and storing after modification;
s5, copying an installation guide file install. Img in the system installation mirror image file to a temporary folder;
s6, decompressing installation guide file installment.img, modifying the files and the installation packages in the replacement installation guide file installment.img, and storing;
s7, regenerating an installation guide file install. Img;
And S8, regenerating the configuration file and the image file.
2. The method of customizing a credit operating system installation package as claimed in claim 1, wherein: in the step S1, the ISO optical disc image file installation package is decompressed using the mount command.
3. The method of customizing a credit operating system installation package as claimed in claim 1, wherein: in the step S5, if the installation guide file install. Img needs to be modified, the file needs to be copied to an empty temporary folder; if no modification is needed, step S5 is skipped.
4. The method of customizing a credit operating system installation package as claimed in claim 1, wherein: in the step S6, the mount boot file install. Img is decompressed using the decompress SquashFS compact read-only file system command unSquashFS.
5. The method of customizing a credit operating system installation package as claimed in claim 1, wherein: in the step S7, a new installation guide file install. Img is generated by compressing the read-only file system command mkSquashFS using the production SquashFS; after the generation, the original file is replaced by the new installation guide file install. Img.
6. The method of customizing a credit operating system installation package as claimed in claim 1, wherein: in the step S8, the installation configuration file is regenerated using the create repository tool createpo.
7. The method of customizing a credit operating system installation package as claimed in claim 1, wherein: in the step S8, the installation package file is regenerated by using the mirror image file creation command mkisofs.
8. An apparatus for implementing a method for customizing an installation package of a credit-created operating system, comprising: comprising a memory and a processor; the memory is adapted to store a computer program, the processor being adapted to implement the method steps of any of claims 1 to 7 when the computer program is executed.
9. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method steps of any of claims 1 to 7.
CN202410598509.4A 2024-05-15 2024-05-15 Method for customizing credit-created operating system installation package Pending CN118192999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410598509.4A CN118192999A (en) 2024-05-15 2024-05-15 Method for customizing credit-created operating system installation package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410598509.4A CN118192999A (en) 2024-05-15 2024-05-15 Method for customizing credit-created operating system installation package

Publications (1)

Publication Number Publication Date
CN118192999A true CN118192999A (en) 2024-06-14

Family

ID=91406577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410598509.4A Pending CN118192999A (en) 2024-05-15 2024-05-15 Method for customizing credit-created operating system installation package

Country Status (1)

Country Link
CN (1) CN118192999A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018054351A1 (en) * 2016-09-23 2018-03-29 紫光华山信息技术有限公司 Installation of operating system
CN111158773A (en) * 2019-12-31 2020-05-15 苏州浪潮智能科技有限公司 Method and system for KS (Key sheet) guided automatic batch installation
WO2022151853A1 (en) * 2021-01-15 2022-07-21 苏州浪潮智能科技有限公司 Method for switching operating system to execute test task, system and medium
CN117170803A (en) * 2023-08-25 2023-12-05 浪潮云信息技术股份公司 Method for generating signal-creation operating system pipeline, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018054351A1 (en) * 2016-09-23 2018-03-29 紫光华山信息技术有限公司 Installation of operating system
CN107870769A (en) * 2016-09-23 2018-04-03 紫光华山信息技术有限公司 The installation method and device of operating system
CN111158773A (en) * 2019-12-31 2020-05-15 苏州浪潮智能科技有限公司 Method and system for KS (Key sheet) guided automatic batch installation
WO2022151853A1 (en) * 2021-01-15 2022-07-21 苏州浪潮智能科技有限公司 Method for switching operating system to execute test task, system and medium
CN117170803A (en) * 2023-08-25 2023-12-05 浪潮云信息技术股份公司 Method for generating signal-creation operating system pipeline, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈煜文;刘金刚;: "Linux根文件系统模块化的研究与实现", 微计算机信息, no. 01, 5 January 2011 (2011-01-05) *

Similar Documents

Publication Publication Date Title
KR20070003577A (en) File system having inverted hierarchical structure
CN102141923A (en) Memory file system loading method and device
CN102147734B (en) The method and system that during operation, class is extracted
US8713278B2 (en) System and method for stranded file opens during disk compression utility requests
US20070028224A1 (en) Program initiation methods and embedded systems utilizing the same
US9158550B2 (en) Caching based operating system installation
CN116701317A (en) File storage and downloading method, device and equipment
CN113641394A (en) Differential upgrading method for multi-operating-system equipment
CN118192999A (en) Method for customizing credit-created operating system installation package
US9009430B2 (en) Restoration of data from a backup storage volume
CN102314476A (en) Reproducing unit, clone method, storage medium and program
CN1310389A (en) Computer hard disk data copying method and system
CN107944010B (en) Method and device for reading and writing files in distributed file system
JP2005108239A (en) Storage system for storing data in hierarchical data structure
CN111290765B (en) Firmware quick burning method, system and storage medium
US20220237500A1 (en) Test case execution sequences
CN114595096A (en) Database hot backup method and device, electronic equipment and storage medium
CN112286572A (en) Configuration method and device of business process
US7761449B2 (en) Self-disentangling data storage technique
CN113971964B (en) Data recovery method, storage device and terminal device
CN114063910B (en) File processing method and device, file processing system and storage medium
CN113495727B (en) Business component development method, device, electronic equipment and medium
US20080221859A1 (en) Emulation Mode for Emulating Optical Record Medium Types
JP2005353034A (en) Device and method for generating binary file for storing data by functions, and computer-readable storage medium for storing the method
CN112131193B (en) Application program compression method and device

Legal Events

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