mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 07:08:12 +00:00
c0f1bef473
imgimport publishes the root image, kernel and ramdisk before it writes the image definition. When the database refused or failed a write, the new boot files stayed with the previous definition. The import now holds the publication lock of the image from before it places the files until the outcome of the definition is known. When the definition is not written and its rows went back, it puts back the previous files, with the checksum and metainfo of the root image. It removes the files that had no previous version. While a row did not go back, the new files stay, as that row can refer to them.