CN103777987A - Method and device for upgrading unix-like operating system - Google Patents

Method and device for upgrading unix-like operating system Download PDF

Info

Publication number
CN103777987A
CN103777987A CN201410039250.6A CN201410039250A CN103777987A CN 103777987 A CN103777987 A CN 103777987A CN 201410039250 A CN201410039250 A CN 201410039250A CN 103777987 A CN103777987 A CN 103777987A
Authority
CN
China
Prior art keywords
operating system
file
image file
module
update 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
CN201410039250.6A
Other languages
Chinese (zh)
Other versions
CN103777987B (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.)
Jiaxing Guodian Tongxin Energy Technology Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Original Assignee
Baolong Computer System (hunan) 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 Baolong Computer System (hunan) Co Ltd filed Critical Baolong Computer System (hunan) Co Ltd
Priority to CN201410039250.6A priority Critical patent/CN103777987B/en
Publication of CN103777987A publication Critical patent/CN103777987A/en
Application granted granted Critical
Publication of CN103777987B publication Critical patent/CN103777987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for upgrading a unix-like operating system. The method comprises the following steps of acquiring an operating system upgrade patch image file; copying the operating system upgrade patch image file to the same storage directory for an operating system base component image file; modifying an operating system bootstrap configuration file to begin starting the operating system from the operating system upgrade patch image file during start. The invention also discloses a device for upgrading a unix-like operating system. The device comprises an acquisition module used for acquiring the operating system upgrade patch image file, a copying module used for copying the operating system upgrade patch image file to the same storage directory for the operating system base component image file, and a modification module used for modifying the operating system bootstrap configuration file to begin starting the operating system from the operating system upgrade patch image file during start.

Description

