File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments