Skip to content

Commit 5abda6a

Browse files
authored
Merge pull request #1349 from ckyrouac/system-reinstall-docs
reinstall: Docs for cleanup script and mount points
2 parents 3c86c7f + 10637b5 commit 5abda6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/src/bootc-install.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ host system! For example, container images, database, user home directory data,
221221
files in `/etc` are all available after the subsequent reboot in `/sysroot` (which
222222
is the "physical root").
223223

224+
However, previous mount points or subvolumes will not be automatically
225+
mounted in the new system, e.g. a btrfs subvolume for /home will not be automatically mounted to
226+
/sysroot/home. These filesystems will persist and can be handled any way you want like manually
227+
mounting them or defining the mount points as part of the bootc image.
228+
224229
A special case of this trick is using the `--root-ssh-authorized-keys` flag to inherit
225230
root's SSH keys (which may have been injected from e.g. cloud instance userdata
226231
via a tool like `cloud-init`). To do this, just add
@@ -234,6 +239,8 @@ This is a separate binary included with bootc. It is an opinionated, interactive
234239

235240
`system-reinstall-bootc` can be run from an existing Linux system. It will pull the supplied image, prompt to setup SSH keys for accessing the system, and run `bootc install to-existing-root` with all the bind mounts and SSH keys configured.
236241

242+
It will also add the `bootc-destructive-cleanup.service` systemd unit that will run on first boot to cleanup parts of the previous system. The cleanup actions can be configured per distribution by creating a script and packaging it similar to [this one for Fedora](https://github.com/bootc-dev/bootc/blob/main/contrib/scripts/fedora-bootc-destructive-cleanup).
243+
237244
### Using `bootc install to-filesystem --source-imgref <imgref>`
238245

239246
By default, `bootc install` has to be run inside a podman container. With this assumption,

0 commit comments

Comments
 (0)