install: Handle mount points in rootfs operations#1727
Merged
cgwalters merged 1 commit intobootc-dev:mainfrom Dec 9, 2025
Merged
install: Handle mount points in rootfs operations#1727cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters merged 1 commit intobootc-dev:mainfrom
Conversation
cgwalters
reviewed
Nov 4, 2025
cgwalters
reviewed
Nov 17, 2025
Collaborator
cgwalters
left a comment
There was a problem hiding this comment.
I think we could still land this with a test case or so?
Which I guess partially blocks on cleaning up the install test cases.
Collaborator
|
I'm not quite sure this is going to actively fix #1728 though. This case is more like "system-reinstall-bootc on a system where e.g. |
2918c34 to
510589a
Compare
cgwalters
reviewed
Nov 21, 2025
e06163d to
1ad3542
Compare
cgwalters
reviewed
Dec 2, 2025
When performing a to-filesystem installation, the target directory may contain pre-existing mount points for directories like /var, /var/lib/containers, etc. These are legitimate in hybrid/existing filesystem scenarios where certain directories are on separate partitions. This change enhances the empty rootdir check to: - Recursively detect directories that contain only mount points - Skip directories that are themselves mount points - Allow installation to proceed when mount hierarchies exist (e.g., /var containing /var/lib which contains mounted /var/lib/containers) Also adds integration test coverage for separate /var mount scenarios using LVM. Assisted-by: Claude Code (Sonnet 4.5) Signed-off-by: ckyrouac <ckyrouac@redhat.com>
cgwalters
approved these changes
Dec 9, 2025
ckyrouac
added a commit
to ckyrouac/bootc
that referenced
this pull request
Jan 13, 2026
This fixes a regression from bootc-dev#1727 by removing the unnecessary mount point check prior to the recursive function call. Also adds some tracing statements and updates the integration test to validate the mount check works for this scenario: /boot/efi mounted with contents in /boot/efi/EFI/firmware/foo Signed-off-by: ckyrouac <ckyrouac@redhat.com>
cgwalters
pushed a commit
that referenced
this pull request
Jan 14, 2026
This fixes a regression from #1727 by removing the unnecessary mount point check prior to the recursive function call. Also adds some tracing statements and updates the integration test to validate the mount check works for this scenario: /boot/efi mounted with contents in /boot/efi/EFI/firmware/foo Signed-off-by: ckyrouac <ckyrouac@redhat.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow mount points (separate filesystems) to exist during to-filesystem installations by detecting and skipping them in the empty rootdir check.
When cleaning directories during install, recursively clean the contents of mount point directories while preserving the mount point itself. This is necessary for cases where subdirectories like /var/log or /var/home are separate logical volumes.
Assisted-by: Claude Code
Fixes #1728
I need to test this more and add automated tests. Looking for feedback on possible side effects I'm not aware of.