Skip to content

Conversation

@ckyrouac
Copy link
Collaborator

@ckyrouac ckyrouac commented Nov 4, 2025

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.

@github-actions github-actions bot added area/install Issues related to `bootc install` area/ostree Issues related to ostree labels Nov 4, 2025
@bootc-bot bootc-bot bot requested a review from gursewak1997 November 4, 2025 19:51
// Check if this entry is a directory
let etype = e.file_type()?;
if etype == FileType::dir() {
// Check if this directory is a mount point (separate filesystem)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Offhand this seems sane to me

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.

Fixes bootc-dev#1728

Assisted-by: Claude Code
Signed-off-by: ckyrouac <ckyrouac@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install` area/ostree Issues related to ostree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate /var part required for ISO based installation but forbidden for 'bootc install to-filesystem'

2 participants