CN103559059A - Quick medium-free upgrading method for Linux system - Google Patents
Quick medium-free upgrading method for Linux system Download PDFInfo
- Publication number
- CN103559059A CN103559059A CN201310552796.7A CN201310552796A CN103559059A CN 103559059 A CN103559059 A CN 103559059A CN 201310552796 A CN201310552796 A CN 201310552796A CN 103559059 A CN103559059 A CN 103559059A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- file
- remote server
- initrd
- linux system
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a quick medium-free upgrading method for a Linux system. According to the upgrading method, the smoothness and the quickness during updating and upgrading of the Linux system are realized by functions of modifying an initialized boot file of a memory, adding an automatic connection remote server, downloading an upgrade data packet, checking the file integrity, decompressing an alternate file, executing the rollback operation and the like; in addition, the updating and the upgrading can also be realized under the condition of not installing mobile media such as a compact disc and a U flash disk and large-scale quick deployment can be realized.
Description
Technical field
The invention belongs to (SuSE) Linux OS technical field, relate to a kind of medium linux system upgrade method of exempting from fast.
Background technology
Along with social development, computer application relates to social every field, and as one increase income, stablize, safe operating system, (SuSE) Linux OS is widely used in each field.Increasingly serious along with the development of software engineering and computer information safe situation simultaneously, the software upgrading of (SuSE) Linux OS is more frequent, and this just needs (SuSE) Linux OS constantly upgrade and upgrade, to guarantee the information security of system.
During the larger (SuSE) Linux OS edition upgrading of earthquake, due to the new and old edition compatibling problem of some kernel softwares and file system, can not by the mode of update software version, carry out upgrade-system simply, often need to reinstall system and dispose business.This not only makes the service disconnection long period, is also unfavorable for automated quick deployment.This just need a kind of level and smooth, (SuSE) Linux OS upgrades upgrade method fast.
Summary of the invention
The object of this invention is to provide a kind of medium linux system upgrade method of exempting from fast.
Technical matters to be solved by this invention is that a kind of medium linux system upgrade method of exempting from fast need to be provided, this renewal upgrade method can realize fast level and smooth in renewal when upgrading of linux system, also can without removable mediums such as fixing disc, USB flash disks in the situation that, realize upgrading and upgrade.In order to solve the problems of the technologies described above, a kind of technical scheme provided by the invention is as follows:
First by the system root partition of upgraded version and/boot subregion pack respectively make packet (linux system edition upgrading be mainly root partition and/upgrading of boot subregion, the subregion that other users arrange does not relate to system upgrade), be placed in remote server; As without remote server, if environment has sufficient space, also can directly packet be placed in environment to be upgraded.Revise initialization internal memory boot files (initrd), make can certainly be dynamically connected remote server download upgrading data packet of system when starting, then carry out integrity checking and back up original root partition file and/boot partitioned file, then decompress(ion) upgrading data packet to root partition and/boot subregion, substitute respectively original root partition file and/boot partitioned file, finally check that whether upgrading is successful, if the system of unsuccessful rollback backup, if successful normally restart, complete whole escalation process.Its implementation method comprises the following steps:
By the system root partition of upgraded version and/boot subregion packs respectively and is made into upgrading data packet, be placed in a fixed route of remote server; As without remote server, if environment has sufficient space, also can directly packet be placed in environment to be upgraded;
2. revise the initialization internal memory boot files (initrd) of redaction, add from being dynamically connected the functions such as remote server downloading data bag, integrity checking and decompress(ion) alternate file;
3. the kernel of redaction and initialization internal memory boot files (initrd) are copied to environment to be upgraded, the starting system of laying equal stress on;
4. system enters the initrd of modification, complete successively following operation: check whether to need the label of upgrading, be certainly dynamically connected remote server and download upgrading data packet, check downloading data bag integrality, back up original root partition and/boot partitioned file, the integrality that checks backup file, decompress(ion) upgrading data packet substitute original file, check the integrality of upgrade file, by upgrading label put no, restarted upgrading, if certain the step integrity checking in escalation process does not pass through, also has corresponding rollback operation.
The invention has the beneficial effects as follows, it completes by realizing with initrd the function of downloading upgrading data packet and completing upgrading automatically, and provide upgrading integrity checking and the failed rollback operation function of upgrading, can realize fast level and smooth when the renewal upgrading of linux system, also can without removable mediums such as fixing disc, USB flash disks in the situation that, realize and upgrade upgrading, and can realize large-scale rapid deployment.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the realization of the embodiment of the present invention.
Embodiment
A kind of medium linux system upgrade method of exempting from fast of the present invention is described in detail below, comprises the following steps:
By the system root partition of upgraded version and/boot subregion packs respectively and is made into upgrading data packet, be placed in a fixed route of remote server; As without remote server, if environment has sufficient space, also can directly packet be placed in environment to be upgraded;
2. revise the initialization internal memory boot files (initrd) of redaction, add from being dynamically connected the functions such as remote server downloading data bag, integrity checking and decompress(ion) alternate file;
3. the kernel of redaction and initialization internal memory boot files (initrd) are copied to environment to be upgraded, the starting system of laying equal stress on;
4. system enters the initrd of modification, complete successively following operation: check whether to need the label of upgrading, be certainly dynamically connected remote server and download upgrading data packet, check downloading data bag integrality, back up original root partition and/boot partitioned file, the integrality that checks backup file, decompress(ion) upgrading data packet substitute original file, check the integrality of upgrade file, by upgrading label put no, restarted upgrading, if certain the step integrity checking in escalation process does not pass through, also has corresponding rollback operation.
Claims (4)
1. exempt from fast a medium linux system upgrade method, comprise the following steps:
1) by the system root partition of upgraded version and/boot subregion packs respectively and is made into upgrading data packet, be placed in a fixed route of remote server; As without remote server, if environment has sufficient space, also can directly packet be placed in environment to be upgraded;
2) revise the initialization internal memory boot files (initrd) of redaction, add from being dynamically connected the functions such as remote server downloading data bag, integrity checking and decompress(ion) alternate file;
3) kernel of redaction and initialization internal memory boot files (initrd) are copied to environment to be upgraded, the starting system of laying equal stress on;
4) system enters the initrd of modification, complete successively following operation: check whether to need the label of upgrading, be certainly dynamically connected remote server and download upgrading data packet, check downloading data bag integrality, back up original root partition and/boot partitioned file, the integrality that checks backup file, decompress(ion) upgrading data packet substitute original file, check the integrality of upgrade file, by upgrading label put no, restarted upgrading, if certain the step integrity checking in escalation process does not pass through, also has corresponding rollback operation.
2. a kind of linux system fast of exempting from medium as claimed in claim 1 upgrades upgrade method, it is characterized in that step 1) in the placement location of upgrading data packet be not limited to remote server, can be also local.
3. a kind of linux system fast of exempting from medium as claimed in claim 1 upgrades upgrade method, it is characterized in that step 2) the middle initialization internal memory boot files (initrd) of revising, the function adding is not limited to, from being dynamically connected the functions such as remote server downloading data bag, integrity checking and decompress(ion) alternate file, also comprise according to required other functions that customize of upgrading flow process.
4. a kind of linux system fast of exempting from medium as claimed in claim 1 upgrades upgrade method, it is characterized in that step 4) in the upgrading flow process of being undertaken by initrd comprise by inspection tag and determine whether to need upgrading, backup file, integrity checking, decompress(ion) substitute files and corresponding rollback operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310552796.7A CN103559059A (en) | 2013-11-05 | 2013-11-05 | Quick medium-free upgrading method for Linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310552796.7A CN103559059A (en) | 2013-11-05 | 2013-11-05 | Quick medium-free upgrading method for Linux system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103559059A true CN103559059A (en) | 2014-02-05 |
Family
ID=50013313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310552796.7A Pending CN103559059A (en) | 2013-11-05 | 2013-11-05 | Quick medium-free upgrading method for Linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103559059A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302593A (en) * | 2015-07-17 | 2016-02-03 | 天津市英贝特航天科技有限公司 | Remote upgrade system and method of PowerPC motherboard |
CN105867961A (en) * | 2015-12-07 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | System upgrading and degrading method and device |
WO2018076969A1 (en) * | 2016-10-24 | 2018-05-03 | 深圳创维数字技术有限公司 | Software upgrade method, computing device, and channel control device |
CN111475220A (en) * | 2019-01-23 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN115002546A (en) * | 2022-07-21 | 2022-09-02 | 北京智象信息技术有限公司 | Upgrading method and system for Linux smart television operating system |
CN115718612A (en) * | 2022-11-30 | 2023-02-28 | 成都安恒信息技术有限公司 | Updating method of CF card operating system |
CN116257291A (en) * | 2022-11-25 | 2023-06-13 | 中国船舶集团有限公司第七〇九研究所 | A Method of Rapid Startup and Deployment of Operating System Based on Domestic CPU Platform |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020083362A1 (en) * | 2000-12-22 | 2002-06-27 | Objectsoft Corp. | System and method for providing unattended personality acquisition, self-recovery and remote maintenance to internet-based end-user devices |
US20070022184A1 (en) * | 2005-07-21 | 2007-01-25 | Rakesh Sharma | Method and apparatus for a secure network install |
CN1928820A (en) * | 2006-09-30 | 2007-03-14 | 四川长虹电器股份有限公司 | Embedded system and its upgrading method |
CN101038551A (en) * | 2006-03-16 | 2007-09-19 | 南京大学 | Method for implementing the start of Linux operation system in mobile hard disk |
CN101256527A (en) * | 2008-03-12 | 2008-09-03 | 中兴通讯股份有限公司 | A kind of boot program backup method and its backup device |
CN101477471A (en) * | 2009-01-07 | 2009-07-08 | 杭州海康威视数字技术股份有限公司 | Embedded system firmware on-line upgrading system |
WO2010148742A1 (en) * | 2009-06-23 | 2010-12-29 | 中兴通讯股份有限公司 | Method device and system for on-line upgrading software |
CN102521006A (en) * | 2012-01-09 | 2012-06-27 | 广州广电运通金融电子股份有限公司 | Hardware driving and medium program upgrading method of automatic equipment |
-
2013
- 2013-11-05 CN CN201310552796.7A patent/CN103559059A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020083362A1 (en) * | 2000-12-22 | 2002-06-27 | Objectsoft Corp. | System and method for providing unattended personality acquisition, self-recovery and remote maintenance to internet-based end-user devices |
US20070022184A1 (en) * | 2005-07-21 | 2007-01-25 | Rakesh Sharma | Method and apparatus for a secure network install |
CN101038551A (en) * | 2006-03-16 | 2007-09-19 | 南京大学 | Method for implementing the start of Linux operation system in mobile hard disk |
CN1928820A (en) * | 2006-09-30 | 2007-03-14 | 四川长虹电器股份有限公司 | Embedded system and its upgrading method |
CN101256527A (en) * | 2008-03-12 | 2008-09-03 | 中兴通讯股份有限公司 | A kind of boot program backup method and its backup device |
CN101477471A (en) * | 2009-01-07 | 2009-07-08 | 杭州海康威视数字技术股份有限公司 | Embedded system firmware on-line upgrading system |
WO2010148742A1 (en) * | 2009-06-23 | 2010-12-29 | 中兴通讯股份有限公司 | Method device and system for on-line upgrading software |
CN102521006A (en) * | 2012-01-09 | 2012-06-27 | 广州广电运通金融电子股份有限公司 | Hardware driving and medium program upgrading method of automatic equipment |
Non-Patent Citations (1)
Title |
---|
魏苗等: "定制initrd,网络安装Linux", 《福建电脑》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302593A (en) * | 2015-07-17 | 2016-02-03 | 天津市英贝特航天科技有限公司 | Remote upgrade system and method of PowerPC motherboard |
CN105302593B (en) * | 2015-07-17 | 2018-12-18 | 天津市英贝特航天科技有限公司 | The remote update system and method for PowerPC motherboard |
CN105867961A (en) * | 2015-12-07 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | System upgrading and degrading method and device |
WO2017096889A1 (en) * | 2015-12-07 | 2017-06-15 | 乐视控股(北京)有限公司 | Method and device for upgrading and downgrading system |
WO2018076969A1 (en) * | 2016-10-24 | 2018-05-03 | 深圳创维数字技术有限公司 | Software upgrade method, computing device, and channel control device |
CN111475220A (en) * | 2019-01-23 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN111475220B (en) * | 2019-01-23 | 2023-04-25 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN115002546A (en) * | 2022-07-21 | 2022-09-02 | 北京智象信息技术有限公司 | Upgrading method and system for Linux smart television operating system |
CN115002546B (en) * | 2022-07-21 | 2022-11-18 | 北京智象信息技术有限公司 | Upgrading method and system for Linux smart television operating system |
CN116257291A (en) * | 2022-11-25 | 2023-06-13 | 中国船舶集团有限公司第七〇九研究所 | A Method of Rapid Startup and Deployment of Operating System Based on Domestic CPU Platform |
CN115718612A (en) * | 2022-11-30 | 2023-02-28 | 成都安恒信息技术有限公司 | Updating method of CF card operating system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559059A (en) | Quick medium-free upgrading method for Linux system | |
US11709684B2 (en) | Configuring a computing device using managed operating system images | |
CN101436138B (en) | Control device and control method for software upgrade and dynamic rolling back | |
JP4467624B2 (en) | Software update management program, software update management apparatus, and software update management method | |
US10303459B2 (en) | Electronic system with update control mechanism and method of operation thereof | |
CN101931944B (en) | Method, device and system for updating terminal patches on line | |
US20090217024A1 (en) | Recovering from Hard Disk Errors that Corrupt One or More Critical System Boot Files | |
WO2019062703A1 (en) | Update method, and embedded system | |
CN102609304B (en) | Management method for internal third-party applications of Android mobile phone | |
CN101158906A (en) | Customer terminals program automatic update method | |
CN103455354A (en) | Method and equipment for preventing hardware update from failing | |
EP3066562B1 (en) | Systems and methods for updating system-level services within read-only system images | |
CN104918114A (en) | Method and device for upgrading operation system | |
CN103530150A (en) | Remote updating method for Linux operating system | |
US9619340B1 (en) | Disaster recovery on dissimilar hardware | |
WO2020029967A1 (en) | Method and apparatus for repairing fault in operating system | |
CN103186387A (en) | Electronic device and method for updating its operating system | |
US11093256B2 (en) | System and method for dynamically installing driver dependencies | |
CN113032183A (en) | System management method, device, computer equipment and storage medium | |
WO2016082450A1 (en) | Method for upgrading user terminal, and user terminal | |
US20200019333A1 (en) | Systems and methods for redundant array data alignment | |
CN104850449A (en) | Method and apparatus for implementing system architecture | |
US11231940B2 (en) | System and method for automatic recovery of information handling systems | |
US20150212866A1 (en) | Management system for service of multiple operating environments, and methods thereof | |
CN111338751B (en) | Cross-pool migration method and device for data in same ceph cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140205 |
|
WD01 | Invention patent application deemed withdrawn after publication |