CN118259936A - Operating system updating method, device, computing equipment and storage medium - Google Patents

Operating system updating method, device, computing equipment and storage medium Download PDF

Info

Publication number
CN118259936A
CN118259936A CN202410302361.5A CN202410302361A CN118259936A CN 118259936 A CN118259936 A CN 118259936A CN 202410302361 A CN202410302361 A CN 202410302361A CN 118259936 A CN118259936 A CN 118259936A
Authority
CN
China
Prior art keywords
operating system
file
snapshot
link
generating
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
CN202410302361.5A
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202410302361.5A priority Critical patent/CN118259936A/en
Publication of CN118259936A publication Critical patent/CN118259936A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to the field of operating systems, and in particular, to an operating system updating method, an operating system updating device, a computing device, and a storage medium, where the method includes: generating a first snapshot file according to the current state of the first operating system; installing the update of the first operating system according to the first snapshot file to obtain a second operating system; generating a second snapshot file according to the second operating system; and generating an activation guide file according to the second snapshot file, and loading the second snapshot file according to the activation guide file in a guiding way so as to run a second operating system. When the first operation system is updated, the first snapshot file is constructed first, and then the operation system is updated according to the first snapshot file, so that the problem that the system cannot be used due to update failure when the first operation system is directly used for updating is avoided, and the reliability of the operation system during updating is improved.

Description

Operating system updating method, device, computing equipment and storage medium
Technical Field
The present invention relates to the field of operating systems, and in particular, to an operating system updating method, an operating system updating device, a computing device, and a storage medium.
Background
With the development of computer technology, operating systems are increasingly being used to perform various tasks. The installation and subsequent updating of the operating system become an essential link in the development and use of the operating system. In the prior art, the update of an operating system involves multiple operations such as application installation, configuration modification, and boot change, and these steps include a large number of file change operations, and each operation generates thread scheduling, so that each step of installing the operating system cannot be executed consecutively, and therefore it cannot be guaranteed that the system update is an atomic operation.
For this reason, a new operating system updating method and apparatus are required.
Disclosure of Invention
To this end, the present invention provides an operating system update method that seeks to solve, or at least mitigate, the above-identified problems.
According to a first aspect of the present invention, there is provided an operating system updating method adapted to be executed in a computing device having a first operating system running therein, the method comprising: generating a first snapshot file according to the current state of the first operating system; installing the update of the first operating system according to the first snapshot file to obtain a second operating system; generating a second snapshot file according to the second operating system; and generating an activation guide file according to the second snapshot file, and loading the second snapshot file according to the activation guide file in a guiding way so as to run a second operating system.
Optionally, in the method according to the present invention, a file repository is built in the computing device, the method further comprising: generating a first configuration file according to a first operating system and storing the first configuration file in a file warehouse; constructing a first link according to the first configuration file, and generating an initial snapshot file of the first configuration file capable of being linked to the file warehouse according to the first connection and the initial state of the first operating system; a second link is constructed from the initial snapshot file to run the first operating system in accordance with the second link.
Optionally, in the method according to the present invention, generating the first snapshot file according to the current state of the first operating system includes: constructing a third link according to the first configuration file, and generating a first snapshot file which can be linked to the first configuration file of the file warehouse according to the third link and the current state of the first operating system; and constructing a fourth link according to the first snapshot file so as to run the first operating system according to the fourth link.
Optionally, in the method according to the present invention, installing an update of the first operating system according to the first snapshot file, to obtain the second operating system includes: determining a first configuration file according to the first snapshot file, and copying the first configuration file to obtain a second configuration file; and installing the update of the first operating system according to the second configuration file to obtain a third configuration file.
Optionally, in the method according to the present invention, generating the second snapshot file according to the second operating system includes: storing the third configuration file to a file repository; and constructing a fifth link according to the third configuration file, and generating a second snapshot file which can be linked to the third configuration file of the file warehouse according to the initial state of the second operating system.
Optionally, loading the second snapshot file according to the boot-up boot file boot to run the second operating system includes: generating a sixth link according to the second snapshot file; and calling a sixth link according to the activated guide file to run the second operating system.
Optionally, in the method according to the present invention, further comprising: and generating a rollback boot file according to the first snapshot file so as to operate the first operating system according to the rollback boot file when the updating of the operating system fails.
Optionally, in the method according to the invention, the first link, the third link and the fifth link comprise hard links.
Optionally, in the method according to the invention, the second link, the fourth link and the sixth link comprise soft links.
According to a second aspect of the present invention there is provided an operating system updating apparatus adapted to reside in a computing device, the apparatus comprising: the initialization module is suitable for generating a first snapshot file according to the current state of the first operating system; the updating module is suitable for installing the updating of the first operating system according to the first snapshot file to obtain a second operating system, and generating a second snapshot file according to the second operating system; and the boot management module is suitable for generating an activated boot file according to the second snapshot file, and bootably loading the second snapshot file according to the activated boot file so as to run the second operating system.
According to a third aspect of the present invention there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the operating system update method according to the present invention.
According to a fourth aspect of the present invention there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform an operating system update method according to the present invention.
The invention discloses an operating system updating method, which is suitable for being executed in a computing device, wherein a first operating system is operated in the computing device, and the method comprises the following steps: generating a first snapshot file according to the current state of the first operating system; installing the update of the first operating system according to the first snapshot file to obtain a second operating system; generating a second snapshot file according to the second operating system; and generating an activation guide file according to the second snapshot file, and loading the second snapshot file according to the activation guide file in a guiding way so as to run a second operating system. When the first operation system is updated, the first snapshot file is constructed first, and then the operation system is updated according to the first snapshot file, so that the problem that the system cannot be used due to update failure when the first operation system is directly used for updating is avoided, and the reliability of the operation system during updating is improved. When the operating system is updated, the state of the existing operating system is saved to obtain a first snapshot file, and the operating system is installed and updated according to the first snapshot file; in the updating process, since the state of the operating system is fixed by the first snapshot file, each step can be executed from the first step to the last step in the updating process, and is not influenced by the state change of the operating system, so that the updating process of the operating system is ensured to be atomic operation in the updating process of the operating system.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 illustrates a flow diagram of an operating system update method 100 according to an exemplary embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200 according to an exemplary embodiment of the invention;
FIG. 3 illustrates a schematic diagram of running an operating system in accordance with an exemplary embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of an update operating system in accordance with an exemplary embodiment of the present invention;
Fig. 5 shows a schematic diagram of an operating system update apparatus 500 according to an exemplary embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a flow diagram of an operating system update method 100 according to an exemplary embodiment of the invention.
The operating system update method of the present invention is adapted to run in a computing device. FIG. 2 illustrates a block diagram of a computing device according to an exemplary embodiment of the invention.
In a basic configuration, computing device 200 includes at least one processing unit 220 and system memory 210. According to one aspect, depending on the configuration and type of computing device, system memory 210 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, system memory 210 includes an operating system 211.
According to one aspect, operating system 211 is suitable, for example, for controlling the operation of computing device 200. Further, examples are practiced in connection with a graphics library, other operating systems, or any other application program and are not limited to any particular application or system. This basic configuration is illustrated in fig. 2 by those components within dashed line 215. According to one aspect, computing device 200 has additional features or functionality. For example, according to one aspect, computing device 200 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape.
As set forth hereinabove, according to one aspect, program modules 212 are stored in system memory 210. According to one aspect, program modules 212 may include one or more application programs, the invention is not limited to the type of application program, e.g., applications further include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided application, web browser applications, etc.
According to one aspect, the examples may be practiced in a circuit comprising discrete electronic components, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic components or a microprocessor. For example, examples may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 2 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all of which are integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functionality described herein may be operated via dedicated logic integrated with other components of computing device 200 on a single integrated circuit (chip). Embodiments of the invention may also be practiced using other techniques capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum techniques. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuit or system.
According to one aspect, computing device 200 may also have one or more input devices 231, such as a keyboard, mouse, pen, voice input device, touch input device, or the like. Output devices 232 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 200 may include one or more communication connections 233 that allow communication with other computing devices 240. Examples of suitable communication connections 233 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel and/or serial ports. Computing device 200 may be communicatively connected to other computing devices 240 via communication connection 233.
Embodiments of the present invention also provide a non-transitory readable storage medium storing instructions for causing the computing device to perform a method according to embodiments of the present invention. The readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be any method or technology for information storage. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transitory readable storage medium.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio Frequency (RF), infrared, and other wireless media.
It should be noted that although the above-described computing device only shows processing unit 220, system memory 210, input device 231, output device 232, and communication connection 233, the device may include other components necessary to achieve proper operation in a particular implementation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
Returning to FIG. 1, first, 110, a first snapshot file is generated based on a current state of a first operating system; the current state comprises the current running states of the first operating system, such as running parameters of the first operating system; and recovering the first operating system to the current state according to the first snapshot file, and realizing the backup of the current state of the first operating system. The invention does not limit the kind and the number of the specific parameters included in the current state.
According to one embodiment of the invention, a computing device has a first operating system running therein. The present invention does not limit the specific type of the first operating system, and the first operating system may be implemented as a linux system, a windows system, or the like.
According to one embodiment of the invention, a file warehouse is built in the computing device, and before a first snapshot file is generated according to the current state of a first operating system, a first configuration file is also generated according to the first operating system and stored in the file warehouse; constructing a first link according to the first configuration file, and generating an initial snapshot file of the first configuration file capable of being linked to the file warehouse according to the first link and the initial state of the first operating system; a second link is constructed from the initial snapshot file to run the first operating system in accordance with the second link.
According to an embodiment of the present invention, the first configuration file is a system various configuration files of the first operating system, and the present invention is not limited to a specific file type of the first configuration file and a specific way of generating the first configuration file.
The time point where the initial state of the first operating system is located is not limited by the specific time interval before the time point where the current state of the first operating system is located.
According to one embodiment of the invention, the file repository is a repository for storing common configuration files of the operating system, and different versions and states of each operating system of different versions are correspondingly stored with the configuration files in the file repository, so that the operating system can be operated according to the configuration files, and the operation state of the operating system can be recovered according to the corresponding snapshot files. The configuration file comprises data and information files required by the operation of the operating system, and the snapshot file records operation parameters of the operating system in corresponding state operation. The operating system can be operated according to the configuration file, and the operating system can be operated according to the recorded operation parameters under the corresponding state according to the snapshot file and the configuration file, so that the reproduction of the corresponding state of the operating system is realized.
According to one embodiment of the present invention, the configuration file may be embodied as repo files, and the present invention is not limited to the specific file type of the configuration file. The snapshot file can be specifically implemented as a snapshot file, and the invention does not limit the specific file type of the snapshot file.
According to one embodiment of the invention, the first link comprises a hard link and the second link comprises a soft link; the first configuration file can be linked to the initial snapshot file according to the second link. The first snapshot file records the running state of the operating system in the initial state, the first operating system can be run according to the first configuration file, and the first operating system can be run in the initial state according to the first snapshot file and the first configuration file.
When a first snapshot file is generated according to the current state of the first operating system, a third link is constructed according to the first configuration file, and a first snapshot file which can be linked to the first configuration file of the file warehouse is generated according to the third link and the current state of the first operating system; and constructing a fourth link according to the first snapshot file so as to run the first operating system according to the fourth link.
According to one embodiment of the invention, the third link comprises a hard link, the fourth link comprises a soft link, and the second snapshot file is capable of being linked to according to the fourth link, and the first configuration file is capable of being linked to according to the second snapshot file.
By constructing configuration files of the same version of operating system, file data sharing in different running states can be realized, and the same file data occupies only one storage space, so that the storage space of the computing device is saved.
According to one embodiment of the invention, the file repository may construct ostree a configuration file of the operating system in which the system stores different versions, and the invention is not limited to the particular manner in which the file repository stores the configuration file.
According to one embodiment of the invention, when the operating system runs, the operating system can be run from a preset operating system running catalog. By means of soft link, snapshot files linked with the operating system running catalog are set, and different running states of the operating system can be reproduced.
FIG. 3 illustrates a schematic diagram of running an operating system according to an exemplary embodiment of the invention. As shown in fig. 3, the operating system runs a directory that is/boot, currently linked to the directory of the first snapshot file through a soft connection: and/osroot/os/snopshot/state 2 to implement running the first operating system in the current state. The first snapshot file is linked to the directory of the first configuration file by a hard link: per osroot/os/repo. The operating system also comprises an initial snapshot file, and the directory of the initial snapshot file is as follows: osroot/os/snopshot/state1. The initial snapshot file is linked to the first configuration file by way of a hard link.
In the operating system, a layered architecture of the operating system is realized by combining soft connection and hard link, wherein the layered architecture comprises an operating system running catalog layer and an operating system running catalog of the current operating system;
the operating system also comprises a snapshot file layer, wherein the snapshot file layer comprises one or more snapshot files, and the operating system running catalog can be linked to different snapshot files by modifying the soft link from the operating system running catalog to the snapshot files, so that the operating system can run in different running states.
The operating system also comprises a configuration file layer, wherein the configuration file layer comprises one or more configuration files, one or more snapshot files are linked to the configuration files in a hard link mode, and the operating system in a plurality of different states calls the common configuration files to run the operating system, so that the storage space of the computing device is saved.
According to one embodiment of the invention, after the first snapshot file is generated, the first snapshot file is further mounted in the file system, so that the first snapshot file is prevented from being changed when the operating system is updated.
According to one embodiment of the invention, the file system may be embodied as an overlay file system, and the invention is not limited to a particular type of file system.
Subsequently, step 120 is executed to install the update of the first operating system according to the first snapshot file, so as to obtain a second operating system; specifically, a first configuration file is determined according to the first snapshot file, and the first configuration file is copied to obtain a second configuration file; and installing the update of the first operating system according to the second configuration file to obtain a third configuration file.
According to one embodiment of the invention, the first configuration file may be determined from a hard link of the first snapshot file with the first configuration file. And meanwhile, the original first configuration file is not modified, and the operating system is upgraded after the first configuration file is copied to obtain a third configuration file. The third configuration file includes data files and information required for the second operating system to run. The upgraded second operating system and the first operating system are operating systems with different versions. The invention does not limit the specific content upgraded by the second operating system.
According to one embodiment of the invention, when the first operating system is updated according to the first snapshot file, the first operating system may be updated according to the first snapshot file stored in the file system, for example, the first operating system may be updated according to the first snapshot file stored in the overlay file system, so as to implement updating and upgrading of the first operating system.
Subsequently, step 130 is executed to generate a second snapshot file according to the second operating system; specific: storing the third configuration file to a file repository; and constructing a fifth link according to the third configuration file, and generating a second snapshot file which can be linked to the third configuration file of the file warehouse according to the initial state of the second operating system.
According to one embodiment of the invention, the fifth link comprises a hard link.
Then, step 140 is executed to generate an activation boot file according to the second snapshot file, and to boot load the second snapshot file according to the activation boot file to run the second operating system.
According to one embodiment of the invention, the boot file is activated by using a boot loaded snapshot file, an operating system of a corresponding version can be started according to the loaded snapshot file, the boot file can be specifically implemented as gurb files, and the invention is not limited to the specific type of the boot loaded file.
According to one embodiment of the invention, the code to boot load a file is as follows:
Loading a second snapshot file according to the boot file boot activation so as to generate a sixth link according to the second snapshot file when the second operating system is operated; and calling a sixth link according to the activation guide file to run a second operating system, so that atomicity of updating the operating system is realized.
According to one embodiment of the invention, the sixth link comprises a soft link.
FIG. 4 illustrates a schematic diagram of an update operating system according to an exemplary embodiment of the present invention. As shown in fig. 4, a second configuration file for upgrading the operating system is first generated; and upgrading the operating system according to the second configuration file. A snapshot file is then generated from the second operating system. When switching to the second operating system operation, the current operating system operation catalog can be backed up; when switching to the second operating system run, the soft link of the system run directory is modified to the second snapshot file. And deleting the backup running catalog of the current operating system after the second operating system is successfully operated.
According to one embodiment of the invention, the method of the invention further comprises: and generating a rollback boot file according to the first snapshot file so as to operate the first operating system according to the rollback boot file when the updating of the operating system fails.
According to one embodiment of the invention, when the second operating system fails to run, the soft link of the operating system running catalog is not modified, and the soft link pointing to the first operating system is still used, so that the rollback to the previous system state is realized, and the reliability of the operating system is improved.
Fig. 5 shows a schematic diagram of an operating system update apparatus 500 according to an exemplary embodiment of the invention. As shown in fig. 5, the operating system updating apparatus 500 includes an initialization module 510, where the initialization module 510 is adapted to generate a first snapshot file according to a current state of a first operating system; the updating module 520 is adapted to install the update of the first operating system according to the first snapshot file, obtain a second operating system, and generate a second snapshot file according to the second operating system; the boot management module 530, the boot management module 530 is adapted to generate an activation boot file according to the second snapshot file, and boot load the second snapshot file according to the activation boot file to run the second operating system.
According to one embodiment of the invention, the initialization module 510 is further adapted to generate a first configuration file from the first operating system and store it in the file repository; constructing a first link according to a first configuration file, and generating an initial snapshot file of the first configuration file capable of being linked to a file warehouse according to the first connection and the initial state of the first operating system; and constructing a second link according to the initial snapshot file so as to run the first operating system according to the second link. The boot management module 530 is further adapted to generate a rollback boot file from the first snapshot file such that when an operating system update fails, the first operating system is run from the rollback boot file.
The invention discloses an operating system updating method, which is suitable for being executed in a computing device, wherein a first operating system is operated in the computing device, and the method comprises the following steps: generating a first snapshot file according to the current state of the first operating system; installing the update of the first operating system according to the first snapshot file to obtain a second operating system; generating a second snapshot file according to the second operating system; and generating an activation guide file according to the second snapshot file, and loading the second snapshot file according to the activation guide file in a guiding way so as to run a second operating system. When the first operation system is updated, the first snapshot file is constructed first, and then the operation system is updated according to the first snapshot file, so that the problem that the system cannot be used due to update failure when the first operation system is directly used for updating is avoided, and the reliability of the operation system during updating is improved.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or groups of embodiments may be combined into one module or unit or group, and furthermore they may be divided into a plurality of sub-modules or sub-units or groups. Any combination of all features disclosed in this specification, and all processes or units of any method or apparatus so disclosed, may be employed, except that at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the operating system update method of the present invention in accordance with instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media comprise computer storage media and communication media. Computer-readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention.