Upgrade method and the device of one kind unix operating system
Technical field
The present invention relates to computer operating system technical field, refer to especially a kind of upgrade method and device of class unix operating system.
Background technology
Generally, issued operating system is upgraded and comprised the process of making and issuing AKU on operating system basis, and common ROMPaq all needs to change the partial content of primitive operation system, this process that just causes making and issue AKU is very complicated and loaded down with trivial details, and correspondingly, the process of carrying out operating system update according to the AKU of distribution also can be loaded down with trivial details especially, and this will be unfavorable for upgrading and the use of operating system.
Summary of the invention
In view of this, the object of the invention is to propose upgrade method and the device of a kind unix operating system, it does not need to change the content of primitive operation system, has greatly simplified the upgrade job of operating system.
Based on the upgrade method of above-mentioned purpose class unix operating system provided by the invention, comprising:
Obtain operating system update bag image file;
Copy described operating system update bag image file to the same storage directory of operating system foundation image file;
When making to start, retouching operation system boot configuration file starts to start the operating system from operating system update bag image file.
In some embodiments, described method also comprises:
Described operating system foundation image file is mounted to temp directory, and by union file system, itself and operating system root file system is merged;
Operating system update image file is mounted to temp directory, and by union file system, itself and operating system root file system is merged.
In some embodiments, described method also comprises:
Obtain the catalogue of the storage medium institute carry of operating system foundation image file;
Search or create read-write file;
Described read-write file and operating system root file system are merged.
In some embodiments, described method also comprises:
Reconstruction operation system kernel and initial root file system, and the two is copied to the catalogue of the storage medium institute carry of described operating system foundation image file;
Described read-write file is packaged into the image file of described operating system foundation image file with form;
The operating system nucleus of described reconstruction and initial root file system and described read-write file image file are packaged into the described operating system update bag image file of the image file form that boot supports.
In some embodiments, described method also comprises:
In described booting operating system configuration file, add boot entry corresponding to described operating system update bag image file.
The present invention also provides the update device of a kind unix operating system, comprising:
Acquisition module, for obtaining operating system update bag image file;
Replication module, for copying described operating system update bag image file to the same storage directory of operating system foundation image file;
Modified module, from operating system update bag image file starts start the operating system while making to start for retouching operation system boot configuration file.
In some embodiments, described device also comprises:
Merge module, for described operating system foundation image file is mounted to temp directory, and by union file system, itself and operating system root file system are merged; And, for operating system update image file is mounted to temp directory, and by union file system, itself and operating system root file system are merged.
In some embodiments, described device also comprises: creation module, for creating read-write file;
Described acquisition module is also for obtaining the catalogue of storage medium institute carry of operating system foundation image file;
Described merging module is also for merging described read-write file and operating system root file system.
In some embodiments, described device also comprises: rebuild module, for reconstruction operation system kernel and initial root file system; Described replication module is also for copying to the operating system nucleus of described reconstruction and initial root file system the catalogue of the storage medium institute carry of described operating system foundation image file;
Packetization module, for being packaged into described read-write file the image file of described operating system foundation image file with form; And, for the operating system nucleus of described reconstruction and initial root file system and described read-write file image file being packaged into the described operating system update bag image file of the image file form that boot supports.
In some embodiments, described modified module is also for adding boot entry corresponding to described operating system update bag image file at described booting operating system configuration file.
As can be seen from above, upgrade method and the device of a kind unix operating system provided by the invention, by origin operation system-based part and upgrade file are merged, and be made into described operating system update bag image file, by moving described operating system update bag image file, according to the guiding of boot configuration file, start to start the operating system from operating system update bag image file, get final product the upgrading of complete operation system; Described method and device, it does not need to change the content of primitive operation system, has greatly simplified the upgrade job of operating system.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an embodiment of upgrade method of class unix operating system provided by the invention;
Fig. 2 is the process flow diagram of another embodiment of upgrade method of class unix operating system provided by the invention;
Fig. 3 is the structural representation of an embodiment of update device of class unix operating system provided by the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
With reference to accompanying drawing 1, it is the process flow diagram of the embodiment of upgrade method of class unix operating system provided by the invention.The upgrade method of described class unix operating system, comprising:
Step 101: obtain operating system update bag image file;
Step 102: copy described operating system update bag image file to the same storage directory of operating system foundation image file;
Step 103: start to start the operating system from operating system update bag image file when retouching operation system boot configuration file makes to start.
With reference to accompanying drawing 2, it is the process flow diagram of another embodiment of upgrade method of class unix operating system provided by the invention.
The upgrade method of described class unix operating system, comprising:
Step 201: described operating system foundation image file is mounted to temp directory, and by union file system, itself and operating system root file system is merged;
Step 202: operating system update image file is mounted to temp directory, and by union file system, itself and operating system root file system is merged.
Step 203: the catalogue of obtaining the storage medium institute carry of operating system foundation image file;
Step 204: search or create read-write file;
Step 205: described read-write file and operating system root file system are merged.
Step 206: reconstruction operation system kernel and initial root file system, and the two is copied to the catalogue of the storage medium institute carry of described operating system foundation image file;
Step 207: described read-write file is packaged into the image file of described operating system foundation image file with form;
Step 208: the described operating system update bag image file that the operating system nucleus of described reconstruction and initial root file system and described read-write file image file is packaged into the image file form that boot supports.
Step 209: obtain operating system update bag image file;
Step 210: copy described operating system update bag image file to the same storage directory of operating system foundation image file;
Step 211: start to start the operating system from operating system update bag image file when retouching operation system boot configuration file makes to start.
Further, described retouching operation system boot configuration file comprises: in described booting operating system configuration file, add boot entry corresponding to described operating system update bag image file.
Can find out from described in embodiment above, the upgrade method of a kind unix operating system provided by the invention, by origin operation system-based part and upgrade file are merged, and be made into described operating system update bag image file, by moving described operating system update bag image file, according to the guiding of boot configuration file, start to start the operating system from operating system update bag image file, get final product the upgrading of complete operation system; Described method and device, it does not need to change the content of primitive operation system, has greatly simplified the upgrade job of operating system.
With reference to accompanying drawing 3, it is the structural representation of the embodiment of update device of class unix operating system provided by the invention.
The update device 300 of described class unix operating system, comprising:
Acquisition module 301, for obtaining operating system update bag image file;
Replication module 302, for copying described operating system update bag image file to the same storage directory of operating system foundation image file;
Modified module 303, from operating system update bag image file starts start the operating system while making to start for retouching operation system boot configuration file.
Further, described device 300 also comprises:
Merge module 304, for described operating system foundation image file is mounted to temp directory, and by union file system, itself and operating system root file system are merged; And, for operating system update image file is mounted to temp directory, and by union file system, itself and operating system root file system are merged.
Further, described device 300 also comprises: creation module 305, for creating read-write file;
Described acquisition module 301 is also for obtaining the catalogue of storage medium institute carry of operating system foundation image file;
Described merging module 304 is also for merging described read-write file and operating system root file system.
Further, described device 300 also comprises: rebuild module 306, for reconstruction operation system kernel and initial root file system; Described replication module 302 is also for copying to the operating system nucleus of described reconstruction and initial root file system the catalogue of the storage medium institute carry of described operating system foundation image file;
Packetization module 307, for being packaged into described read-write file the image file of described operating system foundation image file with form; And, for the operating system nucleus of described reconstruction and initial root file system and described read-write file image file being packaged into the described operating system update bag image file of the image file form that boot supports.
Further, described modified module 303 is also for adding boot entry corresponding to described operating system update bag image file at described booting operating system configuration file.
As can be seen from above, the update device of a kind unix operating system provided by the invention, by origin operation system-based part and upgrade file are merged, and be made into described operating system update bag image file, by moving described operating system update bag image file, according to the guiding of boot configuration file, start to start the operating system from operating system update bag image file, get final product the upgrading of complete operation system; Described method and device, it does not need to change the content of primitive operation system, has greatly simplified the upgrade job of operating system.
Those of ordinary skill in the field are to be understood that: the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the upgrade method of a kind unix operating system, is characterized in that, comprising:
Obtain operating system update bag image file;
Copy described operating system update bag image file to the same storage directory of operating system foundation image file;
When making to start, retouching operation system boot configuration file starts to start the operating system from operating system update bag image file.
2. method according to claim 1, is characterized in that, also comprises:
Described operating system foundation image file is mounted to temp directory, and by union file system, itself and operating system root file system is merged;
Operating system update image file is mounted to temp directory, and by union file system, itself and operating system root file system is merged.
3. method according to claim 2, is characterized in that, also comprises:
Obtain the catalogue of the storage medium institute carry of operating system foundation image file;
Search or create read-write file;
Described read-write file and operating system root file system are merged.
4. method according to claim 3, is characterized in that, also comprises:
Reconstruction operation system kernel and initial root file system, and the two is copied to the catalogue of the storage medium institute carry of described operating system foundation image file;
Described read-write file is packaged into the image file of described operating system foundation image file with form;
The operating system nucleus of described reconstruction and initial root file system and described read-write file image file are packaged into the described operating system update bag image file of the image file form that boot supports.
5. according to the method described in claim 1 to 4 any one, it is characterized in that, also comprise:
In described booting operating system configuration file, add boot entry corresponding to described operating system update bag image file.
6. the update device of a kind unix operating system, is characterized in that, comprising:
Acquisition module, for obtaining operating system update bag image file;
Replication module, for copying described operating system update bag image file to the same storage directory of operating system foundation image file;
Modified module, from operating system update bag image file starts start the operating system while making to start for retouching operation system boot configuration file.
7. device according to claim 6, is characterized in that, also comprises:
Merge module, for described operating system foundation image file is mounted to temp directory, and by union file system, itself and operating system root file system are merged; And, for operating system update image file is mounted to temp directory, and by union file system, itself and operating system root file system are merged.
8. device according to claim 7, is characterized in that, also comprises: creation module, for creating read-write file;
Described acquisition module is also for obtaining the catalogue of storage medium institute carry of operating system foundation image file;
Described merging module is also for merging described read-write file and operating system root file system.
9. device according to claim 8, is characterized in that, also comprises: rebuild module, for reconstruction operation system kernel and initial root file system; Described replication module is also for copying to the operating system nucleus of described reconstruction and initial root file system the catalogue of the storage medium institute carry of described operating system foundation image file;
Packetization module, for being packaged into described read-write file the image file of described operating system foundation image file with form; And, for the operating system nucleus of described reconstruction and initial root file system and described read-write file image file being packaged into the described operating system update bag image file of the image file form that boot supports.
10. according to the device described in claim 6 to 9 any one, it is characterized in that,
Described modified module is also for adding boot entry corresponding to described operating system update bag image file at described booting operating system configuration file.
CN201410039250.6A 2014-01-26 2014-01-26 The upgrade method and device of one species unix operating systems Active CN103777987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410039250.6A CN103777987B (en) 2014-01-26 2014-01-26 The upgrade method and device of one species unix operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410039250.6A CN103777987B (en) 2014-01-26 2014-01-26 The upgrade method and device of one species unix operating systems

