siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.91k stars 556 forks source link

copying image cache #9615

Open smira opened 3 weeks ago

smira commented 3 weeks ago

On install, the image cache should be copied from the ephemeral installation media (e.g. ISO) to the disk.

Proposed flow:

smira commented 6 days ago

Talos discovers an ISO with a label TALOS_*, and mounts its contents to a temporary directory.

Talos tries to find a folder names imagecache/ in the ISO, if found, it configures the runtime image cache to serve from the ISO.

Talos after installation performs copying of the ISO contents to the image cache volume explicitly configured by the user.

frezbo commented 4 days ago

Talos after installation performs copying of the ISO contents to the image cache volume explicitly configured by the user.

seems I already added support for this in #9778, just need to hook up the cache path from installer.

smira commented 4 days ago

Talos after installation performs copying of the ISO contents to the image cache volume explicitly configured by the user.

seems I already added support for this in #9778, just need to hook up the cache path from installer.

This is not exactly flexible, but could be a solution - I added configuration for the IMAGECACHE to be anywhere, so we might have a bit better luck outside of this (not sure how, but I can look into that next week)