Summary
Today logs (and container storage who are normally placed in /config/container) in VyOS are part of the persistent storage.
This means that local logs "vanishes" when you do a system upgrade and run a "show log" (still found through /usr/lib/live/mount/persistence/boot/<image>/rw/var/log) and are permanently lost when you delete the system image through CLI.
Also in case of a rollback the logs produced since the system upgrade will "vanish".
It would be better (if possible) to exlude logs from the persistent storage and instead put them on a common storage on the box so a "show log" will show the whole story no matter if a system upgrade have been performed or a rollback of a system upgrade was issued.
This would also free up some space where logs (and containers along with their volumemounts towards the host) from existing system images no longer used are still using disk space.
Use case
See above.
Additional information
This probably needs to reconstruct which partitions are being used.
While doing so something like ZFS should perhaps be evaluated who not only does compression and checksums (and mirroring, encryption etc) but also snapshots which can be handy for VyOS in a way to replace overlayfs?
But doing a complete switch might need to reinstall the box (which in worst case might be needed anyway if partitions are rearranged to allow for logs and containers volumemounts to not be part of the persistent storage).