Publications (2)

Publication Number Publication Date
CN103777987A true CN103777987A (en) 2014-05-07
CN103777987B CN103777987B (en) 2017-09-15

Family

ID=50570265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410039250.6A Active CN103777987B (en) 2014-01-26 2014-01-26 The upgrade method and device of one species unix operating systems

Country Status (1)

Country Link
CN (1) CN103777987B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005491A (en) * 2015-08-11 2015-10-28 上海斐讯数据通信技术有限公司 Linux kernel and application program upgrading method and system
CN107908441A (en) * 2017-12-06 2018-04-13 郑州云海信息技术有限公司 The upgrade method and update device of a kind of database
CN108829442A (en) * 2017-05-04 2018-11-16 杭州海康威视数字技术股份有限公司 Program starts method and device
CN109634682A (en) * 2018-11-29 2019-04-16 恒生电子股份有限公司 The configuration file update method and device of application program
WO2022111097A1 (en) * 2020-11-26 2022-06-02 北京沃东天骏信息技术有限公司 File update method and apparatus, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292737A1 (en) * 2008-05-20 2009-11-26 Richard Hayton Methods and Systems for Patching Multiple Disk Images Derived from a Common Base Disk Image
CN102193807A (en) * 2010-03-19 2011-09-21 联想(北京)有限公司 Method for upgrading image file, server and computer network system
CN103106091A (en) * 2013-01-31 2013-05-15 深圳市开立科技有限公司 Start-up system and method of operating system based on removable storage media
CN103514015A (en) * 2013-09-16 2014-01-15 亚太宝龙科技(湖南)有限公司 Method and device for booting operation system from storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292737A1 (en) * 2008-05-20 2009-11-26 Richard Hayton Methods and Systems for Patching Multiple Disk Images Derived from a Common Base Disk Image
CN102193807A (en) * 2010-03-19 2011-09-21 联想(北京)有限公司 Method for upgrading image file, server and computer network system
CN103106091A (en) * 2013-01-31 2013-05-15 深圳市开立科技有限公司 Start-up system and method of operating system based on removable storage media
CN103514015A (en) * 2013-09-16 2014-01-15 亚太宝龙科技(湖南)有限公司 Method and device for booting operation system from storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005491A (en) * 2015-08-11 2015-10-28 上海斐讯数据通信技术有限公司 Linux kernel and application program upgrading method and system
CN105005491B (en) * 2015-08-11 2018-06-29 上海斐讯数据通信技术有限公司 The upgrade method and system of a kind of linux kernel and application program
CN108829442A (en) * 2017-05-04 2018-11-16 杭州海康威视数字技术股份有限公司 Program starts method and device
CN108829442B (en) * 2017-05-04 2021-12-14 杭州海康威视数字技术股份有限公司 Program starting method and device
CN107908441A (en) * 2017-12-06 2018-04-13 郑州云海信息技术有限公司 The upgrade method and update device of a kind of database
CN107908441B (en) * 2017-12-06 2021-07-02 郑州云海信息技术有限公司 Database upgrading method and upgrading device
CN109634682A (en) * 2018-11-29 2019-04-16 恒生电子股份有限公司 The configuration file update method and device of application program
WO2022111097A1 (en) * 2020-11-26 2022-06-02 北京沃东天骏信息技术有限公司 File update method and apparatus, device and storage medium

Also Published As

Publication number Publication date
CN103777987B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN103777987A (en) Method and device for upgrading unix-like operating system
US10911065B2 (en) Computer system and method including selectively compressing data files and directories based on an operator indication and representing the amount of available free space
JP6073854B2 (en) Electronic equipment and firmware recovery program
US8972967B2 (en) Application packages using block maps
CN107992304B (en) Method and device for generating display interface
AU2011336953B2 (en) Pre-heated software installation
US20200057654A1 (en) Method and system for mirror image package preparation and application operation
US8495614B2 (en) Mechanism for dynamically generating spec files for software package managers
CN103777953B (en) A kind of method and apparatus for making class Unix operating system update bags
TW201102924A (en) Embedded electronic device and method for updating firmware thereof
CN102779191B (en) A kind of system that realizes of MySQL database smooth upgrade and implementation method
WO2016188037A1 (en) Version burning method, system and terminal, and computer storage medium
US20160092281A1 (en) Information processing apparatus, method for controlling the same, and storage medium
JP6404708B2 (en) Information processing apparatus, BIOS setting information changing method, and computer program
CN104077161A (en) Client application updating method and device
CN103853587A (en) Method for writing flash based on cramfs and JFFS2
CN105554577A (en) Smart television over-the-air technology (OTA) upgrading method and device, smart television
WO2017000637A1 (en) Method of programming flash memory, and single board, host computer and system utilizing same
US20070100897A1 (en) System and method for automatic instance data mapping generation
US9652416B2 (en) Storage device for performing in-storage computing operations, method of operation the same, and system including the same
TWI514281B (en) A sata storage device with spi interface, using this device for boot up and bios code update method thereof
CN106371819A (en) Parameter acquisition method and apparatus, and electronic device
CN105138604A (en) Terminal data processing method and apparatus
CN102331942A (en) Method for automatically upgrading BIOS (basic input/output system) and Linux core
CN104461645B (en) Firmware upgrade method and device for upgrading firmware based on kexec

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhang Chunguang

Inventor after: Qi Shiqiang

Inventor after: Sun Qiao

Inventor after: Wang Sining

Inventor after: Leng Man

Inventor after: Qin Peng

Inventor after: Shi Hui

Inventor after: Sun Dandan

Inventor before: Deng Qinghua

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170612

Address after: 100070 Fengtai District, Feng Feng Road, the era of wealth on the 1st floor of the world's 28 floor, Beijing

Applicant after: Beijing Guodiantong Network Technology Co., Ltd.

Applicant after: JIAXING GUODIAN TONGXIN ENERGY TECHNOLOGY CO., LTD.

Applicant after: Fibrlink Networks Co., Ltd.

Address before: 411300 Shaoshan province Yong Park Science and Technology Park (hi tech Venture Center, building five), Hunan

Applicant before: Baolong computer system (Hunan) Co. Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190604

Address after: 100070 the 28 tier of fortune Fortune Plaza, No.1, hang Feng Road, Fengtai District, Beijing.

Co-patentee after: JIAXING GUODIAN TONGXIN ENERGY TECHNOLOGY CO., LTD.

Patentee after: Beijing Guodiantong Network Technology Co., Ltd.

Address before: 100070 the 28 tier of fortune Fortune Plaza, No.1, hang Feng Road, Fengtai District, Beijing.

Co-patentee before: JIAXING GUODIAN TONGXIN ENERGY TECHNOLOGY CO., LTD.

Patentee before: Beijing Guodiantong Network Technology Co., Ltd.

Co-patentee before: Fibrlink Networks Co., Ltd.