mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-15 16:18:39 +00:00
539486b7c8
An osimage pkgdir can name mirrors after the install media, and ospkgs installs from all of them, but the autoinstall apt configuration offered the installer only the archive mirror and the otherpkgs repositories. A package that only a pkgdir mirror carries could not be installed before the first boot. The mirrors now join the installer's apt sources, next to the otherpkgs ones, in every form the configuration takes. An entry written as URL, suite and components is an apt source line, as ospkgs writes it, and a suite that is an exact path needs no component. A local directory that is a flat repository is served by the management node and trusted, as an otherpkgdir is. An entry that names an Ubuntu archive mirror the installer already has a source for, the configured one or a default one, carries that source's signing key, the archive keyring on the Deb822 releases and none before them, because apt rejects a second source for the same suite whose signing key differs. For the same reason a repository is offered once, whether pkgdir names it twice, as a directory and as its URL, or the otherpkgdir names it too. Anything else is no apt source for ospkgs either and is left out. Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>