kiwi option --init-cache not found

HI,

How does the option --init-cache work with kiwi command.

It is mentioned in opensuse documentation but when run the kiwi command with --init-cache option it just returns me list of options available.

But --init-cache option is not there in list of options.

Can I get an example on how to use the option --init-cache?

Is there any replacement for this option in current version of kiwi

Thanks,
Srikanth.K

First, you should be posting this kind of topic in the Development Forums,
https://forums.opensuse.org/forumdisplay.php/797-Development

Although we answer Development questions here too, this Forum is mainly for more common End User situations…

As for your question,
I think you might misunderstand that you need to build your cache, it’s not there ready for you to use by default.

From the current openSUSE Kiwi documentation
https://doc.opensuse.org/projects/kiwi/doc/

The specific section you should read
https://doc.opensuse.org/projects/kiwi/doc/#chap.caches

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…

HTH,
TSU

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

The old kiwi where this option given seems to be at https://github.com/OSInside/kiwi-legacy

Thanks

Yes,

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.

https://osinside.github.io/kiwi/working_with_kiwi.html

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.

TSU