Commit Graph

12 Commits

Author SHA1 Message Date
James Le Cuirot
228e1bb1e1
Fix distfiles mirror by writing to coreos as before, not coreos-overlay
It isn't worth renaming the directory used on the mirror, and the
Portage configuration still points to the old name.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2024-07-23 14:20:30 +01:00
James Le Cuirot
1d7d53fad9
Upgrade to Catalyst 4
Catalyst 4 has totally changed the way repositories are handled. It only
works when the name of the directory containing the repository matches
the configured name of that repository. This was not the case for us,
with the coreos repository residing in the coreos-overlay directory. We
wanted to move and rename our repositories anyway, but this is a big
change, so we'll do separately. For now, this just renames coreos to
coreos-overlay.

Catalyst 4 also ingests the main repository snapshot as a squashfs
rather than a tarball. It features a utility to generate such a
snapshot, but it doesn't fit Flatcar well, particularly because it
expects each ebuild repository to reside at the top level of its own git
repository. It was very easy to call tar2sqfs manually though.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2024-07-15 14:27:59 +01:00
Michael Marineau
125872788e update_distfiles: upload to both old and new buckets 2016-04-27 12:48:20 -07:00
Michael Marineau
441ced7498 update_distfiles: report errors properly
If files cannot be mirrored due to problems fetching or missing digests
report that loudly so we are actually aware of it and can fix it.
2016-03-09 17:05:16 -08:00
Michael Marineau
accd254c85 update_distfiles: remove deletion options
We have never actually deleted anything from our mirror since gsutil cp
didn't really have a way to do that and the for some unknown reason
emirrordist never tried to delete anything anyway. Additionally we
actually don't want to delete anything from our mirror to ensure that
the source remains available for old releases.
2016-03-09 16:27:29 -08:00
Michael Marineau
3a66dc83ce update_distfiles: use gsutil rsync instead of cp 2016-03-09 15:39:36 -08:00
Michael Marineau
ff29c10f7a update_distfiles: remove old .boto file check
The config may be located other places these days.
2016-03-09 15:39:36 -08:00
Michael Marineau
1fa7ef236b update_chroot: remove dependency on complex 'chromeos-cache' links
The distfiles cache is always under .cache in the repo tree but there is
a lot of extra logic to make that configurable along with compatibility
symlinks for previous locations. Just yank it all out.
2015-07-05 17:54:00 -07:00
Michael Marineau
deb3824dee fix(update_distfiles): Set temporary directory
Provide an alternate directory for in-progress downloads to avoid
uploading any by accident.
2013-06-26 14:07:16 -04:00
Michael Marineau
a25f12bbc4 fix(update_distfiles): Add option to control gsutil's parallelism
gsutil can be hard to follow when parallel upload/downloads are enabled.
"I see it is transferring something, but what?" So this provides an
option to disable that for debugging purposes.
2013-06-26 11:44:16 -04:00
Michael Marineau
96186e3c47 fix(update_distfiles): Add --download option to for incremental updates
Temporary workaround until we have a version of emirrordist that can
operate directly on remote storage. Download the entire mirror (if it
isn't already local) so emirrordist can make an incremental update.

Not great but it will do for now.
2013-06-26 11:19:59 -04:00
Michael Marineau
133f2d3d8b add(update_distfiles): New script to build and upload a distfiles mirror
This script wraps emirrordist to scan all ebuilds and fetch every
SRC_URI to construct a distfiles mirror. It can then optionally upload
to storage.core-os.net via gsutil.

Note: This is a work-in-progress, emirrordist expects to operate on a
complete mirror on the local filesystem but maintaining a complete local
copy of everything is burdensome. Before this is truly practical a
modified version of emirrordist will be needed to either accept a list
of already-uploaded files it can assume are OK or operate on the cloud
storage system directly.
2013-06-24 02:00:01 -04:00