podman-desktop / podman-desktop-extension-bootc

Support for bootable OS containers (bootc) and generating disk images
Apache License 2.0
415 stars 16 forks source link

Sync the disk image list with current filesystem state #935

Open deboer-tim opened 3 weeks ago

deboer-tim commented 3 weeks ago

Is your enhancement related to a problem? Please describe

We keep a list of previously-built images today, but it can get out of sync / you can generate the same file again. We should provide some ways to keep the list in sync with what's currently on disk and - if you generate the same image 20 times - not endlessly add to the list.

Describe the solution you'd like

Some ideas:

Describe alternatives you've considered

No response

Additional context

No response

vrothberg commented 3 weeks ago

Periodically sync with the file system and show 'validation' when files cannot be found. Allow the user to add images that were generated outside of the extension.

👍

When you generate the same image again, remove the previous one from the list.

I'd do this iff the same output folder was used.

Allow the user to update 'missing' disk images, e.g. pick new folder.

That feels complicated or like a symptomatic workaround.