And as always when you reference what you might have read, you should provide a link to where you read it so people understand what you are using as your guide…
Ok Thanks for letting me know the Forum to use for these kind of questions.
I have read the documentation at https://doc.opensuse.org/projects/kiwi/doc/
Lately I have noticed that the above documentation is written in 2016 and it is for version 7.03.
Where as I am using kiwi version 9.17.15 (KIWI (next generation) version 9.17.15)
I could see kiwi code and option to generate docs at https://github.com/OSInside/kiwiYes I understand that we need to build cache but that option --init-cache is not accepated at all by the kiwi command
It seems so many features along with this feature were removed as part of kiwi upgrade in recent times.
What I am looking for is how to build and use cache with the new kiwi tool
If you read the documentation for Kiwi-NG,
The “Preparation” and “Creation” steps are combined in an effort to streamline the process.
The “Preparation” step essentially replaces what the “init-cache” used to do, ie create a target folder as a temporary location and then to place in that folder all the things you want to create your custom image. It appears that this location is now called the “shared cache” instead of “init-cache” but I see a new feature that it may also incorporate a bind mount (sharing the Host’s repos) which might need to be addressed depending on situation.
So, it looks like it’s an almost “Everything new is old again” – Someone who has used the older Kiwi will recognize the flow and how to make the new procedures work, and although everything is new to someone who hasn’t used Kiwi before, it looks like the pieces are still pretty easy to identify, the new version is simply an effort to streamline the steps a bit and possibly make it a bit easier to do the build step, selecting a target image type.