Skip to content

install: Preserve /var when installing to existing root - #2586

Draft
ckyrouac wants to merge 4 commits into
bootc-dev:mainfrom
ckyrouac:preserve-var
Draft

ckyrouac wants to merge 4 commits into
bootc-dev:mainfrom
ckyrouac:preserve-var

Conversation

@ckyrouac

Copy link
Copy Markdown
Collaborator

Splitting --preserve-var off of #2384

Package-mode migrations need data from the running system to be available in the new OSTree deployment before reboot. Add opt-in copy/reflink migration, bounded exclusions, nested-mount handling, and defer cleanup until preservation succeeds. Validate backend compatibility and stored bound images before mutating the target.

Assisted-by: AI
Signed-off-by: ckyrouac <ckyrouac@redhat.com>
A /var migration is useful only if copied data remains available after the first reboot. Add a single-guest plan that invokes --preserve-var and verifies a host marker after boot, while keeping TMT workdirs accessible when /var/tmp is excluded.

Assisted-by: AI
Signed-off-by: ckyrouac <ckyrouac@redhat.com>
The package-mode host's /etc is not migrated by to-existing-root, so a tmpfiles rule written there disappears on reboot. Write and verify the rule in the mounted deployment's persistent /etc before reboot instead.

Assisted-by: AI
Signed-off-by: ckyrouac <ckyrouac@redhat.com>
The split package-mode test no longer exercised how preserve-var handles a nested bind mount. Add a derived image with an enabled mount and verify copied data and the rebooted mount behavior.

Assisted-by: AI
Signed-off-by: ckyrouac <ckyrouac@redhat.com>
@github-actions github-actions Bot added area/install Issues related to `bootc install` area/documentation Updates to the documentation labels Oct 22, 2026
@bootc-bot
bootc-bot Bot requested a review from henrywang October 22, 2026 16:21
@ckyrouac ckyrouac added ci/tier-1 Run CI for tier-1 OS (centos-10) only and removed area/install Issues related to `bootc install` area/documentation Updates to the documentation labels Oct 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/tier-1 Run CI for tier-1 OS (centos-10) only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant