Skip to content

Overlay state but unique to each deployment #2468

Description

@JasonN3

Is is possible to create something similar to an overlay-state where /opt is writable, but doesn't carry any of the changes to that directory forward to a new deployment/upgrade?

Use case:
The situation I'm coming across is that an application (mainly security scanning tools) needs to be installed in /opt but needs to be able to upgrade automatically and separately from the bootc image. However, when changing the major OS version, those changes cannot be carried forward, but should still be available if a rollback is required. The idea is to put a version (current at build time, but may not be current at deployment time) of the application inside of the bootc image so there's something installed but then let it automatically upgrade itself on boot. That way bootc doesn't need to carry anything forward as a version of the application will be available in every image, but if the directory is writable, it can maintain itself. This would also allow a bootc rollback to utilize the previous version.

overlay-state wouldn't work because from my understanding, it would function like /etc and try to carry forward any changes.
/var wouldn't work because it's a persistent directory, which wouldn't allow for a rollback and would likely cause issues during an OS upgrade anyway.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions