mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-12 04:26:24 +00:00
ac50225541
A Subiquity autoinstall installs what its user-data packages list names, and the templates could only name a fixed set, so the osimage pkglist reached an Ubuntu node through ospkgs after the first boot. The preseed token has no autoinstall form: the package list is YAML, one item per line. A list line that carries #INCLUDE_DEFAULT_PKGLIST_AUTOINSTALL# is now replaced by one item per pkglist package at the same indentation, with includes followed and without repeating the items the template lists above it. The line is replaced in the include pass of subvars, so a site template that includes the stock one is served too. A plain name and a task are installed this way, and a comment after them ends the record. A version pin or a target release stays with ospkgs, because the installer runs apt-get without --allow-downgrades and a pin can require one, and so does a name with an architecture qualifier, because a foreign architecture is enabled by a postscript that runs later. A record that begins with a removal or a group is left out whole, as ospkgs removes or installs it whole, and so are a removal written with a trailing hyphen, markers and preseed directives. A list that carries a #ENV: setting or an unreadable include is left to ospkgs whole. So is the list of an osimage with environvar, which mkinstall now hands over, and such an image's pkgdir mirrors stay out of the installer's sources as well: those variables reach apt-get only through ospkgs, and a mirror may need them. An osimage without a pkglist loses only the token line. The installer's apt configuration turns recommended packages off, as ospkgs installs the list without them; curtin writes that setting into the target, where the template removes it with the installer's sources. Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>