xcp-ng / xcp

Entry point for issues and wiki. Also contains some scripts and sources.
https://xcp-ng.org
1.32k stars 74 forks source link

New script to setup a local repo for offline updates #665

Closed stormi closed 1 week ago

stormi commented 1 month ago

With this script, one can setup a local repository from an archive which contains the files of a repository, and use it to install updates or additional packages.

The same script is meant to be used to update the repository. In order not to use too much space on the disk, we accept that the operation makes the repository unusable for the duration of the local copy.

The archive must contain a top level directory named after the repo type. For the updates repository, the script will look for ^updates/$.

Though I haven't produced any archive to test it, this is supposed to be usable not only for release updates, but also for other repos for testing, such as testing or candidates, if the need arises later (I bet it will).

stormi commented 1 week ago

I have entirely rewritten the script and changed its behaviour. It's been tested internally. Due to timing constraints, I have to merge the PR now.