Skip to content

to-filesystem: support pre-created /var and other mount points #1615

Open

Description

@cgwalters

We should supporting adding e.g. a separate partition for /var at install to-filesystem time.

Activity

  1. added
    enhancement
    area/install
    triaged
    on Sep 16, 2025
  2. bshephar commented on Sep 17, 2025

    @bshephar
    Contributor

    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?

  3. bshephar commented on Sep 17, 2025

    @bshephar
    Contributor
  4. cgwalters commented on Sep 17, 2025

    @cgwalters
    MemberAuthor

    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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installenhancementtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions