You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
to-filesystem: support pre-created /var and other mount points #1615
How do you envision this one looking? Something like bootc install reads from the existing /etc/fstab file and copies compatible mounts into the new filesystem deployments /etc/fstab
Or are you imaging a cli interface for users to provide arbitrary (but supportable) mounts?
How do you envision this one looking? Something like bootc install reads from the existing /etc/fstab file and copies compatible mounts into the new filesystem deployments /etc/fstab
A crucial thing here to understand is that effectively, we can only support install-time mounting for /var or subdirectories of it.
Or to say it another way, we cannot (easily) split the operating system content (immutable image) across multiple physical filesystems, so if e.g. /opt is a mount point, it must be empty.
So really I think this probably boils down to adding bootc install to-filesystem --var-mount=/path/to/mountpoint,/ to make all of /var an external fs, or just e.g. --var-mount=/path/to/mountpoint,/lib/containers to have just e.g. /var/lib/containers be a distinct FS.
Now obviously the target OS needs to mount that on subsequent boots as well, which it could do in many ways (.mount units, /etc/fstab being the most obvious). For to-filesystem it's clearly the responsibility of the thing doing the install to set that up. For to-disk...this relates to #448
Activity
bshephar commentedon Sep 17, 2025
How do you envision this one looking? Something like
bootc installreads from the existing/etc/fstabfile and copies compatible mounts into the new filesystem deployments/etc/fstabOr are you imaging a
cliinterface for users to provide arbitrary (but supportable) mounts?bshephar commentedon Sep 17, 2025
Nope, can't be existing
/etc/fstab:https://github.com/bootc-dev/bootc/blob/main/docs/src/man/bootc-install-to-filesystem.8.md?plain=1#L16-L17
I think I'm mistaking
to-filesystemwithto-existing-rootcgwalters commentedon Sep 17, 2025
A crucial thing here to understand is that effectively, we can only support install-time mounting for
/varor subdirectories of it.Or to say it another way, we cannot (easily) split the operating system content (immutable image) across multiple physical filesystems, so if e.g.
/optis a mount point, it must be empty.So really I think this probably boils down to adding
bootc install to-filesystem --var-mount=/path/to/mountpoint,/to make all of/varan external fs, or just e.g.--var-mount=/path/to/mountpoint,/lib/containersto have just e.g./var/lib/containersbe a distinct FS.Now obviously the target OS needs to mount that on subsequent boots as well, which it could do in many ways (
.mountunits,/etc/fstabbeing the most obvious). Forto-filesystemit's clearly the responsibility of the thing doing the install to set that up. Forto-disk...this relates to #448install: Initialize mounted /var filesystems from the image
install: Add --initialize-var-mounts for separate /var filesystems
install: Add --initialize-var-mounts for separate /var filesystems
install: Add --initialize-var-mounts for separate /var filesystems
install: Add --initialize-var-mounts for separate /var filesystems
install: Add --initialize-var-mounts for separate /var filesystems
install: Add --initialize-var-mounts for separate /var filesystems
install: Add --initialize-var-mounts for separate /var filesystems