-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from cgwalters/doc-disconnected
docs/usage: New file
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
nav_order: 3 | ||
--- | ||
|
||
# Managing bootc systems | ||
|
||
## Performing offline updates via USB | ||
|
||
In a usage scenario where the operating system update is in a fully | ||
disconnected environment and you want to perform updates via e.g. inserting | ||
a USB drive, one can do this by copying the desired OS container image to | ||
e.g. an `oci` directory: | ||
|
||
```bash | ||
skopeo copy docker://quay.io/exampleos/myos:latest oci:/path/to/filesystem/myos.oci | ||
``` | ||
|
||
Then once the USB device containing the `myos.oci` OCI directory is mounted | ||
on the target, use | ||
|
||
```bash | ||
bootc switch --transport oci /var/mnt/usb/myos.oci | ||
``` | ||
|
||
The above command can only be invoked once currently; thereafter, use `bootc upgrade` | ||
as normal to fetch updates from the USB device. | ||
|
||
This process can all be automated by creating systemd | ||
units that look for a USB device with a specific label, mount (optionally with LUKS | ||
for example), and then trigger the bootc upgrade. |