Temporary commit to use https://github.com/flatcar/mantle/pull/475 for
testing which ships the btrfs backwards compatibility test.
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This change adds exporting CGO_* flags to go-env.eclass; the upstream pr
https://github.com/gentoo/gentoo/pull/33539 has been updated
accordingly.
Also, CGO_ENABLED=1 has been added to coreos/../make.conf to enable gco
by default. This fixes a build issue for arm64 with Docker's
device-mapper storage driver:
daemon/graphdriver/devmapper/deviceset.go:306:25: undefined: devicemapper.SetTransactionID
...
daemon/graphdriver/devmapper/deviceset.go:867:28: undefined: devicemapper.ErrEnxio
daemon/graphdriver/devmapper/deviceset.go:867:28: too many errors
gco is enabled on AMD64 by default, and cgo was always enabled in the
coreos docker ebuilds. This way we retain that setting for the Gentoo
ebuilds.
These were for coreos-overlay. The packages have been moved to
portage-stable and are now handled by the weekly package updates
automation.
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This adds plain Gentoo upstream containerd ebuilds to coreos-overlay and
copies containerd-1.7.6.ebuild to containerd-1.7.7.ebuild since upstream
does not support 1.7.7 yet.
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This change removes Flatcar specific builds of docker[-cli], containerd,
runc, and cri-tools and instead switches to upstream Gentoo ebuilds
added to portage-stable.
The change updates docker to 24.0.6.
NOTE that there currently is no upstream ebuild for containerd-1.7.7, so
this change adds that ebuild based on the upstream containerd-1.7.6
ebuild.
Flatcar customisations like systemd units etc. are now applied in the
manglefs script of the respective sysexts, based on file system trees in
coreos-overlay/coreos/sysext/(containerd|docker).
The build_sysext script has been extended by an option to strip all
binaries in a sysext; the option is active by default. This takes care
of removing debug symbols from docker and containerd - which are not
removed by the default Gentoo build. The overall size of both containerd
and docker sysext is reduced by ~50%.
Lastly, the sysext command line syntax of build_image has been extended
to allow specifying multiple packages for a sysext. This was necessary
because docker-cli and docker do not have any runtime relationships and
therefore must both be specified for installation to correctly mirror
Flatcar's own docker packaging.
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>