Claims (12)

1. An operating system update method adapted to be executed in a computing device having a first operating system running therein, the method comprising:
generating a first snapshot file according to the current state of the first operating system;
installing the update of the first operating system according to the first snapshot file to obtain a second operating system;
generating a second snapshot file according to the second operating system;
And generating an activation guide file according to the second snapshot file, and loading the second snapshot file according to the activation guide file in a guiding way so as to run the second operating system.
2. The method of claim 1, wherein the computing device has a file repository built therein, the method further comprising:
generating a first configuration file according to the first operating system and storing the first configuration file in the file warehouse;
Constructing a first link according to the first configuration file, and generating an initial snapshot file of the first configuration file capable of being linked to the file warehouse according to the first connection and the initial state of the first operating system;
and constructing a second link according to the initial snapshot file so as to operate the first operating system according to the second link.
3. The method of claim 2, wherein the generating a first snapshot file from a current state of the first operating system comprises:
constructing a third link according to the first configuration file, and generating a first snapshot file capable of being linked to the first configuration file of the file warehouse according to the third link and the current state of the first operating system;
and constructing a fourth link according to the first snapshot file so as to operate the first operating system according to the fourth link.
4. A method as claimed in claim 2 or 3, wherein said installing an update of said first operating system from said first snapshot file to obtain a second operating system comprises:
determining a first configuration file according to the first snapshot file, and copying the first configuration file to obtain a second configuration file;
And installing the update of the first operating system according to the second configuration file to obtain a third configuration file.
5. The method of claim 3, wherein generating a second snapshot file from the second operating system comprises:
Storing the third configuration file to the file repository;
And constructing a fifth link according to the third configuration file, and generating a second snapshot file capable of being linked to the third configuration file of the file warehouse according to the initial state of the second operating system.
6. The method of claim 5, wherein the bootstrapping the second snapshot file according to the activation boot file to run the second operating system comprises:
generating a sixth link according to the second snapshot file;
and calling the sixth link according to the activation guide file so as to run the second operating system.
7. The method of any one of claims 1-6, wherein the method further comprises:
And generating a rollback guide file according to the first snapshot file, so that when the updating of the operating system fails, the first operating system is operated according to the rollback guide file.
8. The method of any of claims 1-6, wherein the first link, the third link, and the fifth link comprise hard links.
9. The method of any of claims 1-6, wherein the second link, the fourth link, and the sixth link comprise soft links.
10. An operating system updating apparatus adapted to reside in a computing device, the apparatus comprising:
the initialization module is suitable for generating a first snapshot file according to the current state of the first operating system;
the updating module is suitable for installing the updating of the first operating system according to the first snapshot file to obtain a second operating system, and generating a second snapshot file according to the second operating system;
and the boot management module is suitable for generating an activated boot file according to the second snapshot file, and bootably loading the second snapshot file according to the activated boot file so as to run the second operating system.
11. A computing device, comprising:
One or more processors;
a memory; and
One or more programs, wherein the one or more programs are stored in memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-9.
12. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-9.
CN202410302361.5A 2024-03-15 2024-03-15 Operating system updating method, device, computing equipment and storage medium Pending CN118259936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410302361.5A CN118259936A (en) 2024-03-15 2024-03-15 Operating system updating method, device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410302361.5A CN118259936A (en) 2024-03-15 2024-03-15 Operating system updating method, device, computing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118259936A true CN118259936A (en) 2024-06-28

