spiegel_podman/cmd
Matt Heon b320fbcaff Add migration code for BoltDB to SQLite
This is gated behind a new option in `podman system migrate`,
`--migrate-db`.

The basic logic is simple:
* Podman is already configured to use BoltDB
* Open a new, fresh SQLite database to write into
* Migrate all database contents as they exist in BoltDB, to
  SQLite.
** Do this as simply as possible: grab the object from the old DB
   and write it into the new DB using the standard Add and Save
   functions.
* Set the new database in the Runtime, close the old one.
* Move the old database file so it won't be reused
* Show a warning if the user explicitly configured BoltDB in
  containers.conf

Our ability to test complex migration scenarios is limited, but
this should handle simple migrations easily.

Fixes #27628

Signed-off-by: Matt Heon <matthew.heon@pm.me>
2026-02-05 20:09:37 -05:00
..
podman Add migration code for BoltDB to SQLite 2026-02-05 20:09:37 -05:00
podman-mac-helper lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
podman-testing lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
podman-wslkerninst WSL commands execution refactoring 2025-07-02 20:18:52 +00:00
quadlet fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
rootlessport fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
winpath use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00