Skip to content

Commit cf6d4d5

Browse files
committed
docs/usage: New file
Document offline USB upgrades. Signed-off-by: Colin Walters <[email protected]>
1 parent c99586e commit cf6d4d5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/usage.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
nav_order: 3
3+
---
4+
5+
# Managing bootc systems
6+
7+
## Performing offline updates via USB
8+
9+
In a usage scenario where the operating system update is in a fully
10+
disconnected environment and you want to perform updates via e.g. inserting
11+
a USB drive, one can do this by copying the desired OS container image to
12+
e.g. an `oci` directory:
13+
14+
```bash
15+
skopeo copy docker://quay.io/exampleos/myos:latest oci:/path/to/filesystem/myos.oci
16+
```
17+
18+
Then once the USB device containing the `myos.oci` OCI directory is mounted
19+
on the target, use
20+
21+
```bash
22+
bootc switch --transport oci /var/mnt/usb/myos.oci
23+
```
24+
25+
The above command can only be invoked once currently; thereafter, use `bootc upgrade`
26+
as normal to fetch updates from the USB device.
27+
28+
This process can all be automated by creating systemd
29+
units that look for a USB device with a specific label, mount (optionally with LUKS
30+
for example), and then trigger the bootc upgrade.

0 commit comments

Comments
 (0)