Family

ID=91612268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410302361.5A Pending CN118259936A (en) 2024-03-15 2024-03-15 Operating system updating method, device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118259936A (en)

Similar Documents

Publication Publication Date Title
US10732963B2 (en) System and method for automatically managing updated UEFI variables
CN111492347B (en) System and method for updating a container
US8806476B2 (en) Implementing a software installation process
US8209290B1 (en) Generic granular restore of application data from a volume image backup
US8639973B2 (en) System reset
EP3769224B1 (en) Configurable recovery states
US20080114923A1 (en) Apparatus and method for controlling operation processing in nonvolatile memory
CN111258666A (en) Reading method and device of computer file, computer system and storage medium
US7818557B2 (en) Method for re-imaging a computer system
JP2006178964A (en) Method and computer-readable medium for verifying and saving electronic document
CN116049207A (en) Application SQL script processing method and device, processor and electronic equipment
CN117707543A (en) Application installation package manufacturing and installation method, computing device and storage medium
CN111797390B (en) Program running method, program running device, electronic equipment and computer readable storage medium
US11630742B2 (en) System and method of performing recovery using a backup image
EP3769225B1 (en) Free space pass-through
CN115576903B (en) File system construction method, computing device and storage medium
CN117170802A (en) Method, system, equipment and medium for rapidly manufacturing operating system mirror image based on information creation platform
CN115617488A (en) Operating system migration method and device, computing equipment and storage medium
CN116225618A (en) Method for starting virtual machine based on container mirror image and virtual machine starting device
CN118259936A (en) Operating system updating method, device, computing equipment and storage medium
CN111258617B (en) Electronic equipment
CN114510375A (en) Flash chip data area dynamic sharing system and method
CN114398087A (en) Method for improving running stability of single chip microcomputer after program updating and single chip microcomputer
US20240211257A1 (en) Cache to Receive Firmware Generated Data During Firmware Update
US20050155010A1 (en) Method, system and memory for replacing a module

Legal Events

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