patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob ffd6fda269617768d486e58e30661bbefc8b2bbd 1388 bytes (raw)
name: Documentation/using-spectrum/updates.adoc 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
= Updating the OS
:page-parent: Using Spectrum

// SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>
// SPDX-License-Identifier: GFDL-1.3-no-invariants-or-later OR CC-BY-SA-4.0

Spectrum supports updates via the `update` command.  This
takes the path to a staging directory as argument.  `update`
will create the directory, use it for the update, and then
delete it.  The parent directory must exist.

Updates are atomic and take effect after the system reboots.
If the system is rebooted, crashes, or loses power during an
update, the update will automatically be rolled back.  Updates
are digitally signed and Spectrum will refuse to install an
update that does not have a trusted signature.

Currently, Spectrum does not provide an update server, so
you must provide your own.  You can do this via
xref:../development/build-configuration.adoc[build configuration].
The default sets the signing key to `/dev/null` and the server
URL to an invalid value, so updates won't work.  To enable updates,
set `update-url` to the URL of your server and `update-signing-key`
to a binary GnuPG keyring to verify the updates with.  Not all possible
URLs will work, but most invalid URLs will cause an error during the
build rather than runtime misbehavior.

Right now, it is not possible to change the update URL or signing key
except via an update or by reinstalling the OS.

debug log:

solving ffd6fda269617768d486e58e30661bbefc8b2bbd ...
found ffd6fda269617768d486e58e30661bbefc8b2bbd in https://inbox.spectrum-os.org/spectrum-devel/20251112-updates-v2-7-88d96bf81b79@gmail.com/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251112-updates-v2-7-88d96bf81b79@gmail.com/
diff --git a/Documentation/using-spectrum/updates.adoc b/Documentation/using-spectrum/updates.adoc
new file mode 100644
index 0000000000000000000000000000000000000000..ffd6fda269617768d486e58e30661bbefc8b2bbd

Checking patch Documentation/using-spectrum/updates.adoc...
Applied patch Documentation/using-spectrum/updates.adoc cleanly.

index at:
100644 ffd6fda269617768d486e58e30661bbefc8b2bbd	Documentation/using-spectrum/updates.adoc

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).