machine: generalize rename_image_and_update_cache() logic
authorIvan Kruglov <mail@ikruglov.com>
Tue, 8 Oct 2024 09:30:10 +0000 (11:30 +0200)
committerIvan Kruglov <mail@ikruglov.com>
Mon, 14 Oct 2024 08:42:47 +0000 (10:42 +0200)
commitdd2d5952c9fce80bd4d7c4ea2e20f4b7633a3d90
treec996226ade5f111f772651449bcdc65cc5c674f3
parentad0d4f9a4c340f3fd5f0fcf646f7c762722737cd
machine: generalize rename_image_and_update_cache() logic

This is a prep step to reuse the function in varlink interface
src/machine/image-dbus.c
src/machine/machined-core.c
src/machine/machined.h