upgrade: Add support for --pull-only and --deploy-only
This makes it easier to script downloading updates in the background, and only do deployments just before rebooting. Partially addresses https://github.com/ostreedev/ostree/issues/640 Closes: #642 Approved by: jlebon
This commit is contained in:
1 parent
2c326d705e
commit
36b28cb4d2
6 files changed
+125
-7
No files matched your search
@@ -57,7 +57,10 @@ Boston, MA 02111-1307, USA.
|
||||
<title>Description</title>
|
||||
|
||||
<para>
|
||||
Downloads the latest version of the current ref from the build server and deploys it, if it changed. Reboot the machine for the changes to take effect.
|
||||
Downloads the latest version of the current ref from the build
|
||||
server and deploys it, if it changed. Reboot the machine for the
|
||||
changes to take effect. These phases can be split via
|
||||
<option>--pull-only</option> and <option>--deploy-only</option>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@@ -73,6 +76,24 @@ Boston, MA 02111-1307, USA.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--pull-only</option></term>
|
||||
|
||||
<listitem><para> Only perform a pull into the repository; do not
|
||||
create a deployment. This option can hence safely be used in a
|
||||
background scheduled job with the assurance of not changing
|
||||
system state.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--deploy-only</option></term>
|
||||
|
||||
<listitem><para>Create a new deployment from the latest commit
|
||||
in the tracked origin refspec. This option is intended to be used
|
||||
by a scheduled system that detected changes via <option>--pull-only</option>,
|
||||
and is ready to deploy them.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--reboot</option>,<option>-r</option></term>
|
||||
|
||||
|
||||
Reference in new issue
Block a user