Skip to content

Commit 5599613

Browse files
Merge pull request #26788 from mheon/deprecate_boltdb_notice
Add BoltDB deprecation notice
2 parents 6ab5958 + 9a2dccf commit 5599613

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libpod/boltdb_state.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ func NewBoltState(path string, runtime *Runtime) (State, error) {
9494
logrus.Debugf("Allowing deprecated database backend due to CI_DESIRED_DATABASE.")
9595
}
9696

97+
// TODO: Up this to WARN level in 5.7, ERROR level in 5.8
98+
if os.Getenv("SUPPRESS_BOLTDB_WARNING") == "" {
99+
logrus.Infof("The deprecated BoltDB database driver is in use. This driver will be removed in the upcoming Podman 6.0 release in mid 2026. It is advised that you migrate to SQLite to avoid issues when this occurs. Set SUPPRESS_BOLTDB_WARNING environment variable to remove this message.")
100+
}
101+
97102
db, err := bolt.Open(path, 0600, nil)
98103
if err != nil {
99104
return nil, fmt.Errorf("opening database %s: %w", path, err)

0 commit comments

Comments
 (0)