From 8cf1618508db24cb8c6573ad541fdf47ad80afe4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 24 Jan 2024 10:28:01 -0500 Subject: [PATCH] docs: Document `to-disk --via-loopback` Since it's super useful. Signed-off-by: Colin Walters --- docs/install.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/install.md b/docs/install.md index ef3e65c73..1e3d8c703 100644 --- a/docs/install.md +++ b/docs/install.md @@ -211,6 +211,17 @@ storage or filesystem setups, but reuses the "top half" of the logic. For example, a goal is to change [Anaconda](https://github.com/rhinstaller/anaconda/) to use this. +### Using `bootc install to-disk --via-loopback` + +Because every `bootc` system comes with an opinionated default installation +process, you can create a raw disk image (that can e.g. be booted via virtualization) +via e.g.: + +```bash +truncate -s 10G exampleos.raw +podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v .:/output bootc install to-disk --via-loopback /output/myimage.raw +``` + ### Using `bootc install to-filesystem --replace=alongside` This is a variant of `install to-filesystem`, which maximizes convenience for using