Commit Graph

8040 Commits

Author SHA1 Message Date
Mathieu Tortuyaux
5c5b78cb8d sec-policy/selinux-virt: fix flannel CNI creation
flannel uses an init container to pull CNI from container to the host
system in `/etc/cni`.
With SELinux, the permission is denied because `/etc/cni` is labelled
with `etc_t` so it can't be access by Docker since it expects `svirt_lxc_file_t`.

Using `filetrans_pattern` we can define a mechanism to create `/etc/cni`
with the correct labels even if it's not yet created - which avoid to
run `restorecon` on `/etc/cni`.

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-08-11 16:24:54 +02:00
Flatcar Buildbot
06b6e84d5c app-emulation: Upgrade Runc 1.0.0 to 1.0.1 2021-08-10 14:23:03 +02:00
Kai Lüke
37e0e8d92c Merge pull request #1170 from kinvolk/kai/sssd-faillock
sys-apps/baselayout: fix sssd LDAP auth with sudo
2021-08-09 17:40:11 +02:00
Kai Lueke
261ec85cfd sys-apps/baselayout: fix sssd LDAP auth with sudo
This pulls in
https://github.com/kinvolk/baselayout/pull/18
2021-08-09 17:38:22 +02:00
Flatcar Buildbot
6f654df672 dev-lang: Upgrade Go 1.16.6 to 1.16.7 2021-08-09 07:25:39 +00:00
Flatcar Buildbot
7ec275e5f6 sys-kernel: Upgrade Kernel 5.10.56 to 5.10.57 2021-08-09 07:12:28 +00:00
Dongsu Park
942d66e678 profiles: delete ccache completely
As we do not use ccache at all, we should simply clean up ccache from
all of the code, to shrink size of the SDK.
2021-08-06 11:35:06 +02:00
Sayan Chowdhury
7869f54c9c Merge pull request #1152 from kinvolk/sayan/update-nvidia-470.57.02
nvidia-{drivers, metadata}: Update NVIDIA to 470.57.02
2021-08-06 14:37:10 +05:30
Sayan Chowdhury
86e391de6d Merge pull request #1166 from kinvolk/linux-5.10.56-main
Upgrade Linux Kernel in main from 5.10.55 to 5.10.56
2021-08-06 11:22:16 +05:30
Sayan Chowdhury
6c24e9d8cf dev-libs/expat: Remove patches and move to portage-stable
The patches applies does not make sense to be removed, hence it would
be better to move `expat` back to portage-stable

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2021-08-06 05:40:34 +00:00
Thilo Fromm
5210371270 sys-apps/glibc: add Flatcar changes for 2.33-r5
- unmask amd64 and arm64
- remove tmpfiles from ebuild inherit so we don't run into a circular
  dep with systemd, use systemd_tmpfilesd instead
- take care of nscd.conf via systemd_tmpfilesd,
  add files/nscd-conf.tmpfiles.
- Don't run sanity checks in pkg_pretend to prevent gcc checks when
  only the binary package is installed.
- comment out 'dostrip -x' to force the OS image binaries to be stripped
- remove everything glibc wants to put under /etc since we use
  baselayout to provide that

Add flatcar specific changes to the build recipe.
Move PYTHON_DEPS to DEPEND so things can build.

Don't run sanity checks in pkg_pretend
(similar change as in glibc-2.29) to prevent
gcc checks when only the binary package is installed.

Based on commit 8d040f93c289.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
Signed-off-by: Dongsu Park <dongsupark@microsoft.com>
2021-08-05 09:53:52 +02:00
Dongsu Park
ce63084f8e sys-libs/glibc: sync with Gentoo for 2.33-r5
Update glibc to 2.33-r5, mainly to address CVE-2021-35942 .

Gentoo ref: 5cde29d04e2da37ded900130f0f3dea13fcc350f
2021-08-05 09:38:10 +02:00
Flatcar Buildbot
c72b4d1450 sys-kernel: Upgrade Kernel 5.10.55 to 5.10.56 2021-08-05 07:10:12 +00:00
Jeremi Piotrowski
7cf88348f3 Merge pull request #1162 from kinvolk/jepio/amazon-ssm-agent-xcompile
amazon-ssm-agent: re-add dependency to oem-ec2-compat
2021-08-04 10:20:15 +02:00
Dongsu Park
ae2e9e0376 dev-lang/rust: adjust libressl patch for Rust 1.54
We need to adjust 1.47.0-libressl.patch to Rust 1.54, to fix the build
error caused by the invalid patch.
2021-08-04 10:19:14 +02:00
Flatcar Buildbot
89e18d585e dev-lang: Upgrade dev-lang/rust 1.53.0 to 1.54.0 2021-08-04 10:19:07 +02:00
Sayan Chowdhury
4052dc2ce5 Merge pull request #1151 from kinvolk/sayan/update-libarchive-3.5.1
profiles: Remove libarchive-3.3.1 from ACCEPT_KEYWORDS
2021-08-03 20:15:07 +05:30
Sayan Chowdhury
7d0075e163 Merge pull request #1150 from kinvolk/sayan/update-expat-2.4.1
dev-libs/expat: Sync with Gentoo upstream; updates to 2.4.1
2021-08-03 20:14:36 +05:30
Sayan Chowdhury
2726b348d6 profiles: Remove libarchive-3.3.1 from ACCEPT_KEYWORDS
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-08-03 19:50:09 +05:30
Sayan Chowdhury
ae033984a8 Merge pull request #1157 from kinvolk/linux-5.10.55-main
Upgrade Linux Kernel in main from 5.10.52 to 5.10.55
2021-08-03 19:33:20 +05:30
Jeremi Piotrowski
cbc6a8fb90 coreos-base/oem-ec2-compat: make ssm agent conditional on ec2
and properly include all deps in RDEPEND.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-03 13:32:26 +00:00
Jeremi Piotrowski
26767b01aa Revert "Revert "Build app-emulation/amazon-ssm-agent with EC2 AMI images""
Now that the OEM partition is a btrfs partition with compression, we have
enough space to install ssm agent.

This reverts commit b6abb59c544be13e923a3e7240b5c9395c281fca.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-03 12:55:42 +00:00
Jeremi Piotrowski
0875344378 app-emulation/amazon-ssm-agent: cross-compile and use correct go version
The ebuild was missing a call to go_export() which exports GOARCH, and so was
always built for host architecture. While COREOS_GO_VERSION was specified as
go1.12, src_compile() has to use '${EGO}' to make use of it, so we were
building with go1.16 (latest).  Upstream builds with 1.12 for this version, so
we will do the same.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-08-03 12:33:48 +00:00
Jeremi Piotrowski
ba7b460518 Merge pull request #1130 from kinvolk/jepio/arm64-sdk-support
enable arm64 SDK bootstrap
2021-08-03 14:28:15 +02:00
Kai Lüke
1b2ab70890 sys-kernel/bootengine: finish network-cleanup.service before rootfs switch
This pulls in
https://github.com/kinvolk/bootengine/pull/27
2021-08-03 10:45:23 +02:00
Kai Lüke
2148ced2f2 Merge pull request #1153 from kinvolk/kai/ignition-oem-auto
sys-apps/ignition: Ignore filesystem format mismatches for the OEM partition
2021-08-03 10:39:59 +02:00
Kai Lüke
9139387127 sys-apps/ignition: Ignore filesystem format mismatches for the OEM partition
This pulls in
https://github.com/kinvolk/ignition/pull/22
2021-08-03 10:39:40 +02:00
Dongsu Park
c449236fb1 Merge pull request #934 from kinvolk/dongsu/delete-boost-build-1.67
dev-util/boost-build: delete boost-build 1.67
2021-08-03 10:26:59 +02:00
Sayan Chowdhury
39db514ce3 dev-libs/expat: Apply Flatcar changes
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-08-02 22:22:14 +05:30
Sayan Chowdhury
564f8f7b1d dev-libs/expat: Sync with Gentoo upstream; updates to 2.4.1
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-08-02 22:22:14 +05:30
Sayan Chowdhury
af9d9bc3ca nvidia-{drivers, metadata}: Update NVIDIA to 470.57.02
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-08-02 22:21:24 +05:30
Dongsu Park
349a9ba532 Merge pull request #1129 from kinvolk/dongsu/github-actions-exclude-rcbeta
.github: list only ebuilds with a unique VERSION_OLD for runc
2021-08-02 14:12:17 +02:00
Kai Lüke
3088fd3cac Merge pull request #1138 from kinvolk/kai/dm-verity-corruption-panic
sys-kernel/bootengine: issue a kernel panic on dm-verity corruption
2021-08-02 13:34:24 +02:00
Kai Lüke
ee14557288 sys-kernel/bootengine: issue a kernel panic on dm-verity corruption
This pulls in
https://github.com/kinvolk/bootengine/pull/26
2021-08-02 13:34:08 +02:00
Dongsu Park
40f5f348af Merge pull request #1127 from kinvolk/firmware-20210716-main
Upgrade Linux Firmware in main from 20210511 to 20210716
2021-08-02 12:26:29 +02:00
Flatcar Buildbot
736682d437 sys-kernel: Upgrade Kernel 5.10.52 to 5.10.55 2021-07-31 07:10:22 +00:00
Kai Lüke
eb06982881 Merge pull request #1146 from kinvolk/kai/gce-oem-net-admin
coreos-base/oem-gce: grant CAP_NET_ADMIN to set routes for LB
2021-07-30 18:31:08 +02:00
Mathieu Tortuyaux
22c2e57360 Merge pull request #1149 from kinvolk/tormath1/fix-457
docker/torcx: disable SELinux by default on `dockerd` wrapper script
2021-07-30 15:00:12 +02:00
Dongsu Park
b37bce7dff sys-kernel/coreos-firmware: fix builds by updating CXGB version
Fix build failures by updating CXGB firmware version to 1.26.0.0.
2021-07-30 11:03:41 +02:00
Mathieu Tortuyaux
be50e579c8 app-emulation/docker: update wrapper to disable selinux
this is now the default behavior - since this script is deprecated
we do a minimum update on it

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-30 10:34:03 +02:00
Mathieu Tortuyaux
501d937d7e app-arch/torcx: update wrapper to disable selinux
it's the default behavior now. Since this script is deprecated, we
do a minimum change on it.

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-30 10:33:36 +02:00
Jeremi Piotrowski
b42cfedcf5 profiles: use correct lib64 path to sysroot-wrappers
Sysroot-wrappers contains binaries installed to /usr/lib64/sysroot-wrappers,
but the profile referenced them through the 'lib -> lib64' symlink. Stop
relying on that symlink, which is not present in arm64 profiles, and is
not part of 17.1 amd64 profiles.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-30 07:43:15 +00:00
Kai Lüke
764d5c6baf coreos-base/coreos-init: prevent networkd interference with cilium_vxlan
This pulls in
https://github.com/kinvolk/init/pull/43
2021-07-29 20:01:50 +02:00
Kai Lüke
daf0a01b55 coreos-base/oem-gce: grant CAP_NET_ADMIN to set routes for LB
With the switch from rkt to systemd-nspawn the ability for the service
to set the routing entries for the TCP load balancer got lost,
resulting in an unreachable LB as reported in
https://github.com/kinvolk/Flatcar/issues/459

The fix also reported there is to retain CAP_NET_ADMIN when starting
the service.
2021-07-29 15:30:39 +02:00
Flatcar Buildbot
990e4f82b8 sys-kernel: Upgrade Linux Firmware 20210511 to 20210716 2021-07-29 07:07:37 +00:00
Kai Lüke
622a99058c coreos-base/update_engine: support btrfs as /usr filesystem
This pulls in
https://github.com/kinvolk/update_engine/pull/11
2021-07-28 13:29:02 +02:00
Kai Lüke
ab2467e547 sys-apps/seismograph: support btrfs in rootdev
This pulls in
https://github.com/kinvolk/seismograph/pull/6
2021-07-28 13:28:55 +02:00
Kai Lüke
e45a6140d0 sys-apps/ignition: support btrfs on the OEM partition
This pulls in
https://github.com/kinvolk/ignition/pull/21
2021-07-28 13:28:45 +02:00
Kai Lüke
bdc7f36d4f sys-kernel/coreos-modules: use 4k pages for arm64
Btrfs filesystems do not support a non-standard 64k page size on arm64
when the filesystem was created by a 4k page size system.

Use the default page size for arm64 to ensure compatibility with
btrfs filesystems created by amd64 systems.
2021-07-28 13:28:45 +02:00
Kai Lüke
c01560ba63 coreos-base/coreos-init: support btrfs on the OEM partition
This pulls in
https://github.com/kinvolk/init/pull/42
2021-07-28 13:28:28 +02:00
Kai Lüke
42b4f612ca sys-kernel/bootengine: support btrfs /usr filesystems
Pulls in https://github.com/kinvolk/bootengine/pull/25
2021-07-28 13:28:10 +02:00
Kai Lüke
29f2903c87 sys-kernel/coreos-modules: switch to gzip/zstd compression
With the default gzip compression the 60 MB limit for the vmlinuz
bundle of kernel+initramfs was reached. The limit comes from the size
of the /boot partition which is 128 MB large and the kernel needs to
fit twice, in addition to GRUB.

Use zstd for the initramfs as it provides a similar speed but better
compression. For the kernel we can't switch yet to zstd for arm64
but for amd64 it works.
2021-07-27 14:48:26 +02:00
Dongsu Park
08ea76673f .github: list only ebuilds with a unique VERSION_OLD
Due to unnecessary wildcard listings, ebuild files including all rc or
beta are being listed. Since `VERSION_OLD` is already generated as a
unique version, we do not need to list multiple files to filter by
running `head -n1` etc. We just need to use only the specific ebuild.
Simply list only the unique ebuild file.
2021-07-22 15:31:20 +02:00
Dongsu Park
e2cd417df5 .github: make correct input for runc versions
Before passing runc versions to `sed '/-/!{s/$/_/}'`, we need to replace
`_` with `-`, because runc tarball files already have names like
`1.0.0_rc2`. Without the fix, version sort would `1.0.0` come before
`1.0.0_rc2`, which is not expected in the later steps.
2021-07-22 12:41:45 +02:00
Sayan Chowdhury
1b068b5186 Merge pull request #1126 from kinvolk/sayan/update-systemd-247.7
sys-apps/systemd: Bump to v247.7
2021-07-21 16:50:28 +05:30
Flatcar Buildbot
e1e7bd2c2c sys-kernel: Upgrade Kernel 5.10.49 to 5.10.52 2021-07-21 07:10:12 +00:00
Sayan Chowdhury
cf97d4ad91 sys-apps/systemd: Bump to v247.7
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-07-20 23:29:14 +05:30
Dongsu Park
70bfaff439 app-emulation/containerd: update to 1.5.4
Update app-emulation/containerd to 1.5.4, mainly to address
CVE-2021-32760.
2021-07-20 16:36:48 +02:00
Dongsu Park
2df538b480 Merge pull request #1115 from kinvolk/go-1.16.6-main
Upgrade Go in main from 1.16.5 to 1.16.6
2021-07-19 18:28:20 +02:00
Jeremi Piotrowski
0a1b0be7f3 dev-lang/rust: don't enable aarch64 cross target when host is aarch64
This does not work because the host and cross rust targets share the
same name. This needs to be reworked to (potentially) enable x86 cross
targets for aarch64 targets.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:09:01 +00:00
Jeremi Piotrowski
0064e6b3ec profiles: remove "pc xen" from arm64 GRUB_PLATFORMS
grub refuses to build these targets when host is arm64.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:08:59 +00:00
Jeremi Piotrowski
a90c4265bf profiles: move BOOSTRAP_USE=cros_host to arch indepenent part of sdk profile
So that it can apply to both arm64 and amd64 sdk profiles.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:08:56 +00:00
Jeremi Piotrowski
d460bf3a8d coreos-base/update_engine: add glib-utils to (B)DEPEND
glib-utils are used during the build so they need to be part of host
dependencies for update_engine. This only really pops up during a repeat
bootstrap, when update_engine is being built from source but glib has
been installed from a binary. BDEPEND would be the correct variable but
that requires EAPI=7, so additionally added it to DEPEND for now.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:08:54 +00:00
Jeremi Piotrowski
44fcb0513a mark platform specific host/sdk dependencies as amd64/!arm64
kola-data and google-cloud-sdk install pre-built amd64 binaries, so
there's no point installing them right now. Both could be made to work
at a later time. iucode and syslinux and are x86 specific and won't
build. selinux related packages *currently* don't work/build on arm64
but could be made to work.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:08:51 +00:00
Jeremi Piotrowski
0aaa9766c7 keyword sdk dependencies for arm64
Where the packages are part of coreos-overlay, I keyworded the ebuilds
directly to the same level of stability as amd64. Other packages have
been keyworded through the profile, as close to the amd64 level as I
could manage.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:08:48 +00:00
Dongsu Park
065661a751 Merge pull request #1113 from kinvolk/dongsu/open-vm-tools-11.3.0
app-emulation/open-vm-tools: update to 11.3.0
2021-07-19 12:01:03 +02:00
Flatcar Buildbot
e03a28561c dev-lang: Upgrade Go 1.16.5 to 1.16.6 2021-07-19 07:26:12 +00:00
Mathieu Tortuyaux
abd1e615c0 Merge pull request #1112 from kinvolk/containerd-1.5.3-main
Upgrade Containerd in main from 1.5.2 to 1.5.3
2021-07-16 15:52:27 +02:00
Jeremi Piotrowski
23d3861740 Merge pull request #1105 from kinvolk/sayan+jepio/update-dracut
Sayan+jepio/update dracut

Closes kinvolk/Flatcar#375
2021-07-16 15:47:17 +02:00
Dongsu Park
688eed80f3 coreos-base/oem-vmware: update to 11.3.0
Update oem-vmware to 11.3.0, corresponding to the update of
open-vm-tools to 11.3.0.
2021-07-16 13:54:28 +02:00
Dongsu Park
53983eb353 app-emulation/open-vm-tools: update to 11.3.0
Update open-vm-tools 11.3.0,
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.3.0 .
Update also the build number to 18090558.
2021-07-16 13:53:51 +02:00
Mathieu Tortuyaux
aa3ad05497 Merge pull request #1048 from kinvolk/tormath1/selinux
selinux: upgrade selinux libs
2021-07-16 11:25:10 +02:00
Flatcar Buildbot
4309eaab99 app-emulation: Upgrade Containerd 1.5.2 to 1.5.3 2021-07-16 08:10:14 +00:00
Mathieu Tortuyaux
6841de885a Revert "app-emulation/docker: disable SELinux"
This reverts commit 956f9757d45b7df260ed0e78213e1ad96c7409eb.
2021-07-16 10:04:03 +02:00
Sayan Chowdhury
2a3a1c8bc8 sys-apps/dbus: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-07-16 10:04:02 +02:00
Sayan Chowdhury
d3d56cda69 sys-apps/dbus: Sync with Gentoo upstream
Updates to dbus-1.12.20-r1

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-07-16 10:04:02 +02:00
Mathieu Tortuyaux
8bd2eefc3f app-admin/setools: remove package
from 4.x setools is a pure python script, we won't include it
in Flatcar anymore

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:02 +02:00
Mathieu Tortuyaux
d86d08d640 profiles/coreos/amd64: enable selinux for runc
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:02 +02:00
Mathieu Tortuyaux
c56eec4bb4 eclass: move selinux-policy-2 to ::portage-stable
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:02 +02:00
Mathieu Tortuyaux
0ead201568 sec-policy/selinux-unconfined: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:02 +02:00
Mathieu Tortuyaux
e2afa149cb sec-policy/selinux-virt: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:02 +02:00
Mathieu Tortuyaux
e02947a905 sec-policy/selinux-virt: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:01 +02:00
Mathieu Tortuyaux
4d6ff7cfca sec-policy/selinux-base-policy: flatcar changes
- run sshd (and child) as unconfined_t
- add init.patch to allow execute_no_trans,map and
exec from init to unconfined
- add AVC patch for local login and journald

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:04:01 +02:00
Mathieu Tortuyaux
d819e2afa4 sec-policy/selinux-base-policy: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:03:10 +02:00
Mathieu Tortuyaux
e472af562e sec-policy/selinux-base: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-16 10:03:10 +02:00
Jeremi Piotrowski
743f86d4da sys-kernel/coreos-kernel: strip ROOT from TMPDIR before running dracut
Update-bootengine chroots into the sysroot and runs dracut from there.
Dracut 053 has revised TMPDIR handling and the portage TMPDIR prefixed
with ROOT leaks into the chroot. This causes dracut to abort during
setup with the error message "invalid tmpdir".

Override TMPDIR before running update-bootengine to allow dracut to
function.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-15 13:40:50 +00:00
Jeremi Piotrowski
68f2867457 sys-kernel/dracut: Apply Flatcar patches to 053
Flatcar uses custom networking scripts in initramfs, so the dracut iscsi
module needs to be patched to account for that.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-15 13:40:50 +00:00
Sayan Chowdhury
033048444f sys-kernel/dracut: Apply Flatcar patches
Add Flatcar specific patch to enable the iscsi module

Flatcar uses its own network module instead of the Dracut one, but the
iscsi module depends on the network. So, in order to enable the iscsi
module, we need to patch the dependency

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-07-15 13:40:50 +00:00
Sayan Chowdhury
2a19f3cd76 sys-kernel/dracut: Sync with Gentoo upstream
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-07-15 13:40:50 +00:00
Sayan Chowdhury
3f857f9f2a Merge pull request #1099 from peanutduck/ticket_361
net-misc/curl: enable telnet protocol support
2021-07-15 13:11:59 +05:30
Dongsu Park
6c0742bf07 Merge pull request #932 from kinvolk/dongsu/wget-ssl
profiles: force to use ssl USE flag for wget
2021-07-15 09:39:41 +02:00
Sayan Chowdhury
31ce217f6a Merge pull request #1104 from kinvolk/linux-5.10.49-main
Upgrade Linux Kernel in main from 5.10.46 to 5.10.49
2021-07-15 10:55:24 +05:30
Jeremi Piotrowski
40328de04b Merge pull request #929 from wernerb/add-mdio-bcm
Enable MDIO_BCM_UNIMAC for arm64
2021-07-13 09:58:28 +02:00
Flatcar Buildbot
70cb0ed335 sys-kernel: Upgrade Kernel 5.10.46 to 5.10.49 2021-07-12 07:15:21 +00:00
peanutduck
b1fa2b24ee net-misc/curl: enable telnet protocol support
Add telnet useflag directly in the package.use file
2021-07-08 23:10:12 +08:00
Mathieu Tortuyaux
92bc08519c Merge pull request #1093 from kinvolk/tormath1/libgcrypt-1.9.3
profiles: accept ~amd64 & ~arm64 for libgcrypt-1.9.3
2021-07-08 09:47:59 +02:00
Mathieu Tortuyaux
fe107d3408 profiles: accept ~amd64 & ~arm64 for libgcrypt-1.9.3
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-08 09:45:07 +02:00
Kai Lüke
c2b0b0cc7e coreos-base/coreos-init: add udev systemd tag for Azure storage devices
This pulls in
https://github.com/kinvolk/init/pull/41
2021-07-07 12:25:46 +02:00
Mathieu Tortuyaux
1219a8ff35 sec-policy/selinux-base: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
b7419c3548 sys-libs/libsemanage: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
5738da828c sys-libs/libsemanage: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
522387fa10 sys-libs/libselinux: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
9aecd8fc33 sys-libs/libselinux: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
a693d478e1 sys-apps/policycoreutils: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:28 +02:00
Mathieu Tortuyaux
c172da732c sys-apps/policycoreutils: sync with upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:27 +02:00
Mathieu Tortuyaux
17d538681e sys-apps/checkpolicy: apply flatcar changes
backported from CoreOS commits

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:27 +02:00
Mathieu Tortuyaux
3b1534f9da sys-apps/checkpolicy: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-06 15:57:27 +02:00
Dongsu Park
8f82c06a48 app-admin/updateservicectl: sync with current main - 2021-07-05
Update commit to 6a4ff4ca879082c07353dd379439c437cbe27e18, to sync with
the current main branch.
Pulls in https://github.com/kinvolk/updateservicectl/pull/6 .

Also update Go import paths to `github.com/kinvolk/updateservicectl`.

Also set `COREOS_GO_GO111MODULE=on` because updateservicectl now relies
on Go module.
2021-07-06 12:31:13 +02:00
Dongsu Park
37eeb0f666 Merge pull request #1068 from kinvolk/rust-1.53.0-main
Upgrade dev-lang/rust in main from 1.52.1 to 1.53.0
2021-07-06 11:43:31 +02:00
Dongsu Park
7a418b4212 Merge pull request #1088 from kinvolk/dongsu/libpcre-8.44
profiles,app-crypt: fixes needed by libpcre 8.44
2021-07-05 14:19:20 +02:00
Mathieu Tortuyaux
377d68fbc3 Merge pull request #1087 from kinvolk/t-lo/update-to-glibc-2.33
Upgrade to glibc-2.33
2021-07-05 14:05:57 +02:00
Dongsu Park
e91efef4ff app-crypt/mit-krb5: add warn-crossbuild.patch
Set PYTHON_COMPAT to python 3.6 and 3.7 to be suitable for the current
code base.

Add a custom patch to replace error with warning when running autoconf
for cross builds, because libkrb5 is not able to detect
cross-compilation.

See also https://github.com/kinvolk/Flatcar/issues/369 .
2021-07-05 13:08:35 +02:00
Dongsu Park
c4e7fd6fca app-crypt/mit-krb5: move from portage-stable
To add a custom patch, move mit-krb5 from portage-stable to
coreos-overlay, and update it to 1.18.2-r4.
2021-07-05 13:08:35 +02:00
Flatcar Buildbot
fc048ca53c dev-lang: Upgrade dev-lang/rust 1.52.1 to 1.53.0 2021-07-05 12:59:07 +02:00
Mathieu Tortuyaux
a26bcc0184 coreos-base/update_engine: bump commit ID
related to: https://github.com/kinvolk/update_engine/pull/10,
https://github.com/kinvolk/Flatcar/issues/356

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-07-02 17:15:54 +02:00
Thilo Fromm
7427f5de87 sys-apps/glibc-(2.32|2.33): add Flatcar changes
2.33
- unmask amd64 and arm64
- remove tmpfiles from ebuild inherit so we don't run into a circular
  dep with systemd, use systemd_tmpfilesd instead
- take care of nscd.conf via systemd_tmpfilesd,
  add files/nscd-conf.tmpfiles.
- Don't run sanity checks in pkg_pretend to prevent gcc checks when
  only the binary package is installed.
- comment out 'dostrip -x' to force the OS image binaries to be stripped
- remove everything glibc wants to put under /etc since we use
  baselayout to provide that

2.32
sys-libs/glibc-2.32,targets/sdk: backport to EAPI6, add Flatcar changes

Backport the glibc recipe to EAPI6 to work around BDEPEND emerge
issue, add flatcar specific changes to the build recipe.
Move PYTHON_DEPS to DEPEND so things can build.

Don't run sanity checks in pkg_pretend
(similar change as in glibc-2.29) to prevent
gcc checks when only the binary package is installed.

Also, force the "crypt" use flag for all builds so libcrypt is built.
(Upstream gentoo does the same)

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-07-01 16:42:39 +02:00
Thilo Fromm
bd723baccd sys-libs/glibc upstream sync: add 2.33 remove 2.29
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-07-01 16:42:10 +02:00
Thilo Fromm
37f572461a sys-libs/glibc-2.33: mask for now to un-break build
We experience an issue with glibc-2.33 which causes all binaries in the
OS image to end up not stripped, which would increase the size of the OS
image threefold.

The change masks glibc-2.33 for all architectures, so the build will
default on glibc-2.32 until we have fixed the issue.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-30 17:26:01 +02:00
Sayan Chowdhury
ce55cb0736 Merge pull request #1078 from kinvolk/sayan/add-nvidia-aws-pro
coreos-base/oem-ec2-compat: Add NVIDIA support for AWS Pro
2021-06-29 21:54:40 +05:30
Sayan Chowdhury
6db75ee456 Merge pull request #1073 from kinvolk/linux-5.10.46-main
Upgrade Linux Kernel in main from 5.10.45 to 5.10.46
2021-06-29 21:52:46 +05:30
Sayan Chowdhury
81598d97bb coreos-base/oem-ec2-compat: Add NVIDIA support for AWS Pro
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-06-29 20:45:08 +05:30
Thilo Fromm
250642de96 Merge pull request #1067 from kinvolk/t-lo/update-to-glibc-2.33
Update to glibc 2.33
2021-06-29 14:21:04 +02:00
Sayan Chowdhury
a321cc9fd3 sys-firmware/intel-microcode: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-06-29 09:43:17 +02:00
Dongsu Park
06a1783030 sys-firmware/intel-microcode: update to 20210608
Sync with Gentoo to update intel-microcode to 20210608,
mainly to address CVE-2020-24489, CVE-2020-24511, CVE-2020-24513.

Gentoo ref: 66c8a60ea74e8ed2391c9fdff749c65eb0f398ff
2021-06-29 09:43:17 +02:00
Thilo Fromm
33e49eaeec sys-apps/glibc-(2.32|2.33): add Flatcar changes
2.33
- unmask amd64 and arm64
- remove tmpfiles from ebuild inherit so we don't run into a circular
  dep with systemd
- take care of nscd.conf via tmpfiles, add files/nscd-conf.tmpfiles.
- Don't run sanity checks in pkg_pretend to prevent gcc checks when
  only the binary package is installed.
- comment out 'dostrip -x' to force the OS image binaries to be stripped
- remove everything glibc wants to put under /etc since we use
  baselayout to provide that

2.32
sys-libs/glibc-2.32,targets/sdk: backport to EAPI6, add Flatcar changes

Backport the glibc recipe to EAPI6 to work around BDEPEND emerge
issue, add flatcar specific changes to the build recipe.
Move PYTHON_DEPS to DEPEND so things can build.

Don't run sanity checks in pkg_pretend
(similar change as in glibc-2.29) to prevent
gcc checks when only the binary package is installed.

Also, force the "crypt" use flag for all builds so libcrypt is built.
(Upstream gentoo does the same)

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-29 09:27:59 +02:00
Thilo Fromm
3baf9c2c44 sys-libs/glibc upstream sync: add 2.33 remove 2.29
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-06-28 17:31:39 +02:00
Dongsu Park
1b1a15e76f sys-apps/systemd: depend on lz4 >= 1.9.3-r1
Now that lz4 was updated to 1.9.3-r1, systemd has to depend on
lz4 >= 1.9.3-r1, so that its dependency graph during the SDK stage3
could be generated correctly.

Without that change, the preclean of SDK stage3 could fail because of
an inverted dependency order between systemd and lz4, like following:

```
 emerge --depclean --with-bdeps=y
 ...
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   >=app-arch/lz4-0_p131:0/r131=[abi_x86_64(-)] pulled in by:
 *     sys-apps/systemd-247.6
```

Stage3 first runs `emerge --quiet --usepkg --buildpkg
--binpkg-respect-use=y --newuse -e --update --deep --with-bdeps=y @system`,
which works well.
After that, only the stage3 (no other stages) runs preclean, which in fact
runs `emerge --depclean --with-bdeps=y` to clean up unnecessary ebuilds.
That's where it fails.

That happens because systemd still depends on lz4 0_p131. As a result, the
main installation step of stage3 seems to first install systemd 247, and
after that it updates lz4 to 1.9.3-r1. Then systemd thinks it still depends
on 0_p131. When doing it the other way around, the dependency graph is
correctly generated, first lz4 1.9.3-r1, then systemd 247.
2021-06-28 16:52:45 +02:00
Flatcar Buildbot
99dca5debb app-emulation: Upgrade Runc 1.0.0_rc95 to 1.0.0 2021-06-24 08:01:13 +00:00
Flatcar Buildbot
8c36038ece sys-kernel: Upgrade Kernel 5.10.45 to 5.10.46 2021-06-24 07:10:02 +00:00
Mathieu Tortuyaux
aae132d3de Merge pull request #1069 from kinvolk/tormath1/curl-7.77
Revert "profiles: Update the accept keywords for curl 7.76.1"
2021-06-23 10:46:25 +02:00
Mathieu Tortuyaux
169d025f84 Revert "profiles: Update the accept keywords for curl 7.76.1"
This reverts commit 8d56fd17957540e764ca491285776d2dbb73c38e.
2021-06-22 11:55:13 +02:00
Flatcar Buildbot
8375a98a76 sys-kernel: Upgrade Kernel 5.10.43 to 5.10.45 2021-06-19 07:12:03 +00:00
Iago López Galeiras
9a5b486219 Merge pull request #1055 from kinvolk/iaguis/remove-nnp-patch 2021-06-15 16:57:35 +02:00
Iago Lopez Galeiras
3f354a1114 app-emulation/docker: disable SELinux
We disable SELinux because Flatcar doesn't properly support it and it
was causing labeling problems when running runc containers with
NoNewPrivileges or seccomp.
2021-06-14 16:23:00 +02:00
Iago Lopez Galeiras
9b18f05723 app-emulation/runc: remove patches disabling NNP and seccomp
These were included as a workaround for SELinux issues on Flatcar.
However, they also disable NoNewPrivileges and seccomp support, which
reduces security.

Instead, we'll disable SELinux support in the Docker daemon in the next
commit.
2021-06-14 16:22:55 +02:00
Flatcar Buildbot
5575a1bc42 sys-kernel: Upgrade Kernel 5.10.42 to 5.10.43 2021-06-11 07:12:11 +00:00
Sayan Chowdhury
b6435d8d5a Merge pull request #1047 from kinvolk/linux-5.10.42-main
Upgrade Linux Kernel in main from 5.10.41 to 5.10.42
2021-06-11 11:00:55 +05:30
Flatcar Buildbot
93e421ae8b dev-lang: Upgrade Go 1.16.4 to 1.16.5 2021-06-07 07:58:17 +00:00
Flatcar Buildbot
a40e21c292 sys-kernel: Upgrade Kernel 5.10.41 to 5.10.42 2021-06-03 07:40:08 +00:00
Dongsu Park
84a931cb50 app-arch/torcx: update to 0.2.0-r4
Pulls in https://github.com/kinvolk/torcx/pull/10 .

It is mainly to address security issues like CVE-2020-29652 and
CVE-2021-31525 .
2021-06-01 10:29:08 +02:00
Dongsu Park
39b7edb4b2 app-arch/torcx: fix Go import path
Go import path of torcx has changed from coreos to flatcar-linux,
aef371c76b

So we need to fix the import path also in torcx ebuilds.
Otherwise build will simply fail due to wrong import paths.
2021-06-01 10:27:45 +02:00
Dongsu Park
54735b6a95 Merge pull request #1035 from kinvolk/dongsu/libxml2-2.9.12
profiles: accept keywords ~amd64 and ~arm64 for libxml2 2.9.12-r2
2021-06-01 09:29:31 +02:00
Flatcar Buildbot
16228d8bd4 sys-kernel: Upgrade Kernel 5.10.39 to 5.10.41 2021-05-29 07:40:07 +00:00
Dongsu Park
252216b14c profiles: accept keywords ~amd64 and ~arm64 for libxml2 2.9.12-r2 2021-05-27 17:16:37 +02:00
Mathieu Tortuyaux
85d52f1711 coreos-base/update_engine: bump commit ID
related to https://github.com/kinvolk/update_engine/pull/9

Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
2021-05-27 16:27:29 +02:00
Dongsu Park
71eeaa90cc Merge pull request #1023 from kinvolk/dongsu/openssh-8.6
net-misc/openssh: update to 8.6
2021-05-27 11:49:07 +02:00
Flatcar Buildbot
9fe59c8e35 sys-kernel: Upgrade Kernel 5.10.38 to 5.10.39 2021-05-23 07:14:37 +00:00
Kai Lüke
60f34fe8b9 net-misc/openssh: Apply Flatcar changes
- Drop the init.d files.
- Remove the socket unit's rate limiting.

Instead of dropping bindist, enable it with the profiles now so it
doesn't need to be modified on future updates.

Imported commit 6c0c1c8806bedcc164e5bd3541ab50b2c21e2498 .
2021-05-21 14:11:40 +02:00
Dongsu Park
cf2b332856 profiles: accept openssh 8.6_p1-r1 for both amd64 and arm64 2021-05-21 14:11:40 +02:00
Dongsu Park
0e66a70f6a net-misc/openssh: update to 8.6_p1, sync with Gentoo
Update net-misc/openssh to 8.6_p1, by syncing with upstream Gentoo.
2021-05-21 14:11:40 +02:00
Dongsu Park
1f9c794749 Merge pull request #1022 from kinvolk/sayan/update-binutils-2.36
profiles,sys-boot: fix grub2 for binutils 2.36
2021-05-21 10:04:43 +02:00
Dongsu Park
430a8eafcc Merge pull request #1006 from kinvolk/containerd-1.5.1-main
Upgrade Containerd in main from 1.4.4 to 1.5.2
2021-05-21 09:28:10 +02:00
Dongsu Park
80e8ad9b35 Merge pull request #1021 from kinvolk/runc-1.0.0_rc95-main
Upgrade Runc in main from 1.0.0_rc93 to 1.0.0_rc95
2021-05-21 09:27:23 +02:00
Kai Lüke
4272466762 Merge pull request #1020 from kinvolk/linux-5.10.38-main
Upgrade Linux Kernel in main from 5.10.37 to 5.10.38
2021-05-20 16:48:48 +02:00
Dongsu Park
5700fa12e6 app-emulation/containerd: update to 1.5.2 2021-05-20 15:57:16 +02:00
Dongsu Park
e63de2ea31 app-emulation/containerd: set GOFLAGS to -mod=vendor
Since containerd 1.5 started to turn on Go module, we need to pass
`-mod=vendor` to the go build command.
Otherwise, go build will fail because it would try to fetch missing
go deps from remote repos. It would not work inside of sandbox.

We cannot set `COREOS_GO_MOD=vendor` because containerd ebuild calls
`emake` instead of `go_build`.
2021-05-20 15:56:39 +02:00
Flatcar Buildbot
8a0da2857b app-emulation: Upgrade Containerd 1.4.4 to 1.5.1 2021-05-20 14:13:45 +02:00
Dongsu Park
63031a2ebc app-emulation/docker-runc: adjust patches for 1.0.0-rc95 2021-05-20 14:07:09 +02:00
Flatcar Buildbot
b02b5cd0e6 app-emulation: Upgrade Runc 1.0.0_rc93 to 1.0.0_rc95 2021-05-20 13:43:39 +02:00
Dongsu Park
67b3af83f3 Revert "app-emulation/docker-runc: Embargoed patch for CVE-2021-30465"
This reverts commit 66f77b50879dded97b48c8f95277f18c6089022c.
2021-05-20 13:43:39 +02:00
Dongsu Park
447212cb30 sys-boot/grub: fix build error with binutils 2.36
With binutils 2.36, build of grub fails like that:

```
ld: section .note.gnu.property VMA [0000000000400158,0000000000400187]
overlaps section .bss VMA [000000000000e000,000000000041d207]
```

It is caused by assembler, as it generates the GNU property notes section
by default. Use the assmbler option `-mx86-used-note=no` to disable the
section from being generated to workaround the ensuing linker issue.

Patch was originally written by OpenSUSE.

https://sourceware.org/bugzilla/show_bug.cgi?id=27377
https://bugzilla.opensuse.org/show_bug.cgi?id=1181741
https://build.opensuse.org/package/view_file/Base:System/grub2/0001-Fix-build-error-in-binutils-2.36.patch
2021-05-20 09:27:49 +02:00
Sayan Chowdhury
1f7935ec72 profiles: Update the package accept_keywords
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2021-05-20 09:25:30 +02:00
Dongsu Park
58ed505831 sys-kernel/coreos-firmware: fix broken symlinks to cxgb4 firmware files
Since coreos-firmware 20210511, `cxgb4/t[4-6]fw*.bin` files have a new
version '1.25.4.0'. We need to update the file name pointed by symlinks.
Otherwise build fails due to broken symlinks.
2021-05-20 09:18:49 +02:00
Flatcar Buildbot
aa5a113a3a sys-kernel: Upgrade Linux Firmware 20210315 to 20210511 2021-05-20 09:18:49 +02:00
Flatcar Buildbot
cbc07cd946 sys-kernel: Upgrade Kernel 5.10.37 to 5.10.38 2021-05-20 07:14:42 +00:00
Kai Lüke
9d8aa1a9a9 app-emulation/docker-runc: Embargoed patch for CVE-2021-30465 2021-05-19 22:52:27 +02:00
Dongsu Park
d7dbc6dde7 Merge pull request #997 from kinvolk/rust-1.52.1-main
Upgrade dev-lang/rust in main from 1.51.0 to 1.52.1
2021-05-17 19:37:30 +02:00
Dongsu Park
116fec4eef Merge pull request #1011 from kinvolk/linux-5.10.37-main
Upgrade Linux Kernel in main from 5.10.34 to 5.10.37
2021-05-17 16:19:14 +02:00
Kai Lüke
9f796021f9 sys-kernel/bootengine: network, don't manage the loopback interface
This pulls in a change in the systemd network unit to ignore the
loopback interface instead of managing its state which sometimes causes
the address to be lost.
https://github.com/kinvolk/bootengine/pull/24
2021-05-17 15:30:48 +02:00
Kai Lüke
5916bfbfa9 coreos-base/coreos-init: systemd/network, don't manage the loopback interface
This pulls in a change in the systemd network unit to ignore the
loopback interface instead of managing its state which sometimes causes
the address to be lost.
https://github.com/kinvolk/init/pull/40
2021-05-17 15:30:47 +02:00
Kai Lüke
81926e26ae Merge pull request #1007 from kinvolk/kai/detect-device-mapper
coreos-base/coreos-init: flatcar-install, detect device mapper usage
2021-05-17 14:29:07 +02:00
Kai Lüke
18be162b54 coreos-base/coreos-init: flatcar-install, detect device mapper usage
This pulls in a behavior change in the flatcar-install script to
detect if a disk is used through a device mapper entry when searching
for free disks with -s.
https://github.com/kinvolk/init/pull/39

Fixes https://github.com/kinvolk/Flatcar/issues/332
2021-05-17 12:39:22 +02:00
Flatcar Buildbot
28cf344ca8 dev-lang: Upgrade dev-lang/rust 1.51.0 to 1.52.1 2021-05-17 12:25:40 +02:00
Sayan Chowdhury
d1c2b78f42 x11-drivers/nvidia-{drivers,metadata}: Update the version to 460.73.01
Update nvidia-drivers and nvidia-metadata to address security issues:
* CVE-2021-1052
* CVE-2021-1053
* CVE-2021-1056
* CVE-2021-1076
* CVE-2021-1077

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-05-17 12:11:58 +02:00
Flatcar Buildbot
825d15b932 sys-kernel: Upgrade Kernel 5.10.34 to 5.10.37 2021-05-15 07:12:54 +00:00
Dongsu Park
feec17561b sys-apps/dbus: apply Flatcar patches
* Drop the dependency on `sec-policy/selinux-dbus`
* Drop machine-id generation
* Stabilize both keywords `amd64` and `arm64` to build it.
* Do not add a third-party patch for CVE-2019-12749 again, as the fix is
  already included in dbus >= 1.10.29.

Loosely based on a409238795c44dabfd16e466c8433a89f5f0844f and
e458211c8418462f4bd4d4536dc96f62380a22cf .
2021-05-11 10:07:02 +02:00
Dongsu Park
5eb623c758 sys-apps/dbus: update to 1.10.32
Update dbus to 1.10.32, mainly to address CVE-2020-35512.
It is based on commit 71a58ff8b6cebe8b9e8aeddaf93185ecb52bdb8c of
Gentoo.
2021-05-10 14:31:27 +02:00
Flatcar Buildbot
230d65d7e5 dev-lang: Upgrade Go 1.16.3 to 1.16.4 2021-05-10 07:29:36 +00:00
Flatcar Buildbot
04e4324f55 sys-kernel: Upgrade Kernel 5.10.32 to 5.10.34 2021-05-03 07:13:41 +00:00
Dongsu Park
c3e3a9c785 Merge pull request #972 from kinvolk/go-1.16.3-main
Upgrade Go in main from 1.16.2 to 1.16.3
2021-04-30 09:17:46 +02:00
Sayan Chowdhury
a61c06f47c Merge pull request #978 from kinvolk/sayan/update-systemd-247.6
sys-app/systemd: Update systemd 247.6
2021-04-27 20:59:49 +05:30
Sayan Chowdhury
1878be0226 sys-app/systemd: Update systemd 247.6
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-27 20:34:28 +05:30
Sayan Chowdhury
c7cebb556b profiles: Update the accept keywords for curl 7.76.1
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-27 19:57:11 +05:30
Sayan Chowdhury
b47b8b18b2 Merge pull request #973 from kinvolk/sayan/update-openldap-2.4.58
profiles: Add accept keywords for openldap
2021-04-26 22:41:59 +05:30
Sayan Chowdhury
1d6e8353fd Merge pull request #971 from kinvolk/sayan/fix-systemd-tasksmax-patch
sys-apps/systemd: Fix the patch to update DefaultTasksMax
2021-04-26 20:01:31 +05:30
Sayan Chowdhury
5b20d5400e sys-apps/systemd: Fix the patch to update DefaultTasksMax
The upstream changed the way the default percentage value, and
make the property partially dynamic.

Upstream ref: https://github.com/systemd/systemd/pull/14007

Fixes #382

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-26 19:33:15 +05:30
Sayan Chowdhury
eeb1964d2b Merge pull request #964 from kinvolk/sayan/update-to-qemu-5.2.0
app-emulation: update qemu to 5.2.0
2021-04-26 17:11:35 +05:30
Flatcar Buildbot
c1582b4c19 dev-lang: Upgrade Go 1.16.2 to 1.16.3 2021-04-26 07:29:05 +00:00
Sayan Chowdhury
dc9e44acf9 profiles: Add accept keywords for openldap
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-26 06:45:00 +00:00
Dongsu Park
32db49b027 Merge pull request #970 from kinvolk/linux-5.10.32-main
Upgrade Linux Kernel in main from 5.10.31 to 5.10.32
2021-04-23 19:01:49 +02:00
Sayan Chowdhury
48cf59679c app-emulation/qemu: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-23 11:33:08 +00:00
Sayan Chowdhury
45110250e9 app-emulation/qemu: Sync with Gentoo upstream
Link1: 3452fc9c05

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-23 11:33:06 +00:00
Kai Lüke
f39655a823 Merge pull request #965 from kinvolk/kai/drop-rkt
Drop app-emulation/rkt and app-admin/kubelet-wrapper
2021-04-23 12:40:04 +02:00
Kai Lüke
0a0889852d Merge pull request #958 from kinvolk/kai/gce-oem-nspawn
coreos-base/oem-gce: use systemd-nspawn to run the GCE daemon
2021-04-23 12:39:36 +02:00
Flatcar Buildbot
349473393c sys-kernel: Upgrade Kernel 5.10.31 to 5.10.32 2021-04-22 07:15:14 +00:00
Kai Lüke
407c665d51 Drop app-emulation/rkt and app-admin/kubelet-wrapper
The rkt container runtime is deprecated and not used anymore except
for the kubelet-wrapper script. This script can't be ported to Docker
because it is used by the user with rkt-specific arguments and it is
only a wrapper around the deprecated hyperkube images (and has been
broken for the last K8s releases). The recommended way is to run the
kubelet binary directly on the host.
2021-04-22 00:09:04 +02:00
Kai Lüke
bc5e02d65e coreos-base/oem-gce: use systemd-nspawn to run the GCE daemon
The GCE daemon container was run with rkt from an ACI tar ball.
To replace rkt with systemd-nspawn, extract the tar ball to an
image and run the daemon as systemd-nspawn container.
2021-04-21 17:44:01 +02:00
Marga Manterola
d20a30d6c8 Merge pull request #961 from kinvolk/marga-kinvolk/optional-hostname
sys-kernel/bootengine: make hostname units optional
2021-04-21 16:32:34 +02:00
Dongsu Park
8a54f23394 Merge pull request #960 from kinvolk/dongsu/gnutls-3.7.1
profiles: accept keywords for net-libs/gnutls
2021-04-21 11:06:26 +02:00
Margarita Manterola
2b7b075998 sys-kernel/bootengine: make hostname units optional
Having the hostname units as required by the initrd.target meant that if
the unit failed (for example because the network was or the metadata
service were down), the machine wouldn't start. By making it a "wants"
rather than a "requires" we allow this unit to fail without disrupting
the whole boot.
2021-04-20 18:25:41 +02:00
Flatcar Buildbot
1a279015ec sys-kernel: Upgrade Kernel 5.10.26 to 5.10.31 2021-04-20 14:01:57 +02:00
Dongsu Park
39e9a99528 profiles: accept keywords for net-libs/gnutls
To be able to build gnutls 3.7.1, which is still not stable, we need to
accept keywords ~amd64 and ~arm64.
2021-04-20 10:26:19 +02:00
Dongsu Park
3fb5511b30 app-admin/updateservicectl: set COREOS_GO111MODULE to off
app-admin/updateservicectl also belongs to the cases where Go module is
not supported due to its old source code.
2021-04-19 17:45:08 +02:00
Dongsu Park
f9ff6599a9 app-emulation/acbuild: set COREOS_GO111MODULE to off
app-emulation/acbuild also belongs to the cases where Go module is not
supported due to its old source code.
2021-04-19 17:44:17 +02:00
Dongsu Park
9541ac9210 app-emulation/cri-tools: default to the default COREOS_GO_VERSION
We do not need to set COREOS_GO_VERSION to a specific version, unless
it is necessary to avoid build issues in certain cases like Docker.
Simply remove COREOS_GO_VERSION from the ebuild of cri-tools.
2021-04-19 17:43:08 +02:00
Dongsu Park
6b83baa45f eclass: update COREOS_GO_VERSION to 1.16
We need to update COREOS_GO_VERSION in eclass files to 1.16, to make
builds work with Go 1.16 by default.
2021-04-19 17:42:19 +02:00
Sayan Chowdhury
ad6568b1f8 dev-libs/openssl: Apply Flatcar changes
- Drop binddist from RESTRICT variable
- Drop pkg_postinst
- Create /etc/ssl with tmpfiles (and package it for the SDK).

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 12:54:34 +02:00
Sayan Chowdhury
a005bf1e34 dev-libs/openssl: Sync with Gentoo upstream
Sync ref: 1b9f956295

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 12:54:34 +02:00
Sayan Chowdhury
8ab974edb4 .github: Bump Golang version to 1.16 for Github Actions
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 11:59:24 +02:00
Sayan Chowdhury
44f43b4f7f app-emulation/amazon-ssm-agent: set env GO111MODULE to "off"
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 11:59:24 +02:00
Sayan Chowdhury
2a08005843 dev-lang/go: Update the manifest of golang
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 11:59:23 +02:00
Sayan Chowdhury
6d53f9d3bd Add the GO111MODULE
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 11:59:01 +02:00
Sayan Chowdhury
5d0a558423 dev-lang/go: Bump Go to 1.16.2
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-04-19 11:59:01 +02:00
Mathieu Tortuyaux
9d61ce382e app-emulation/cri-tools: update checksums 2021-04-12 15:32:05 +02:00
Margarita Manterola
ca608aaf52 sys-kernel/bootengine: Enable iSCSI netroot devices on Flatcar
This change pulls in the latest bootengine version, that enables ISCSI
support in dracut and avoids tearing down the network when using netroot

See https://github.com/kinvolk/bootengine/pull/22 for more information.
2021-04-07 12:34:09 +02:00
Marga Manterola
2d05b3499a Merge pull request #923 from kinvolk/marga-kinvolk/dracut-iscsi
Move dracut to coreos-overlay, add Flatcar patch
2021-04-07 12:30:33 +02:00
Dongsu Park
96a868fb46 profiles: force to use ssl USE flag for wget
This reverts commit f8dda51d546b466d9faf0c936b2ad5592ab1639e.

Recently we dropped `bindist` from `RESTRICT` in openssl, so it is
now possible to turn on `ssl` for wget again. The issue of openssl being
blocked by `masked by: bindist in RESTRICT` etc. has now disappeared.

Fixes https://github.com/kinvolk/Flatcar/issues/149
2021-04-06 09:09:31 +02:00
Flatcar Buildbot
d8026a987a dev-lang: Upgrade Go 1.15.10 to 1.15.11 2021-04-05 07:28:56 +00:00
Werner Buck
5dbe0c8922 Enable MDIO_BCM_UNIMAC to fix link when network link already used in earlier stages like PXE/UEFI boot 2021-04-02 10:56:09 +02:00
Dongsu Park
611177cd53 dev-util/boost-build: delete boost-build 1.67
For some reason, the old version of boost-build 1.67 is still here.
As we already have boost-build 1.75 in portage-stable, we should
completely delete boost 1.67.
2021-04-01 16:42:36 +02:00
Dongsu Park
aa8d3b914c dev-lang/rust: fix builds for Rust 1.51.0
The LLVM tensorflow fix was already included in the upstream,
edc57e7e7c
.
Completely remove the patch file.
2021-03-31 12:16:50 +02:00
Flatcar Buildbot
52d3df7deb dev-lang: Upgrade dev-lang/rust 1.50.0 to 1.51.0 2021-03-31 11:17:29 +02:00
Margarita Manterola
1bbb853ac9 Add Flatcar specific patch to enable the iscsi module
Flatcar uses its own network module instead of the Dracut one, but the
iscsi module depends on the network. So, in order to enable the iscsi
module, we need to patch the dependency
2021-03-30 11:03:21 +00:00
Margarita Manterola
5af3423377 Update dracut to the portage-stable version
We need to customize dracut. Currently the version in portage-stable is
picked because it's newer than the one in coreos-overlay. This commit
updates coreos-overlay to the same versions available in portage-stable.
2021-03-30 11:03:21 +00:00
Flatcar Buildbot
d633a16a97 sys-kernel: Upgrade Kernel 5.10.25 to 5.10.26 2021-03-26 07:13:39 +00:00
Sayan Chowdhury
b3400fde20 Merge pull request #916 from kinvolk/sayan/update-openssl-1.1.1k
dev-libs/openssl: Add the patch for openssl-1.1.1k release
2021-03-26 00:00:49 +05:30
Sayan Chowdhury
6e794ee59f dev-libs/openssl: Add the patch for openssl-1.1.1k release
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-03-25 23:14:43 +05:30
Sayan Chowdhury
9cf877c994 Merge pull request #912 from kinvolk/sayan/update-iscsi-2.1.4
sys-block/open-iscsi: Update to 2.1.4
2021-03-24 15:32:29 +05:30
Sayan Chowdhury
2a5cba256f Merge pull request #913 from kinvolk/sayan/update-zstd
app-arch/zstd: Add app-arch/zstd to ACCEPT_KEYWORDS
2021-03-24 15:31:30 +05:30
Sayan Chowdhury
6ac592d0cd Merge pull request #906 from blanquicet/364_updating_sys-libs_ncurses
Update sys-libs/ncurses to 6.2-r1
2021-03-24 15:31:01 +05:30
Kai Lüke
4ab6b08a51 sys-apps/baselayout: enable pam_faillock with relaxed defaults
This pulls in
https://github.com/kinvolk/baselayout/pull/17
to enable the pam_faillock module as replacement for pam_tally2.
The "faillock" binary can be used to see the login attempts and
account lock status which before was available with the pam_tally
command. While the tally defaults did not temporarily lock the
account on wrong password login attempts, this is done by default
with faillock. However, the default behavior was relaxed to allow
more wrong attempts and have a shorter lock time span.
2021-03-23 11:13:52 +01:00
Sayan Chowdhury
d437d43989 sys-block/open-iscsi: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-03-23 15:36:13 +05:30
Sayan Chowdhury
d9ff0c33ee sys-block/open-iscsi: Sync with Gentoo upstream
Gentoo ref: 34d68f5bbe

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-03-23 15:36:10 +05:30
Kai Lüke
4fe9f58926 Merge pull request #857 from kinvolk/kai/remove-rkt
app-admin/etcd-wrapper: use docker for the etcd service and drop etcd-wrapper
2021-03-22 19:40:59 +01:00
Flatcar Buildbot
73049a1a7f sys-kernel: Upgrade Kernel 5.10.24 to 5.10.25 2021-03-21 07:24:58 +00:00
Kai Lüke
f5612a8a95 app-admin/flannel-wrapper: user docker for the flannel service
As rkt is deprecated we need to run the Flannel container with Docker
or Podman. The flannel-wrapper script is based on rkt arguments and
can't be used in a compatible way but we cannot remove it since ct
explicitly uses it in the ExecStart directive when writing out a
drop-in file once flannel settings are given in a Container Linux
Config.
A better way to run the Flannel/etcd container image is Podman because
Flannel depends on etcd but wants to be run before Docker so that it
can set up the Docker networking. Etcd and Flannel are part of the
Container Linux Config specification and thus can't be removed easily.
For now we have to resort to running these services with Docker and try
to restart Docker for the Flannel options to take effect (but that also
terminates the etcd and flannel containers, causing the services to
restart).
2021-03-19 16:17:34 +01:00
Kai Lüke
a8f035c848 app-admin/etcd-wrapper: use docker for the etcd service
Since rkt is deprecated we need to run the etcd container with Docker
or Podman. The etcd-wrapper script is based on rkt arguments and can't
be used in a compatible way but we cannot remove it since ct explicitly
uses it in the ExecStart directive when writing out a drop-in file once
etcd settings are given in a Container Linux Config.
A better way to run the Flannel/etcd container image is Podman because
Flannel depends on etcd but wants to be run before Docker so that it
can set up the Docker networking. Etcd and Flannel are part of the
Container Linux Config specification and thus can't be removed easily.
For now we have to resort to running these services with Docker and try
to restart Docker for the Flannel options to take effect.
2021-03-19 16:17:34 +01:00
Jose Blanquicet
91c9486ad5 sys-libs/ncurses: Apply Flatcar patches
This commit adds some comments to help other folks to
easily recognize Flatcar-specific code.

Check issue #364 for further details.

Signed-off-by: Jose Blanquicet <blanquicet@gmail.com>
2021-03-19 16:00:55 +01:00
Sayan Chowdhury
042004c742 app-arch/zstd: Add app-arch/zstd to ACCEPT_KEYWORDS
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-03-19 19:03:54 +05:30
Krzesimir Nowak
37309215b2 Merge pull request #901 from kinvolk/firmware-20210315-main
Upgrade Linux Firmware in main from 20210208 to 20210315
2021-03-18 15:44:52 +01:00
David Michael
7c7eed243f sys-libs/ncurses: Apply Flatcar patches
Cherry-picked from kinvolk/coreos-overlay@d0426cf.

Add a symlink-usr USE flag for keeping a minimal set of terminfo
files in /usr/share/terminfo.

Also allow writes to /dev/ptmx, which sometimes causes the sandbox
to fail Jenkins builds.

Check issue kinvolk/Flatcar#364 for further details.

Signed-off-by: Jose Blanquicet <blanquicet@gmail.com>
2021-03-18 13:36:17 +01:00
Jose Blanquicet
a129ebfb0d sys-libs/ncurses: Sync with Gentoo's upstream
This commit synchronises ncurses with gentoo/gentoo@69bf5af thus
it updates the package from 6.1-r2 to 6.2-r1.

Check issue kinvolk/Flatcar#364 for further details.

Signed-off-by: Jose Blanquicet <blanquicet@gmail.com>
2021-03-18 13:35:32 +01:00
Flatcar Buildbot
ebb6d35ea7 sys-kernel: Upgrade Kernel 5.10.23 to 5.10.24 2021-03-18 07:24:28 +00:00
Flatcar Buildbot
370c620983 sys-kernel: Upgrade Linux Firmware 20210208 to 20210315 2021-03-18 07:10:22 +00:00
Dongsu Park
faafbb8b05 Merge pull request #898 from kinvolk/go-1.15.10-main
Upgrade Go in main from 1.15.8 to 1.15.10
2021-03-16 10:03:23 +01:00
Kai Lüke
cabd143d8e coreos-base/coreos-init: use alternative interface names for virtio
This pulls in
https://github.com/kinvolk/init/pull/38
to set predictable network interface names as alternative interface
names for virtio devices, and also add a special hardcoded ens4v1
name for GCE because the special udev rule to rename the device
stopped working after the systemd 247 update.
2021-03-15 15:49:09 +01:00
Thilo Fromm
af26169c04 Merge pull request #874 from kinvolk/t-lo/fix-sdk-bootstrap
fix sdk bootstrap: use python3 in catalyst chroot-functions, set cros_host USE when bootstrapping
2021-03-15 15:05:51 +01:00
Flatcar Buildbot
ebf4be322c dev-lang: Upgrade Go 1.15.8 to 1.15.10 2021-03-15 07:35:41 +00:00
Flatcar Buildbot
45682c9588 sys-kernel: Upgrade Kernel 5.10.22 to 5.10.23 2021-03-12 14:49:09 +01:00
Flatcar Buildbot
64c53b3488 sys-kernel: Upgrade Kernel 5.10.21 to 5.10.22 2021-03-11 06:46:37 +01:00
Margarita Manterola
3adcae94c2 Revert adding explicit path to the containerd unit
This unit is post-processed for torcx purposes and adding absolute paths
breaks execution.
2021-03-10 11:13:44 +01:00
Marga Manterola
d0666beaa1 Merge pull request #888 from kinvolk/marga-kinvolk/fix-path
Add explicit paths to coreos-metadata and containerd executables in their unit files
2021-03-09 16:20:39 +01:00
Marga Manterola
28ead9a135 Merge pull request #886 from kinvolk/linux-5.10.21-main
Upgrade Linux Kernel in main from 5.10.19 to 5.10.21
2021-03-09 12:23:08 +01:00
Marga Manterola
7af7e439b8 Merge pull request #880 from kinvolk/containerd-1.4.4-main
Upgrade Containerd in main from 1.4.3 to 1.4.4
2021-03-09 11:58:28 +01:00
Margarita Manterola
83ea2ed26b Add explicit paths to coreos-metadata and containerd executables
While the execution of the unit may succeed by finding the executables
by searching the current PATH, calling `systemd-analyze verify` on the
units fails because this requires an absolute path.
2021-03-08 17:59:05 +01:00
Margarita Manterola
6bb43e7b37 sys-kernel/coreos-firmware: include compressed modules
When listing kernel modules to decide which firmware should be shipped
together with the image, we need to now list both compressed and
uncompressed module.

Fixes: kinvolk/Flatcar#359
2021-03-08 12:26:06 +01:00
Flatcar Buildbot
0d637000f5 sys-kernel: Upgrade Kernel 5.10.19 to 5.10.21 2021-03-08 07:29:51 +00:00
Flatcar Buildbot
42056568dc app-emulation: Upgrade Containerd 1.4.3 to 1.4.4 2021-03-05 15:02:22 +01:00
Kai Lüke
a25b0a8a06 app-admin/sdnotify-proxy: use git ref of new repository
In https://github.com/kinvolk/coreos-overlay/pull/875 the repository
was switched to a fork from the archived upstream repository. However,
the ebuild was still using a reference to an old squashed Flatcar build
bot commit from the git-sync times that was only present in our old
repository.
Switch to a reference to the latest commit on the new repository which
in fact does not introduce any changes.
2021-03-05 11:07:47 +01:00
Dongsu Park
238e88e435 app-admin/toolbox: update to use docker instead of rkt
Since rkt will be deprecated soon, we should make toolbox run docker
instead of rkt.

Also delete dependency on `app-emulation/rkt`, and update hyperlinks.

It pulls in https://github.com/kinvolk/toolbox/pull/1 .
2021-03-05 10:23:01 +01:00
Thilo Fromm
aa4355cdb5 dev-util/catalyst: use python3 in chroot-functions for portage dbg output
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-03-05 09:29:39 +01:00
Thilo Fromm
e9a822fd0a amd64 SDK: add cros_host to BOOTSTRAP_USE
This change adds the USE flag cros_host to the
SDK's make.default, as part of a larger fix for the SDK bootstrap build.
The SDK bootstrap build was broken in stage 1 since package upgrades
were allowed to leak into that phase.

We now limit stage 1 to only "known good" package ebuilds, which caused
downstream breakage from missing flags in the stage 2 SDK bootstrapping.

This change fixes that breakage.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-03-05 09:29:31 +01:00
Vincent Batts
981e8375df sdnotify: avoid the github redirect
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2021-03-04 07:58:16 -05:00
Kai Lüke
85ecfbc0c3 .github: automate kernel updates
The kernel version and maintenance branch stays the same for an LTS
stream. Since streams coexist for some time, they need their own GitHub
Actions.
2021-03-02 18:17:02 +01:00
Sayan Chowdhury
29a652e553 Merge pull request #872 from kinvolk/sayan/update-openssl-1.1.1j
dev-libs/openssl: Update to openssl-1.1.1j
2021-03-02 19:58:55 +05:30
Sayan Chowdhury
077279a0f9 Merge pull request #852 from kinvolk/t-lo/sshd-safe-crypto-only
coreos-base/coreos-init: SSHD: use secure crypto algos only
2021-03-02 19:40:14 +05:30
Sayan Chowdhury
26b27b7ac5 dev-libs/openssl: Apply Flatcar changes
- Drop binddist from RESTRICT variable
- Drop pkg_postinst
- Create /etc/ssl with tmpfiles (and package it for the SDK).

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-03-02 18:36:22 +05:30
Sayan Chowdhury
e1e7339fdd dev-libs/openssl: Sync with Gentoo upstream
Gentoo ref: c0914ae91cb25cbe8c143e2ce3de514cfd8294eb

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-03-02 18:36:20 +05:30
Sayan Chowdhury
1eb46344a2 Merge pull request #871 from kinvolk/sayan/multipath-tools-0.8.5
profiles: Add multipath-tools to ACCEPT_KEYWORDS
2021-03-02 17:43:20 +05:30
Dongsu Park
ba8d038a68 Merge pull request #824 from kinvolk/runc-1.0.0_rc93-main
Upgrade Runc in main from 1.0.0_rc92 to 1.0.0_rc93
2021-03-02 13:06:40 +01:00
Sayan Chowdhury
77a59effe4 Merge pull request #870 from kinvolk/sayan/update-intelmicrcode-20210216
sys-firmware/intel-microcode: Sync with Gentoo upstream, update to 20210216
2021-03-02 17:33:19 +05:30
Sayan Chowdhury
2477513a35 Merge pull request #869 from kinvolk/sayan/update-systemd-247.3
sys-apps/systemd: Bump to v247.3
2021-03-02 17:29:28 +05:30
Sayan Chowdhury
fc90796de7 Merge pull request #868 from kinvolk/linux-5.10.19-main
Upgrade Linux Kernel in main from 5.10.18 to 5.10.19
2021-03-02 15:46:04 +05:30
Dongsu Park
18630b7218 app-emulation/docker-runc: disable NoNewPrivileges options
Temporarily disable Prctl and InitSeccomp for NoNewPrivileges, to be able
to make docker/runc work with "--security-opt=no-new-privileges".

So far it has worked without disabling NoNewPrivileges until runc
1.0.0-rc92,
which allowed the "selinux" build tag. Since runc 1.0.0-rc93, however,
the selinux build tag is now gone, so selinux is always enabled.
That's why `docker run --security-opt=no-new-privileges` failed.

Until we could figure out its real reason, let's temporarily disable
NoNewPrivilges to make the CI pass.
2021-03-01 14:17:10 +01:00
Dongsu Park
3d6a652669 app-emulation/docker-runc: adjust Flatcar patch for 1.0.0-rc93
A Flatcar patch for docker-runc cannot be applied to 1.0.0-rc93.
We need to adjust to build docker-runc 1.0.0-rc93.
2021-03-01 14:09:35 +01:00
Flatcar Buildbot
b966faf70a app-emulation: Upgrade Runc 1.0.0_rc92 to 1.0.0_rc93 2021-03-01 14:09:35 +01:00
Flatcar Buildbot
91dce4eeea sys-kernel: Upgrade Kernel 5.10.18 to 5.10.19 2021-02-27 07:24:45 +00:00
Sayan Chowdhury
696cde77e2 profiles: Add multipath-tools to ACCEPT_KEYWORDS
This commit also removes some redundant accept_keywords

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2021-02-26 13:49:25 +00:00
Sayan Chowdhury
54b014bbf4 sys-apps/systemd: Bump to v247.3
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-26 12:50:33 +00:00
Sayan Chowdhury
6be3b53918 sys-firmware/intel-microcode: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-26 11:10:31 +00:00
Sayan Chowdhury
529e6a625c sys-firmware/intel-microcode: Sync with Gentoo upstream
Gentoo ref: c2804beb21d8dca394fa2b54cb387f4a55ffa491

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-26 11:09:36 +00:00
Dongsu Park
0f6b8f8760 profiles: disable regedit for Samba
Disable unnecessary regedit in samba to minimize the package size.
2021-02-26 11:14:49 +01:00
Dongsu Park
151de3edfa net-fs/samba: set bundled_libs=ldb
To minimize the size of bundled libraries of Samba, we should install
only the "ldb" backend by default.
2021-02-26 11:14:49 +01:00
Dongsu Park
fa1c85c224 net-fs/samba: pulls in icu only if spotlight
dev-libs/icu is needed only if spotlight is enabled.
If not enabled, we should not pull in icu.
2021-02-26 11:14:49 +01:00
Dongsu Park
eec42d4c3f net-fs/samba: new USE flags spotlight, regedit, glusterfs, ntvfs
Introduce a USE flag spotlight, to be able to disable the spotlight
backend by default, as it is not needed by Linux.

Introduce a USE flag rededit, to be able to disable the rededit
tool if needed.

Introduce a USE flag glusterfs, to be able to disable the glusterfs
by default.

Introduce a USE flag ntvfs, to be able to disable the ntvfs-fileserver
by default.

Since the docbook-xsl-stylesheets and libxslt are needed only
at build time, we should move those deps to BDEPEND.
2021-02-26 11:14:49 +01:00
Dongsu Park
61eb799b82 net-fs/samba: use EAPI=7
Now that portage was updated to the latest version, we should update
EAPI to 7. It is mainly to allow ebuilds to make BDEPEND contain real
build-time dependencies, not runtime ones.
2021-02-26 11:14:46 +01:00
Flatcar Buildbot
d27a540639 sys-kernel: Upgrade Kernel 5.10.17 to 5.10.18 2021-02-24 07:30:22 +00:00
Dongsu Park
5ad450acf1 app-emulation/containerd: delete containerd-stress
Each Flatcar production image includes a binary `containerd-stress`,
as a part of torcx tarballs.

However it does not seem to be used anywhere.
It looks like a stress testing tool for containerd, so I don't see a
good reason to keep it.
The binary was there since the beginning, via commit
[fdd926949a10](fdd926949a),
but there is no comment or messages why it was needed.
We can simply remove `containerd-stress`.
2021-02-22 15:03:17 +01:00
Dongsu Park
6a307e5ae3 coreos-base: delete dhcpcd
Now that dhcpcd was removed from portage-stable, we can simply delete
dependency on dhcpcd.
2021-02-22 15:02:36 +01:00
Krzesimir Nowak
a03a06e059 Merge pull request #851 from kinvolk/krnowak/drop-kernel-mirror
sys-kernel/dracut: Drop the use of mirror://kernel
2021-02-19 18:12:59 +01:00
Krzesimir Nowak
ce69950563 Merge pull request #855 from kinvolk/linux-5.10.17-main
Upgrade Linux Kernel in main from 5.10.16 to 5.10.17
2021-02-19 18:12:25 +01:00
Krzesimir Nowak
e75fe0a01c dev-util/catalyst: Bump the version 2021-02-19 15:03:28 +01:00
Krzesimir Nowak
227ec22a01 dev-util/catalyst: Patch to use python3 explicitly 2021-02-19 15:03:28 +01:00
Flatcar Buildbot
65ee37b78b sys-kernel: Upgrade Kernel 5.10.16 to 5.10.17 2021-02-19 07:24:39 +00:00
Krzesimir Nowak
d904874d70 Merge pull request #853 from kinvolk/krnowak/workflow-fixes
.github: Minor fixes in kernel update workflow
2021-02-18 19:58:40 +01:00
Krzesimir Nowak
7d2428e83e .github: Use "Kernel" as a description for Linux kernel updates 2021-02-18 19:37:07 +01:00
Dongsu Park
f54ba66a5b Merge pull request #846 from kinvolk/mauricio/enable_config_bpf_lsm
sys-kernel: enable kernel config CONFIG_BPF_LSM
2021-02-18 18:19:13 +01:00
Krzesimir Nowak
e8e2a31ce5 .github: Fix invocation to generate_patches in kernel job
generate_patches takes three parameters - a category, a package name
and a description. Invoking the function like `generate_patches
sys-kernel coreos-{sources,modules,kernel} Linux` makes "sys-kernel"
to be a category, "coreos-sources" to be a package name and
"coreos-modules" to become a description, while "coreos-kernel" and
"Linux" are simply ignored.

It has worked so far only because coreos-sources was first in the list
and that's where the actual changes in Manifest file happened. Had the
order of the packages been different, the workflow would be
broken. Since only coreos-sources was modified and all worked fine,
simplify the call to generate-patches.
2021-02-18 16:57:14 +01:00
Krzesimir Nowak
7dd3c27d07 .github: Drop unnecessary semicolons and trailing backslashes
Looks like it was copied straight from the Makefile.
2021-02-18 16:34:19 +01:00
Thilo Fromm
6938c8511b coreos-base/coreos-init: SSHD: use secure crypto algos only
This change updates coreos-init to a version which includes
a new SSHD config to limit crypto to "known secure" algorithms only.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-02-18 16:21:28 +01:00
Kai Lüke
fcd60ae890 Merge pull request #848 from kinvolk/kai/aws-hostname
sys-kernel/bootengine: set hostname for EC2 and OpenStack from metadata
2021-02-18 15:26:00 +01:00
Kai Lüke
b33dcec46f sys-kernel/bootengine: set hostname for OpenStack and EC2 from metadata
This pulls in
https://github.com/kinvolk/bootengine/pull/21
2021-02-18 15:25:26 +01:00
Krzesimir Nowak
77dac52cd5 sys-kernel/dracut: Drop the use of mirror://kernel
The kernel mirror was dropped from the thirdpartymirrors file in
profiles, so it's use needs to be replaced with an address to
kernel.org.
2021-02-18 10:44:58 +01:00
Mauricio Vasquez
c18694fb9d sys-kernel: enable kernel config CONFIG_BPF_LSM
Enable this option to make it possible to use LSM hooks with BPF.

Signed-off-by: Mauricio Vasquez <mauricio@kinvolk.io>
2021-02-17 13:35:19 +00:00
Dongsu Park
b649528d47 dev-lang/rust: fix build for Rust 1.50
The patch for 1.46 causes build errors for 1.50.
That's not needed at all, so simply delete it to fix build issues.

Also sync with upstream Gentoo.
2021-02-16 17:30:05 +01:00
Flatcar Buildbot
206473170d dev-lang: Upgrade dev-lang/rust 1.49.0 to 1.50.0 2021-02-16 07:41:12 +00:00
Krzesimir Nowak
a475ef9091 Merge pull request #845 from kinvolk/linux-5.10.16-main
Upgrade Linux Kernel in main from 5.10.15 to 5.10.16
2021-02-15 13:33:52 +01:00
Krzesimir Nowak
32812d8a91 coreos-base/gmerge: Pull in a python3 version of emerge-gitclone 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
ba52f359ef profiles: Unmask dev-libs/ustr
It is masked in portage-stable, unmask it here since we still
need it.
2021-02-15 12:44:33 +01:00
Krzesimir Nowak
3ff25e6508 dev-util/catalyst: Apply Flatcar modifications 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
86a5038964 dev-util/catalyst: Drop unnecessary file 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
e948849fb8 dev-util/catalyst: Copy from Gentoo 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
2e469153a2 profiles: Enable python 3 support in SDK too 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
ac884f82dc profiles: Block targeting python 3.7
After updating profiles in portage-stable these USE flags became
unmasked. We mask them ourselves until we package some newer python.
2021-02-15 12:44:33 +01:00
Krzesimir Nowak
c070586b1f profiles: Drop some enabled-by-default USE flags for portage-utils
The updated portage-utils bring in two more tools, qmanifest and
qtegrity. They are pulling in some new dependencies. Since we didn't
have those tools before, we can live without them for a little while
longer.
2021-02-15 12:44:33 +01:00
Krzesimir Nowak
e8e36d6ebf dev-python/setuptools: Apply Flatcar modifications 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
3b95068e05 dev-python/setuptools: Drop unused ebuild
Dropping the new one, since the older one has still some support for
python2.
2021-02-15 12:44:33 +01:00
Krzesimir Nowak
e697a7491d dev-python/setuptools: Copy from Gentoo 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
46702e3ec2 profiles: Use python3 for portage
Drop lines for gentoolkit-dev, pyblake2 and uritemplate - they are not
packaged by us anymore.
2021-02-15 12:44:33 +01:00
Krzesimir Nowak
25cc462741 app-portage/repoman: Apply Flatcar modifications 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
8be1d99ca6 app-portage/repoman: Drop unused files 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
638953c50d app-portage/repoman: Copy from Gentoo 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
e6e06eded6 app-portage/gentoolkit: Apply Flatcar modifications 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
9976250ab3 app-portage/gentoolkit: Drop unused files 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
d65a6b620c app-portage/gentoolkit: Copy from Gentoo 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
ba5929ebbc sys-apps/portage: Apply Flatcar modifications and document them 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
6314d75a5f sys-apps/portage: Drop unused ebuilds 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
aa975db8a4 sys-apps/portage: Copy from Gentoo 2021-02-15 12:44:33 +01:00
Krzesimir Nowak
52cf405dd7 sys-apps/portage: Drop old 2021-02-15 12:44:33 +01:00
Flatcar Buildbot
ab35dcde68 sys-kernel: Upgrade coreos-kernel 5.10.15 to 5.10.16 2021-02-14 07:25:20 +00:00
Sayan Chowdhury
5f8287bb47 Merge pull request #842 from kinvolk/sayan/fix-nvidia-metadata-version
x11-drivers/nvidia-metadata: Fix the version number of the ebuild file
2021-02-14 09:18:30 +05:30
Sayan Chowdhury
03e434176f x11-drivers/nvidia-metadata: Fix the version number of the ebuild file
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-12 19:59:40 +05:30
Kai Lüke
9c86679a3f coreos-base/coreos-init: make wget more resilient in flatcar-install
This pulls in
https://github.com/kinvolk/init/pull/35
to add parameters for wget in bin/flatcar-install.
2021-02-12 15:02:36 +01:00
Sayan Chowdhury
7bb1c68a30 Merge pull request #839 from kinvolk/sayan/update-intel-microcode
sys-firmware/intel-microcode: Update to 20201112
2021-02-12 09:40:13 +05:30
Krzesimir Nowak
7cb23477e1 Merge pull request #836 from kinvolk/linux-5.10.15-main
Upgrade Linux Kernel in main from 5.10.14 to 5.10.15
2021-02-11 18:33:29 +01:00
Sayan Chowdhury
eae0b6de2d sys-firmware/intel-microcode: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-11 17:13:55 +05:30
Flatcar Buildbot
73b5b164fd sys-kernel: Upgrade coreos-kernel 5.10.14 to 5.10.15 2021-02-11 09:52:33 +00:00
Flatcar Buildbot
5f08698701 sys-kernel: Upgrade Linux Firmware 20201218 to 20210208 2021-02-11 09:50:32 +00:00
Sayan Chowdhury
862d542c2d sys-firmware/intel-microcode: Sync with upstream
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-11 13:18:36 +05:30
Sayan Chowdhury
506393f893 sys-block/open-iscsi: Command substition in iscsi-init system service
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-10 15:23:43 +05:30
Thilo Fromm
d21f9c4220 Merge pull request #834 from kinvolk/contributions/update-to-samba-4.12.9
Contributions/update to samba 4.12.9
2021-02-09 16:03:47 +01:00
Thilo Fromm
cf695fb6fa sdk/keywords: unmask Perl:parse-yapp for ARM64
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-02-08 14:40:46 +01:00
Mathieu Tortuyaux
a3608aa065 sdk/package, coreos-devel/sdk-depends: add dev-perl/parse-yapp
this dependency is required in order to build net-fs/samba-4.12.9
2021-02-08 14:32:18 +01:00
Mathieu Tortuyaux
80e477c102 net-fs/samba-4.12.9: apply flatcar changes
basically the same changes done for 4.11.13 except for
dev-perl/Parse-Yapp, it's now a build dependency so it has
to be added to the SDK
2021-02-08 14:32:18 +01:00
Mathieu Tortuyaux
e61331d28e net-fs/samba: sync from Gentoo to 4.12.9 2021-02-08 14:32:18 +01:00
Flatcar Buildbot
acdf73371a dev-lang: Upgrade Go 1.15.7 to 1.15.8 2021-02-08 14:27:45 +01:00
Krzesimir Nowak
6e70b16f1f Merge pull request #832 from kinvolk/linux-5.10.14-main
Upgrade Linux Kernel in main from 5.10.13 to 5.10.14
2021-02-08 14:24:31 +01:00
Dongsu Park
4f0939791b Merge pull request #819 from kinvolk/docker-19.03.15-main
Upgrade Docker in main from 19.03.14 to 19.03.15
2021-02-08 14:24:12 +01:00
Dongsu Park
acd16443f5 Merge pull request #827 from kinvolk/dongsu/delete-go-1.6
dev-lang/go: delete go 1.6
2021-02-08 10:49:31 +01:00
Flatcar Buildbot
1d8f397736 sys-kernel: Upgrade coreos-kernel 5.10.13 to 5.10.14 2021-02-08 07:24:23 +00:00
Krzesimir Nowak
110f58e4d1 profiles: Disable split-usr explicitly for generic images
We don't want to have separate /bin, /lib, /usr/bin and /usr/lib
directories. The former two are meant to be symlinks to the latter
two. The `split-usr` USE flag gets enabled with the profiles update in
portage-stable, so before doing the update, clear the flag in the
overlay.

This is not done for SDK images, since they seem to have split /usr on
purpose.
2021-02-05 14:04:28 +01:00
Krzesimir Nowak
d16712fab5 sys-apps/coreutils: Apply Flatcar modifications 2021-02-05 14:04:28 +01:00
Krzesimir Nowak
df8a025208 sys-apps/coreutils: Drop unnecessary files 2021-02-05 14:04:28 +01:00
Krzesimir Nowak
8d80b90a85 sys-apps/coreutils: Copy from Gentoo 2021-02-05 14:04:28 +01:00
Krzesimir Nowak
b908bd1ccc coreos-base/gmerge: Stop installing gmerge script
It is not used anywhere during the build process, thus drop
it. Dropping it makes it easier to port this ebuild to python3, since
there will be only one script to port to python3. The
`emerge-gitclone` script will need porting anyway, because it imports
portage code, which will become python3 after the update.

Most likely the package should be then renamed to
`coreos-base/emerge-gitclone`, but this can be done later.
2021-02-04 18:23:01 +01:00
Dongsu Park
ebf5dd95c5 Merge pull request #826 from kinvolk/dongsu/delete-docker-1.12
app-emulation,torcx: delete docker 1.12
2021-02-04 17:57:41 +01:00
Krzesimir Nowak
a5313396a8 Merge pull request #825 from kinvolk/krnowak/nvidia-metadata-amd64-only
coreos-base/coreos: Move nvidia-metadata to amd64-only RDEPENDS
2021-02-04 17:43:26 +01:00
Dongsu Park
be6631220c coreos-base/hard-host-depends: delete go 1.6 from the dependency list
Now that `dev-lang/go` 1.6 is gone, we need to also delete it from the
SDK dependencies list.
2021-02-04 16:58:34 +01:00
Dongsu Park
8ba14215cd dev-lang/go: delete go 1.6
Now that Docker 1.12 is gone, we can delete go 1.6 completely.

Note, we do not delete go 1.7, which is still needed by containerd 0.2.6
and docker 17.03.
2021-02-04 16:58:34 +01:00
Dongsu Park
8ec79d7452 profiles: delete app-emulation/runc 1.0.0_rc2
Now that `app-emulation/runc` is gone, we can also delete it from
`package.use` in profiles.
2021-02-04 16:56:10 +01:00
Dongsu Park
245527a87f app-emulation/docker-runc: delete app-emulation/runc from RDEPEND
Now that `app-emulation/runc` is gone, we can delete also the negative
dependency on `app-emulation/runc` from RDEPEND of
`app-emulation/docker-runc`.
2021-02-04 16:56:10 +01:00
Dongsu Park
3305ae7947 app-emulation/runc: delete runc 1.0.0_rc2
Now that docker 1.12 is gone, we can delete `app-emulation/runc`
1.0.0_rc2, which had dependency on docker 1.12.

Note, we do not delete `app-emulation/docker-runc` 1.0.0_rc2, because
that one is needed by Docker 17.03.
2021-02-04 16:56:10 +01:00
Dongsu Park
58195cfc50 app-emulation/containerd: delete 0.2.5
Now that docker 1.12 is gone, we can also delete containerd 0.2.5,
which had dependency on docker 1.12.
2021-02-04 16:56:10 +01:00
Dongsu Park
37a19744f8 app-arch/torcx: delete docker 1.12
Delete torcx config file needed only for Docker 1.12.
Note, let's keep the remaining file name as before,
`docker-1.12-no.json`, to be consistent with naming scheme of
the torcx repo itself of Flatcar.
2021-02-04 16:56:10 +01:00
Dongsu Park
6f56f85247 app-torcx/docker: delete docker 1.12
delete torcx profiles for docker 1.12
2021-02-04 16:56:10 +01:00
Dongsu Park
291af871d7 app-emulation/docker: delete docker 1.12
One of the torcx profiles in Flatcar is for docker 1.12, which is
outdated since a long time. It takes ~27 MB of space in production
images almost for no reason.
We can and should delete docker 1.12.

After deletion:

```
$ df -h /usr
Filesystem       Size  Used Avail Use% Mounted on
/dev/mapper/usr  985M  843M   91M  91% /usr
```
2021-02-04 16:56:10 +01:00
Krzesimir Nowak
0d9d6e74cc coreos-base/coreos: Move nvidia-metadata to amd64-only RDEPENDS
x11-drivers/nvidia-drivers are installed only on amd64 arch, so
install x11-drivers/nvidia-metadata also only on amd64.
2021-02-04 13:59:34 +01:00
Flatcar Buildbot
a07123d3c0 sys-kernel: Upgrade coreos-kernel 5.10.12 to 5.10.13 2021-02-04 07:24:23 +00:00
Kai Lüke
2604b8d782 coreos-base/oem-*: add Pro to OEM name where applicable
Using the change in https://github.com/kinvolk/init/pull/34
we can show the OEM on the motd, and by including "Pro" in the OEM
name we can also show whether it is a Pro image or not. Later this
may be revisited if the /usr/../os-release file is the place for it.
2021-02-03 14:52:43 +01:00
Kai Lüke
e688b44567 coreos-base/coreos-init: Show OEM in motd
This pulls in
https://github.com/kinvolk/init/pull/34
2021-02-03 14:52:40 +01:00
Marga Manterola
153a1615d5 Merge pull request #817 from kinvolk/marga-kinvolk/missing-mkdir
flatcar-eks: add missing mkdir and update to latest versions
2021-02-03 12:24:29 +01:00
Kai Lüke
0a561945e2 Merge pull request #818 from kinvolk/kai/tss-gid
sys-apps/baselayout: use correct GID for tss in /etc/passwd
2021-02-03 11:16:02 +01:00
Sayan Chowdhury
a7289f52fa Merge pull request #762 from kinvolk/sayan/handle-nvidia-upgrades
x11-drivers/nvidia-drivers: Handle NVIDIA Version upgrades
2021-02-03 14:40:11 +05:30
Flatcar Buildbot
f8c6f9b935 app-emulation: Upgrade Docker 19.03.14 to 19.03.15 2021-02-03 07:51:45 +00:00
Kai Lüke
f0164576fd sys-apps/baselayout: use correct GID for tss in /etc/passwd
This pulls in
https://github.com/kinvolk/baselayout/pull/15
2021-02-02 19:49:17 +01:00
Dongsu Park
dacbfd7721 coreos-base/coreos: add cri-tools to base packages
Add a new ebuild `app-emulation/cri-tools` to the dependencies list of
`coreos-base/coreos`, to get included in the production image.
2021-02-02 14:15:35 +01:00
Dongsu Park
13946b551d app-emulation/cri-tools: apply Flatcar patches
Update to 1.19.0, to keep up with recent releases of cri-tools.
Note that we should not simply update to 1.20.0, because its crictl
binary file is 30M, so bigger than the usual size.
On the other hand, crictl 1.19.0 is only 21M.

To optimize the binary size of crictl, make use of the existing
helpers provided by `coreos-go.eclass`.
Add "-X $(PROJECT)/pkg/version.Version=$(VERSION)" to GO_LDFLAGS,
as the original cri-tools Makefile does.
Note, we cannot run the native command like `emake crictl`, because
the cri-tools Makefile does not allow custom env variables like
BUILDTAGS or GO_LDFLAGS to be configured.

Add `arm64` to ACCEPTED_KEYWORDS.

Remove unnecessary files from installation, as well as the bash
completion eclass.
2021-02-02 14:15:16 +01:00
Margarita Manterola
017f65df7e flatcar-eks: add missing mkdir and update to latest versions
The bootstrapping script relies on /etc/docker existing, but this
directory doesn't exist on vanilla Flatcar. Add the missing call to
mkdir -p /etc/docker before the directory gets used.

Also, update the upstream files to their latest version.
2021-02-02 14:11:13 +01:00
Dongsu Park
94a00872df app-emulation/cri-tools: sync with Gentoo
To add a new ebuild `app-emulation-cri-tools`, sync with Gentoo.
2021-02-02 08:55:58 +01:00
Sayan Chowdhury
80f63d2cfb x11-drivers/nvidia-metadata: Handle NVIDIA Version upgrades
Move the NVIDIA variables into a seperate file inorder to handle them
when Flatcar upgrade happens

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-02-02 11:09:09 +05:30
Krzesimir Nowak
e900e5d6ea Merge pull request #810 from kinvolk/krnowak/systemd-install-fix
sys-apps/systemd: Fix unit installation
2021-02-01 19:06:12 +01:00
Krzesimir Nowak
5f1fe03412 Merge pull request #813 from kinvolk/linux-5.10.12-main
Upgrade Linux Kernel in main from 5.10.10 to 5.10.12
2021-02-01 19:01:23 +01:00
Kai Lüke
aa8083cd03 Merge pull request #809 from kinvolk/kai/tcsd
app-crypt/trousers: use correct file permissions
2021-02-01 18:04:05 +01:00
Kai Lüke
a658465ee9 sys-apps/baselayout: fix failed unit parsing
This pulls in
https://github.com/kinvolk/baselayout/pull/16
to fix parsing of failed units shown as motd.
2021-02-01 14:17:08 +01:00
Flatcar Buildbot
66c26e82e3 sys-kernel: Upgrade coreos-kernel 5.10.10 to 5.10.12 2021-01-31 07:30:17 +00:00
Krzesimir Nowak
8a67dfa986 sys-apps/systemd: Fix unit installation
The systemd.eclass was not finding the systemd pkg-config file to
figure out the system unit directory, so it was falling back to a
hardcoded default (`/lib/systemd/system`). In one case (when
overriding the `default.target` symlink), we tried to fix that by
specifying the `PKG_CONFIG_LIBDIR` environment variable, but that
still did not help.

Using functions from `systemd.eclass` in a systemd ebuild is working
only by chance here. This eclass is usually meant for ebuilds that
depend on systemd and rely on systemd being already installed in the
root filesystem.

The functions in `systemd.eclass` that need to figure out some values
from systemd's pkg-config file (like system unit directory) assume
that systemd is already installed in the root filesystem, which is not
the case when we actually are building and installing systemd.

To add an insult to the injury, `systemd.eclass` is not using
pkg-config directly, but rather a shell script that wraps pkg-config
(for example `/usr/bin/x86_64-cros-linux-gnu-pkg-config`). The script
clobbers the environment variables like `PKG_CONFIG_PATH` or
`PKG_CONFIG_LIBDIR`, which is why overriding them did not work when
fixing up the `default.target` symlink. Thus `systemd.eclass` was
actually falling back to a hardcoded default value. The only way to
control the script is through either SYSROOT or ROOT environment
variables. So do so.

This fixes merging the installed files into root file system using a
newer version of portage. The failure was that systemd build system
installs the `default.target` symlink in `/usr/lib/systemd/system`
pointing to `graphical.target`, while we later try to override it to
point it to `multi-user.target`.  But instead of overriding a symlink,
we installed a new symlink in `/lib/systemd/system`. Both `/lib` and
`/usr/lib` are separate directories in the temporary installation
directory, but in root filesystem, both are symlinks pointing to the
same directory. Which means that we ended up with two different
symlinks in temporary installation directory, and the new portage
version could not decide which one to use during the merge into the
root filesystem. I'm not sure what old portage version did here,
likely worked by chance too.
2021-01-29 21:42:31 +01:00
Kai Lüke
e75255bd67 app-crypt/trousers: use correct file permissions
The security patch that was brought in has stricter permission checks
which cause the service to fail:
ERROR: TCSD config file (/etc/tcsd.conf) must be user/group root/tss
Set the expected file ownership and permissions.

https://github.com/kinvolk/Flatcar/issues/335
2021-01-29 12:07:18 +01:00
Thilo Fromm
128f661745 app-admin/sudo: Apply Flatcar patches (remove perl dep)
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-01-27 16:08:52 +01:00
Thilo Fromm
00abfb8538 app-admin/sudo,profiles: apply Flatcar patches
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-01-27 12:22:19 +01:00
Thilo Fromm
131c6d1cba app-admin/sudo: update to 1.9.5_p2 (gentoo upstream)
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-01-27 12:22:19 +01:00
Dongsu Park
9e0d1246a7 coreos-base/hard-host-depends: bring back dependency on dev-libs/nspr
Now that `dev-libs/nss` is removed from the depencencies list of
hard-host-depends, SDK does not include `dev-libs/nspr` any more.
As a result, `dev-lang/spidermonkey` fails to build, because it requires
`dev-libs/nspr` in the SDK. It is not sufficient to have nspr under
`/build/amd64-usr`.

Add `dev-libs/nspr` back to the dependencies of `hard-host-depends`,
to make it included in the SDK.
2021-01-26 10:52:33 +01:00
Sayan Chowdhury
e3511d1c79 Merge pull request #791 from kinvolk/sayan/update-iscsi-2.1.3
sys-block/open-iscsi: Update iscsi to 2.1.3
2021-01-25 19:07:15 +05:30
Dongsu Park
92b9b9ed01 Merge pull request #800 from kinvolk/dongsu/drop-nss
coreos-base,profiles: delete nss
2021-01-25 11:48:29 +01:00
Marga Manterola
b94a88eeba Merge pull request #798 from kinvolk/linux-5.10.10-main
Upgrade Linux Kernel in main from 5.10.8 to 5.10.10
2021-01-25 11:08:30 +01:00
Marga Manterola
716ee566f1 Merge pull request #799 from kinvolk/go-1.15.7-main
Upgrade Go in main from 1.15.6 to 1.15.7
2021-01-25 11:07:49 +01:00
Dongsu Park
d9c47f2e93 profiles: drop dev-libs/nss
Since an unnecessary ebuild `dev-libs/nss` was deleted, we should
also remove `dev-libs/nss` from profiles.
2021-01-25 10:09:58 +01:00
Dongsu Park
4b498ee81d coreos-devel/sdk-depends: drop dev-libs/nss
Since an unnecessary ebuild `dev-libs/nss` was deleted, we should
also remove `dev-libs/nss` from SDK dependencies.
2021-01-25 10:08:46 +01:00
Dongsu Park
d255c6b3b1 Merge pull request #795 from kinvolk/dongsu/open-vm-tools-11.2.5
app-emulation/open-vm-tools: update to 11.2.5
2021-01-25 09:55:03 +01:00
Flatcar Buildbot
86f7618d06 dev-lang: Upgrade Go 1.15.6 to 1.15.7 2021-01-25 08:14:17 +00:00
Flatcar Buildbot
a4783897bc sys-kernel: Upgrade coreos-kernel 5.10.8 to 5.10.10 2021-01-24 07:58:24 +00:00
Margarita Manterola
9b18ee2ede flatcar-eks: facilitate provisioning EKS workers
This change adds a new flatcar-eks package, that ships with all scripts
needed to join a Flatcar instance to an EKS cluster.

It includes the bootstrap.sh script used on Amazon Linux, to keep
compatibility with existing provisioning tools.

The package is included from the oem-ec2-compat package, when the board
is aws_pro, and it's part of board-packages, so that it's built by the
os/board/packages job.
2021-01-22 17:22:46 +01:00
Dongsu Park
c7449edc42 coreos-base/oem-vmware: update to 11.2.5
Update oem-vmware to 11.2.5, corresponding to the update of
open-vm-tools to 11.2.5.
2021-01-22 16:38:27 +01:00
Dongsu Park
02dbb8e4b2 app-emulation/open-vm-tools: update to 11.2.5
Update open-vm-tools 11.2.5,
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.2.5 .
Update also the build number to 17337674.
2021-01-22 16:37:41 +01:00
Krzesimir Nowak
82366dc61e profiles: Drop obsolete record on libnih 2021-01-21 17:57:37 +01:00
Krzesimir Nowak
2e849b27c5 coreos-base/hard-host-depends: Drop dependency on libnih
It used to be a dependency of upstart and ureadahead, both dropped
long long time ago. Also drop nih-dbus-tool, which was built from
upstart too.

Found this out when updated profiles in portage-stable masked the
library.
2021-01-21 17:57:37 +01:00
Sayan Chowdhury
b24a61edf5 sys-apps/systemd: Fix the DefaultTasksMax patch to default to 100%
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-21 15:55:53 +05:30
Sayan Chowdhury
0a7ffd5229 Merge pull request #790 from kinvolk/sayan/update-systemd
sys-apps/systemd: Update to systemd v247
2021-01-21 12:49:13 +05:30
Sayan Chowdhury
f0c0fe10af sys-apps/systemd: Update to systemd v247
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-20 12:04:33 +00:00
Sayan Chowdhury
1cbe7c1fd2 sys-block/open-iscsi: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-20 10:04:27 +00:00
Sayan Chowdhury
c73b19d504 sys-block/open-iscsi: Sync from Gentoo
sync ref: 3e85eb9a786a79658e0abdb357f92f06ebf2a154

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2021-01-20 09:44:48 +00:00
Krzesimir Nowak
7992b94560 app-emulation/open-vmdk: Update
Replace the use of deprecated git eclass with git-r3 and bump the
commit version to latest version. This version dropped a dependency on
jq.

It is a breaking change for users of mkova.sh, since it has changed
the order of parameters to allow passing multiple vmdk files to it.
2021-01-19 12:58:00 +01:00
Dongsu Park
4ff2518ba3 Merge pull request #782 from kinvolk/dongsu/curl-7.74
profiles: disable cxx for net-libs/nghttp2
2021-01-19 12:41:33 +01:00
Dongsu Park
9375f927fc profiles: disable cxx for net-libs/nghttp2
When building `net-libs/nghttp2` needed by curl 7.74, build fails
when checking for prerequisites of boost libs.

```
configure:20402: checking whether the Boost::ASIO library is available
configure:20433: x86_64-cros-linux-gnu-g++ -std=c++14 -c -O2 -pipe
-mtune=generic -g   conftest.cpp >&5
configure:20433: $? = 0
configure:20447: result: yes
configure:20540: error: Could not find a version of the library!
```

To avoid such issues, we should disable the `cxx` USE flag for
`net-libs/nghttp2`.
2021-01-18 18:23:37 +01:00
Marga Manterola
c0e950abc9 Merge pull request #785 from kinvolk/linux-5.10.8-main
Upgrade Linux Kernel in main from 5.10.7 to 5.10.8
2021-01-18 12:21:29 +01:00
Kai Lüke
168c59752f Merge pull request #774 from kinvolk/kai/use-go-1.13-for-docker
app-emulation/(docker*|containerd): Revert to Go 1.13
2021-01-18 11:57:00 +01:00
Flatcar Buildbot
ddc4dac853 sys-kernel: Upgrade coreos-kernel 5.10.7 to 5.10.8 2021-01-18 07:59:25 +00:00
Krzesimir Nowak
03d24ee62c Merge pull request #780 from kinvolk/krnowak/syslinux-url
sys-boot/syslinux: Update the SRC_URI to use kernel.org directly
2021-01-17 16:13:39 +01:00
Krzesimir Nowak
0852e93c07 dev-libs/openssl: Drop bindist from RESTRICT variable
It's really a hindrance during bootstrap, and we would be looking into
ways of making an exception for openssl anyway. Using
package.accept_restrict file does not do the trick, apparently because
of catalyst using its own portage config.
2021-01-15 14:10:19 +01:00
Krzesimir Nowak
afae905dfa sys-boot/syslinux: Update the SRC_URI to use kernel.org directly
It seems that there is no "kernel" mirror specified in third party
mirrors files in profiles any more. And gentoo seems to have switched
to direct kernel.org URLs anyway, probably because kernel.org is using
also some mirroring system, so we don't have to. Also, this syslinux
version is quite old, so if its tarball ever was on distfiles mirror,
it's gone by now.
2021-01-15 14:08:00 +01:00
Margarita Manterola
724a868e10 dev-lang/rust: Fix patch name 2021-01-14 12:19:05 +01:00
Margarita Manterola
4ba48d93d3 dev-lang/rust: Move TargetResult to Target in our local patch
The target methods have undergone significant refactoring. The return
value is no longer a TargetResult, it's just a Target. And also the
vendor is now part of the options.
2021-01-14 11:50:24 +01:00
Kai Lüke
2aaec9f0f5 app-emulation/(docker*|containerd): Revert to Go 1.13
When Docker/containerd binaries are compiled with Go 1.15 the
containers generate many signal 23 (SIGURG) events which flood
monitoring systems:
  https://github.com/kubernetes/kops/issues/10388
The SIGURG signal does not kill the process but is generated by Go
runtime scheduling:
  https://go.googlesource.com/proposal/+/master/design/24543-non-cooperative-preemption.md)
Because the Go runtime does not know if the process expects external
SIGURG signals, the signal is not filtered out but reported to the
process: https://github.com/golang/go/issues/37942
The process has to filter this signal out itself before forwarding it
to, e.g,. children processes or logs.
This change was introduced with the Go 1.15 update (actually Go 1.14
but Flatcar skipped that for Stable), however, while containerd has
some workarounds in place, e.g., in
https://github.com/containerd/containerd/pull/4532 but there are still
areas where the signal is not handled correctly.
Until this is the case, downgrade to use the Go 1.13 compiler for
Docker/containerd binaries.

See https://github.com/kinvolk/Flatcar/issues/315
2021-01-13 15:27:24 +01:00
Marga Manterola
b3d97f7eb0 Merge pull request #765 from kinvolk/rust-1.49.0-main
Upgrade dev-lang/rust in main from 1.48.0 to 1.49.0
2021-01-13 10:46:29 +01:00
Marga Manterola
cd0f74d157 Merge pull request #777 from kinvolk/linux-5.10.7-main
Upgrade Linux Kernel in main from 5.10.4 to 5.10.7
2021-01-13 10:45:46 +01:00
Flatcar Buildbot
f8301ebf2d sys-kernel: Upgrade coreos-kernel 5.10.4 to 5.10.7 2021-01-13 07:57:23 +00:00
Dongsu Park
9a4dd68239 dev-util/bsdiff: fix heap overflow vulnerability CVE-2020-14315
Fix a heap overflow vulnerability in bspatch included in bsdiff.

Originally the security issue was published as [FreeBSD-SA-16:29](https://www.freebsd.org/security/advisories/FreeBSD-SA-16:29.bspatch.asc),
which pointed to a FreeBSD [patch](https://security.freebsd.org/patches/SA-16:29/bspatch.patch).
However, the patch was a set of huge changes including other unrelated
changes. That's why it was not simple at all to apply the patch to
bsdiff. Both Gentoo and Flatcar have not included the fix.

Fortunately X41 D-SEC [examined](https://www.x41-dsec.de/security/news/working/research/2020/07/15/bspatch/)
the issue again, and nailed down to a simple patch that can be easily
applied to other trees. We simply take the patch with minimal changes.

See also [CVE-2020-14315](https://nvd.nist.gov/vuln/detail/CVE-2020-14315).
2021-01-12 17:14:44 +01:00
Dongsu Park
4f4a76a1a2 Merge pull request #772 from kinvolk/dongsu/github-actions-envvar-string
.github: fix env vars and sed expressions
2021-01-12 17:14:05 +01:00
Dongsu Park
b41e27188f .github: escape dot correctly in sed expressions
So far all sed expressions have used correct regular expressions around
semantic versions, around `.`. As a result, they matched strings even
without correct dots in place.

We need to escape the dot correctly.
2021-01-12 13:36:00 +01:00
Dongsu Park
0a93596e4a .github: pass env variables explicitly as string
Since Kernel 5.10, Github Actions simply stopped working.
What happens is that `KV_MAIN` gets passed as environmental variable to
the inline script, but not as string but float, because it contains `.`.
Apparently the last digit of the misinterpreted float number is
afterwards simply dropped by YAML parsing library used by GA.
As a result, `KV_MAIN` becomes `5.1` instead of `5.10`, `versionMain`
becomes simply `5.10`, not `5.10.6`. Then in the next steps,
both `VERSION_NEW` and `VERSION_OLD` become `5.10`, and the script
thinks it is already the latest version, so simply does not create a new
pull request.

It was not an issue when Kernel version is <= 5.9, because no digit
got dropped from the variable. Now the hidden issue was uncovered.

Simply set `KV_MAIN` or others explicitly as strings, by adding quotes,
to avoid such issues.
2021-01-12 13:35:50 +01:00
Kai Lüke
0b91fe4603 app-emulation/containerd: Add upstream service file settings
The service file was missing some options from
https://github.com/containerd/containerd/blob/master/containerd.service
2021-01-11 12:41:23 +01:00
Kai Lüke
8727d0fc62 app-emulation/containerd: Switch to default socket location
The upstream socket is under /run/containerd/containerd.sock which many
tools like crictl will use by default and diverging causes users to
always have to configure a non-default location.
Switch to the upstream default while still keeping a symlink so that
users are not forced to update their configurations they had to do for
the non-default location. This also keeps Docker using the old socket
location as an assertion that the symlink works. The state directory
is also switch to the default location.
2021-01-11 12:09:41 +01:00
Kai Lüke
e4760d942c sys-apps/systemd: Switch back to using a merged /etc/resolv.conf
Using only 127.0.0.53 for /etc/resolv.conf causes problems for
Kubernetes which is not systemd-resolved aware yet (the kubelet passes
on /etc/resolv.conf contents to containers).
Switch back for now to merging all DNS servers into /etc/resolv.conf
which breaks split DNS and we need to document how to make split DNS
work for those that want it.
2021-01-08 13:29:12 +01:00
Kai Lüke
79878e9388 coreos-base/afterburn: Restart on failure and keep unit active
When the metadata server is unavailable for some time the service did
not retry. Also, the service was triggered possibly multiple times
each time another service pulled it in which can cause problems if,
e.g., the service experiences a failure and corrupts the existing file
which could have been kept because rerunning wasn't needed.

Fixes https://github.com/kinvolk/Flatcar/issues/311
2021-01-07 20:20:41 +01:00
Kai Lüke
ebba6e5e1a app-emulation/containerd: Disable shim debug logs
Debug output clutters the logs which with K8s liveness/readiness probes
quickly becomes a problem.

Fixes https://github.com/kinvolk/Flatcar/issues/313
2021-01-06 12:49:20 +01:00
Flatcar Buildbot
28c90ee8b9 dev-lang: Upgrade dev-lang/rust 1.48.0 to 1.49.0 2021-01-05 08:02:08 +00:00
Kai Lüke
e4cfa10306 sys-apps/baselayout: Point to latest repo state
This pulls in
https://github.com/kinvolk/baselayout/pull/10
https://github.com/kinvolk/baselayout/pull/14
https://github.com/kinvolk/baselayout/pull/11
to configure systemd-resolved.
2021-01-04 19:14:22 +01:00
Kai Lüke
29ba53843b Merge pull request #730 from f0o/issue-285-full
Update systemd-9999.ebuild to use systemd-resolved's stub resolver
2021-01-04 19:10:39 +01:00
Marga Manterola
0f7d620c01 Merge pull request #759 from kinvolk/firmware-20201218-main
Upgrade Linux Firmware in main from 20201118 to 20201218
2021-01-04 18:53:00 +01:00
Marga Manterola
63d3279946 Merge pull request #760 from kinvolk/marga-kinvolk/linux-5.10.4
Move main to kernel 5.10.4
2021-01-04 18:50:14 +01:00
Margarita Manterola
015d4701ef Move to kernel 5.10
With this change, we start tracking linux 5.10. Only a couple of config
changes were necessary:

1. Explicitly include `CONFIG_IP6_NF_IPTABLES`, as it's no longer
   implicitly included.
   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=144b0a0e608690d46e9a77819249bdd8d23bdcb6

2. Move `CONFIG_EFI_VARS` to amd64 only, as it's no longer available on
   non Intel platforms. It's been replaced by `CONFIG_EFIVARS_FS` which
   is already enabled on the common config.
   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=963fabf37f6a94214a823df0a785e653cb8ad6ea
2021-01-04 18:49:28 +01:00
Margarita Manterola
181c13bddc Track latest init commit
Needed for kinvolk/Flatcar#278
2021-01-04 17:44:22 +01:00
Flatcar Buildbot
d11f86c31c sys-kernel: Upgrade Linux Firmware 20201118 to 20201218 2020-12-24 07:22:34 +00:00
Dongsu Park
6c2015484a sys-kernel: enable CONFIG_DEBUG_INFO_BTF
CONFIG_DEBUG_INFO_BTF enables debug info for BTF (BPF Type Format) and
CO-RE (BPF compile once, run everywhere).

See also https://github.com/kinvolk/Flatcar/issues/225.
2020-12-18 10:44:25 +01:00
Dongsu Park
842daeb3d2 Merge pull request #747 from kinvolk/rust-1.48.0-main
Upgrade dev-lang/rust in main from 1.47.0 to 1.48.0
2020-12-17 12:40:51 +01:00
Dongsu Park
84b0d50108 Merge pull request #743 from kinvolk/linux-5.9.14-main
Upgrade Linux Kernel in main from 5.9.12 to 5.9.14
2020-12-16 08:02:51 +01:00
Dongsu Park
8fa4a13cb5 Merge pull request #664 from kinvolk/dongsu/sqlite-gentoo
dev-db/sqlite: move to portage-stable
2020-12-15 14:26:03 +01:00
Kai Lüke
eb0bb3ba0c sys-apps/baselayout: Point to latest repo state
This pulls in
https://github.com/kinvolk/baselayout/pull/13
to set sysctl rp_filter=0 and reorder how the configs are applied.
2020-12-15 11:48:38 +01:00
Kai Lüke
fc82b5c839 Merge pull request #746 from kinvolk/kai/systemd-drop-sysctl-patches
sys-apps/systemd: Drop sysctl rp_filter patches
2020-12-15 11:16:20 +01:00
Dongsu Park
dc53e59e55 dev-lang/rust: adjust patches for 1.48.0
Adjust third-party patches to fix build issues.
2020-12-15 08:51:39 +01:00
Flatcar Buildbot
f20064e51a dev-lang: Upgrade dev-lang/rust 1.47.0 to 1.48.0 2020-12-15 07:43:37 +00:00
Dongsu Park
3455ae56ec Merge pull request #735 from kinvolk/firmware-20201118-main
Upgrade Linux Firmware in main from 20200918 to 20201118
2020-12-15 07:39:45 +01:00
Kai Lüke
86afa84167 sys-apps/systemd: Drop sysctl rp_filter patches
The patches were not taking effect because they did not set
net.ipv4.conf.default.rp_filter for new interfaces. Also, they got
overwritten by the baselayout configuration which takes precedence
and is the place for Flatcar-specific sysctl settings.
The desired configuration was enfored there:
https://github.com/kinvolk/baselayout/pull/13
2020-12-14 20:50:37 +01:00
Flatcar Buildbot
d5d99ca731 sys-kernel: Upgrade coreos-kernel 5.9.12 to 5.9.14 2020-12-12 07:24:43 +00:00
Dongsu Park
7ec2d64d25 dev-vcs/repo: enable keywords for Flatcar
Enable keywords `amd64` and `arm64` for Flatcar.

It is based on the previous commit:
[ea5698d5879f](https://github.com/kinvolk/coreos-overlay/commit/ea5698d5879f)
("Add arm64 keywords")
2020-12-11 15:26:59 +01:00
Dongsu Park
d229df3c79 dev-vcs/repo: sync with Gentoo for repo 2.8
The [repo v2.10](https://groups.google.com/g/repo-discuss/c/rpSfMCl83Sk)
was released dropping python2 support. As a result, every `repo init`
failed to run. To unblock CI builds, we released mantle
[v0.15.2](https://github.com/kinvolk/mantle/releases/tag/v0.15.2),
including a workaround to set the target branch to
[`maint`](https://gerrit.googlesource.com/git-repo/+/refs/heads/maint),
which still supports python2. Now with cork v0.15.2, `cork create` or
`cork update` will work well for now.

However, the current state is quite fragile. It will get broken again
when the upstream `maint` branch changes. We should update
`dev-vcs/repo` in coreos-overlay to 2.x with python3, and get it
included in Flatcar SDK, so we could later set the target branch in
mantle back to `stable`.

At the moment, none of the source repos has the tarball for repo 2.10,
neither GCS nor Gentoo distfiles. So for now we update it to 2.8.
It will be linked to python 3.6 in Flatcar SDK.

Also note that we do not have to keep `files/repo-1.25` script in the
coreos-overlay repo, because the script is simply identical to the
upstream `repo` script. I am not sure why the third-party script was
there in the first place. So simply remove the script.
2020-12-11 15:26:57 +01:00
Kai Lüke
ca5095f497 app-emulation/containerd: Enable the CRI plugin
Kubernetes uses containerd through the cri plugin which currently is
disabled due to it listening on a TCP port. Now the plugin is not
listening on a TCP port anymore but uses the same socket as gRPC.
We have documented how to enable it in
https://kinvolk.io/docs/flatcar-container-linux/latest/container-runtimes/switching-from-docker-to-containerd-for-kubernetes/
but it should work by default.

Fixes https://github.com/kinvolk/Flatcar/issues/283
2020-12-11 13:03:27 +01:00
Flatcar Buildbot
aa0b1e443d sys-kernel: Upgrade Linux Firmware 20200918 to 20201118 2020-12-10 07:09:38 +00:00
Dongsu Park
33bd8598d5 Merge pull request #732 from kinvolk/dongsu/pam-1.5.1
sys-libs/pam: update to 1.5.1, fix auth issues
2020-12-09 18:09:12 +01:00
Dongsu Park
018f7dc11e sys-apps/baselayout: fix auth issue with pam 1.4
Without the fix, no ssh login works, no console login works.
2020-12-09 18:08:41 +01:00
Dongsu Park
b6784e0c3e Merge pull request #733 from kinvolk/dongsu/github-actions-firmware
.github: add Github Actions for auto-updating linux-firmware
2020-12-09 18:05:49 +01:00
Dongsu Park
7b6879079e Merge pull request #728 from kinvolk/dongsu/bsdiff-CVE-2014-9862
dev-util/bsdiff: sync with Gentoo for integer signedness error
2020-12-09 18:04:18 +01:00
Dongsu Park
57e725117f sys-libs/pam: use PATCHES for third-party patches
We should use PATCHES for the list of third-party patches, especially
for EAPI=7.
2020-12-09 14:51:36 +01:00
Krzesimir Nowak
5515bbfefb sys-auth/polkit: Replace virtual/pam with sys-libs/pam
We are getting rid of the virtual/pam package. The package provided a
dependency on one of pam or openpam. It looks like Gentoo dropped
openpam, making virtual/pam unnecessary. Also, existence of
virtual/pam causes some circular dependencies to manifest during
emerging.
2020-12-09 14:51:36 +01:00
Krzesimir Nowak
f8db3e5f92 sys-auth/google-oslogin: Replace virtual/pam with sys-libs/pam
We are getting rid of the virtual/pam package. The package provided a
dependency on one of pam or openpam. It looks like Gentoo dropped
openpam, making virtual/pam unnecessary. Also, existence of
virtual/pam causes some circular dependencies to manifest during
emerging.
2020-12-09 14:51:36 +01:00
Krzesimir Nowak
dcb37a9320 app-emulation/open-vm-tools: Update a comment about pam
We are getting rid of the virtual/pam package. The package provided a
dependency on one of pam or openpam. It looks like Gentoo dropped
openpam, making virtual/pam unnecessary. Also, existence of
virtual/pam causes some circular dependencies to manifest during
emerging. This package does not depend on virtual/pam outright, but
let's avoid having an out-of-date comment.
2020-12-09 14:51:36 +01:00
Krzesimir Nowak
34d4663480 sys-auth/pambase: Add README.md 2020-12-09 14:51:36 +01:00
Krzesimir Nowak
be676d7d13 sys-auth/pambase: Bump dep versions 2020-12-09 14:51:36 +01:00
Krzesimir Nowak
aec4bfa44f sys-auth/pambase: Update stub version
The version now matches what is in Gentoo, despite being almost, but
not quite, entirely unlike upstream recipe. The rename is needed,
because some packages may depend on a newer pambase after they are
updated.
2020-12-09 14:51:36 +01:00
Krzesimir Nowak
035c9ad5ce sys-libs/pam: Add README.md 2020-12-09 14:51:33 +01:00
Dongsu Park
38004f9962 .github: add Github Actions for auto-updating linux-firmware
Add Github Actions for coreos-firmware, just like other Kernel packages,
basically to detect new releases from the upstream linux-firmware repo.
2020-12-09 14:36:07 +01:00
Krzesimir Nowak
a0156ce756 sys-libs/pam: Make /sbin/unix_chkpwd suid
This is to avoid importing fcaps eclass which adds a dependency on
sys-libs/libcap, which in turn depends on sys-libs/pam. To get out of
this conundrum, we could specify a "-filecaps" use flag for
sys-libs/pam. Problem with this solution would be no capability
override for the binary making it unable to read /etc/shadow. Thus we
make the binary suid. This is strictly less secure than overriding its
capabilities, but I have no idea how to solve it in a less hacky way.
2020-12-08 18:40:03 +01:00
Krzesimir Nowak
660d0f310b sys-libs/pam: Install configuration into /usr
Also provide a tmpfiles fragment to bring it back.
2020-12-08 18:40:03 +01:00
Krzesimir Nowak
77d03afebf sys-libs/pam: Locked accounts functionality 2020-12-08 18:40:03 +01:00
Krzesimir Nowak
e13fd9d00b sys-libs/pam: Add a comment about a base version of the recipe 2020-12-08 18:40:03 +01:00
Krzesimir Nowak
8a585bd57a sys-libs/pam: Import pam 1.5.1 from gentoo
Import sys-libs/pam 1.5.1 from upstream Gentoo, mainly to address
CVE-2020-27780, a flaw in the way it handles empty passwords for
non-existing users. When the user doesn't exist PAM try to authenticate
with root and in the case of an empty password it successfully
authenticate.

https://github.com/linux-pam/linux-pam/issues/284
https://github.com/linux-pam/linux-pam/pull/300
2020-12-08 18:39:58 +01:00
Dongsu Park
f940214eff Merge pull request #729 from kinvolk/dongsu/delete-jpeg
profiles: disable jpeg for qemu
2020-12-07 17:19:10 +01:00
Flatcar Buildbot
a0f2fe0981 dev-lang: Upgrade Go 1.15.5 to 1.15.6 2020-12-07 07:34:41 +00:00
Daniel Preussker
f23b12e478 Update systemd-9999.ebuild 2020-12-04 18:31:51 +01:00
Dongsu Park
b0de6ba96e profiles: disable jpeg for qemu
Qemu has enabled `jpeg` USE flag since the beginning, without any
reason specified. As a result, qemu pulls in unnecessary packages,
`virtual/jpeg` as well as `media-libs/libjpeg-turbo`. However,
Flatcar runs qemu always with `-display none` option. So the `jpeg`
flag is not needed at all.

Simply remove `jpeg` USE flag from qemu.
2020-12-04 16:39:54 +01:00
Dongsu Park
50bfd50100 dev-util/bsdiff: apply Flatcar changes
Apply existing Flatcar changes on top of vanilla Gentoo ebuilds.
Basically add arm64 keyword, and apply the sais patch.

It is based on the following commits:

[4ee6aa895a02](https://github.com/kinvolk/coreos-overlay/commit/4ee6aa895a02) ("Add arm64 keywords")
[60d47e7359d1](https://github.com/kinvolk/coreos-overlay/commit/60d47e7359d1) ("Change suffix sort to sais-lite")
2020-12-04 15:18:47 +01:00
Dongsu Park
9084674ac6 dev-util/bsdiff: sync with Gentoo
Before applying Flatcar patches to bsdiff, sync with upstream Gentoo,
so the ebuilds could make use of EAPI=7.
Also drop third-party patches, to be able to start from scratch.

Doing that we can fix [CVE-2014-9862](https://nvd.nist.gov/vuln/detail/CVE-2014-9862),
integer signedness error in bspatch.c. With the vulnerability, remote
attackers to execute arbitrary code or cause a denial of service
(heap-based buffer overflow) via a crafted patch file.
Since Gentoo already has the third-party patch, we can simply make
use of it.

See also https://bugs.gentoo.org/701848 ,
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4d7646f1d69 .
2020-12-04 14:21:52 +01:00
Dongsu Park
728b8e7495 app-editors/vim: do not create symlink vimdiff for minimal
A symlink `vimdiff` should not be created, if the USE flag `minimal` is
enabled. Otherwise running `vimdiff` results in failure like that:

```
$ vimdiff aaa bbb
This Vim was not compiled with the diff feature.
```
2020-12-04 11:15:40 +01:00
Flatcar Buildbot
6df883d44f app-emulation: Upgrade Containerd 1.4.1 to 1.4.3 2020-12-04 08:25:37 +00:00
Dongsu Park
8416681a02 Merge pull request #723 from kinvolk/linux-5.9.12-main
Upgrade Linux Kernel in main from 5.9.11 to 5.9.12
2020-12-03 17:42:27 +01:00
Kai Lüke
5c767b1d5b coreos-base/update_engine: Point to latest repo state
This pulls in
https://github.com/kinvolk/update_engine/pull/8
to support sending a machine alias to the update server.
2020-12-03 14:27:42 +01:00
Flatcar Buildbot
d148caec5c sys-kernel: Upgrade coreos-kernel 5.9.11 to 5.9.12 2020-12-03 07:24:51 +00:00
Flatcar Buildbot
49c76eee31 app-emulation: Upgrade Docker 19.03.13 to 19.03.14 2020-12-02 07:44:41 +00:00
Dongsu Park
ed8e99c33b .github: use create-pull-request@v3 to fix set-env issues
Github Actions for Rust started failing with following errors:

```
Error: Unable to process command '::set-env name=PULL_REQUEST_NUMBER::718' successfully.
Error: The `set-env` command is disabled. Please upgrade to using
Environment Files or opt into unsecure command execution by setting the
`ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For
more information see:
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
```

It happens because we have used peter-evans/create-pull-request@v2,
which did not have a bug fix for the set-env issue.
The bug was fixed in create-pull-request
[v3.4.1](https://github.com/peter-evans/create-pull-request/releases/tag/v3.4.1).
So we just need to update the version to `v3`, which already includes
v3.4.1.
2020-12-01 11:09:27 +01:00
Dongsu Park
6d7d458120 Merge pull request #640 from kinvolk/rust-1.47.0-main
dev-lang: Upgrade Rust 1.46.0 to 1.47.0
2020-11-30 16:18:54 +01:00
Vincent Palmer
7611b33366 Enable BCMGENET as a module on arm64_defconfig-5.9 2020-11-30 08:52:32 +01:00
Kai Lüke
a0b27d994e Merge pull request #716 from shift/shift-patch-1
Enable BCM7XXX_PHY as a module on arm64_defconfig-5.9
2020-11-27 19:05:05 +09:00
Vincent Palmer
1d063987c5 Enable BCM7XXX_PHY as a module on arm64_defconfig-5.9
# Enables Raspberry Pi 4 PHY

The following 1 line change enables the kernel module to be build enabling the Raspberry Pi 4 PHY enabling the on-board NIC.

# How to use

Build it and boot it :)

# Testing done

Validated the config change against known working 5.8.y kernels on the Pi4.
2020-11-27 10:41:26 +01:00
Kai Lüke
cd2e39891e coreos-base/coreos-init: Point to latest repo state
This pulls in
https://github.com/kinvolk/init/pull/32
to change the LTS motd information.
2020-11-27 12:44:14 +09:00
Sayan Chowdhury
6b7d73387a Merge pull request #711 from kinvolk/sayan/fix-dev-container-download-path-release
x11-drivers/nvidia-drivers: Fix the dev container download URL
2020-11-26 17:58:45 +05:30
Thilo Fromm
3f9db23702 Merge pull request #708 from kinvolk/linux-5.9.11-main
Upgrade Linux Kernel in main from 5.9.10 to 5.9.11
2020-11-26 09:21:28 +01:00
Thilo Fromm
eac3b8e818 Merge pull request #704 from kinvolk/t-lo/update-to-glibc-2.32
update to glibc 2.32
2020-11-26 09:20:29 +01:00
Sayan Chowdhury
fd260b2e90 x11-drivers/nvidia-drivers: Fix the dev container download URL
The kola tests fails to download during the release because the
artifacts of the release has not been pushed to the website yet.
This adds the logic to check if the URL is 200, then only download
or else fallback to the GCS bucket url.

This commit also changes a bug with the check to see if nvidia
is installed or required.

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-11-26 12:45:23 +05:30
Sayan Chowdhury
2c39bb10aa Merge pull request #710 from kinvolk/sayan/add-azure-gpu-support-on-main
Add the support for GPU on Azure
2020-11-25 19:39:02 +05:30
Sayan Chowdhury
9dd4df789e Add the support for GPU on Azure - Flatcar Pro
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-11-25 18:46:32 +05:30
Thilo Fromm
7e6cb983a8 net-fs/samba-4.11.13: add patch to fix build breakage with glibc-2.32
This commit adds amba-4.11-fix-glibc-2.32-function-collisions.patch
which fixes compile breakage in a test shipped with Samba-4.11.
The test defines functions which are now shipped with glibc-2.32.
2020-11-25 12:41:20 +01:00
Thilo Fromm
d937cff9a7 coreos-devel/fero-client: fix grpc-sys-0.2.3 + glibc-2.32 compile issue
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-25 12:41:20 +01:00
Thilo Fromm
84cca56fbd sys-libs/libselinux: un-break build with >=glibc-2.30
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-25 12:41:09 +01:00
Thilo Fromm
7f781099dd sys-libs/glibc-2.32,targets/sdk: backport to EAPI6, add Flatcar changes
Backport the glibc recipe to EAPI6 to work around BDEPEND emerge
issue, add flatcar specific changes to the build recipe.
Move PYTHON_DEPS to DEPEND so things can build.

Don't run sanity checks in pkg_pretend
(similar change as in glibc-2.29) to prevent
gcc checks when only the binary package is installed.

Also, force the "crypt" use flag for all builds so libcrypt is built.
(Upstream gentoo does the same)

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-25 12:35:53 +01:00
Flatcar Buildbot
8891a27a1e sys-kernel: Upgrade coreos-kernel 5.9.10 to 5.9.11 2020-11-25 07:22:56 +00:00
Haitao Li
af01922714 kernel: Enable HOTPLUG_PCI_ACPI for arm64 2020-11-25 12:33:17 +11:00
Thilo Fromm
ae57f04c83 sys-libs/glibc: import Gentoo upstream 2.32
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-24 20:07:03 +01:00
Thilo Fromm
5b89af81d8 Merge pull request #700 from kinvolk/linux-5.9.10-main
Upgrade Linux Kernel in main from 5.9.8 to 5.9.10
2020-11-24 14:21:07 +01:00
Kai Lüke
aab1e0773c sys-apps/baselayout: Point to latest repo state
This pulls in
https://github.com/kinvolk/baselayout/pull/8
to add tmpfile directives for for /opt and /opt/bin
2020-11-24 14:27:43 +09:00
Flatcar Buildbot
47d4197e87 sys-kernel: Upgrade coreos-kernel 5.9.8 to 5.9.10 2020-11-23 07:22:51 +00:00
Thilo Fromm
7b0bad618f sys-(devel|libs|kernel),profiles: make upstream gdb work, add gcc-9.3.0 changes
This PR includes the necessary changes to upgrade the SDK compiler to gcc-9.3.0.
It also changes the gdb-9.2 recipe to work with the Flatcar SDK.

The changes include:

sys-devel/gdb/gdb-9.2.ebuild: use EAPI6 to work around BDEPEND emerge bug
update sys-libs/nss-usrfiles to nss-usrfiles-2.30.ebuild to support glibc > 2.29
update sys-kernel/README.md to call out need for updating kernel-headers, perf
add sys-libs/glibc/README.md outlining our changes to the glibc recipe
update profiles/coreos/base/package.accept_keywords to include new toolchain

The change also adds a README to
sys-libs/glibc/README.md
and it improves on a README in
sys-kernel/README -> sys-kernel/README.md

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-18 14:51:35 +01:00
Thilo Fromm
abbb97f075 sys-devel: import upstream gdb-9.2, strace-5.9
Import upstream recipes to enable gcc-9.3.0 builds.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-18 14:35:35 +01:00
Kai Lüke
9f84992c21 Merge pull request #689 from kinvolk/kai/extend-filesystem-race
coreos-base/coreos-init: Update to latest repository state
2020-11-18 20:43:55 +09:00
Kai Lüke
f3d421f45d coreos-base/coreos-init: Update to latest repository state
This pulls in
https://github.com/kinvolk/init/pull/31
to make extend-filesystems more robust against a race.
2020-11-18 20:43:30 +09:00
Dongsu Park
233ba141b8 Merge pull request #690 from kinvolk/dongsu/sdk-dwarves
profiles: make SDK include dev-util/dwarves
2020-11-18 12:33:25 +01:00
Dongsu Park
44ac3dbd92 Merge pull request #691 from kinvolk/dongsu/kernel-configs-20201117
sys-kernel: enable BPF_JIT, POWER_SUPPLY, overlayfs options
2020-11-18 11:23:51 +01:00
Dongsu Park
8243944c99 sys-kernel: enable metacopy and redirect_dir for overlayfs
Enable CONFIG_OVERLAY_FS_METACOPY, metadata only copy up feature
in overlayfs. When turned on, overlayfs will only copy up metadata
when a metadata specific operation like chown/chmod is performed.
Full file will be copied up later when file is opened for WRITE
operation. More or less like delayed data copy up operation.

Enable CONFIG_OVERLAY_FS_REDIRECT_DIR, which is equivalent to
"redirect_dir=on" in the kernel command-line. When turned on, overlayfs
will copy up directory first, before the actual contents.

See also https://github.com/kinvolk/Flatcar/issues/170
2020-11-17 16:25:16 +01:00
Dongsu Park
935f8c0c10 profiles: make SDK include dev-util/dwarves
To build Kernel with `CONFIG_DEBUG_INFO_BTF`, we need to make `pahole`
in dwarves included in the Flatcar SDK.

To do that, we need to make it accept `~amd64` keywords for dwarves
and binutils.
Also enable USE flag `python_single_target_python3_6` for dwarves.
2020-11-17 15:47:23 +01:00
Dongsu Park
92a5bb56e8 sys-kernel: enable CONFIG_POWER_SUPPLY
CONFIG_POWER_SUPPLY enables power supply class used to represent
battery, UPS, AC or DC power supply properties to user-space.
It defines core set of attributes, which should be applicable to
most power supplies out there.

See also https://github.com/kinvolk/Flatcar/issues/215.
2020-11-17 15:02:28 +01:00
Dongsu Park
50fdab4387 sys-kernel: enable CONFIG_BPF_JIT_ALWAYS_ON
CONFIG_BPF_JIT_ALWAYS_ON enables BPF JIT and removes BPF interpreter
to avoid speculative execution of BPF instructions by the interpreter.

See also https://github.com/kinvolk/Flatcar/issues/185.
2020-11-17 15:01:27 +01:00
Thilo Fromm
ac93ed4f5d Merge pull request #683 from kinvolk/t-lo/update-bzip2-tp-1.0.8-r1
bzip2: update to 1.0.8-r1
2020-11-17 14:23:24 +01:00
Thilo Fromm
02cca6360a app-arch/bzip2: update to 1.0.8-r1
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-17 13:58:09 +01:00
Kai Lüke
20712d803b sys-apps/seismograph: Update to latest repo state
This pulls in
https://github.com/kinvolk/seismograph/pull/5
to fix a typo in the usage output.
2020-11-17 20:24:34 +09:00
Thilo Fromm
f620c9fc23 Merge pull request #687 from kinvolk/t-lo/update-to-ntp-4.2.8_p15
update to ntp-4.2.8_p15
2020-11-16 15:46:33 +01:00
Thilo Fromm
f0fda0860a net-misc/ntp/Manifest: remove spurious _p13 hashes 2020-11-16 14:47:44 +01:00
Thilo Fromm
0a9034480a net-misc/ntp-4.2.8_p15: Apply CoreOS changes
- Check out our previous ntp.conf and service units
  - Disable USE=threads
  - Add USE=perl, disabled to skip the scripts subdir
  - Do the /etc -> /usr/share + tmpfiles dance for ntp.conf
  - Drop unused init scripts and pkg_postinst-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-16 13:50:41 +01:00
Thilo Fromm
a2036f5771 net-misc/ntp: ingest gentoo upstream 4.2.8_p15
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-16 13:46:10 +01:00
Dongsu Park
dd15b2ee4d eclass: remove also other optimization flags with -Wl,-O*
We need to filter not only `-Wl,-O1`, but also other flags like
`-Wl,-O2`, `-Wl,-Og`, `-Wl,-Os`, etc. Otherwise, SDK build would fail,
for example, as its default `$LDFLAGS` includes `-Wl,-O2`.

We need to manually strip only the optimization element of
comma-separated flags, e.g. from `-Wl,-O1,-s` to `-Wl,-s`.
To support multiple characters that can follow `-O`, e.g. `-Ofast`,
we should use regexp like `[[:alnum:]]*`.
2020-11-16 13:07:04 +01:00
Thilo Fromm
dc242f0fc9 Merge pull request #684 from kinvolk/t-lo/patch-trousers
trousers: add patch to fix CVE issues
2020-11-16 09:18:16 +01:00
Dongsu Park
1310b3b004 Merge pull request #680 from kinvolk/linux-5.9.8-main
Upgrade Linux Kernel in main from 5.9.1 to 5.9.8
2020-11-13 17:43:42 +01:00
Dongsu Park
b561d71285 .github: fix mantle URL for downloading cork
The repo `github.com/flatcar-linux/mantle` has been moved to
`github.com/kinvolk/mantle`. However, Github Actions still fetch cork
binaries from the original URL, by running `curl` without `-L`. So the
request does not get redirected to the new URL. As a result,
`CORK_VERSION` becomes null.

Fix it by replacing `flatcar-linux` with `kinvolk`, as well as adding
`-L` to the curl command, just in case.
2020-11-13 16:52:22 +01:00
Thilo Fromm
0e753a02f8 app-crypt/trousers: add patch for CVEs
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-13 16:44:29 +01:00
Dongsu Park
da29970ce8 Merge pull request #681 from kinvolk/dongsu/open-vm-tools-11.2.0
app-emulation/open-vm-tools: update to 11.2.0
2020-11-13 16:29:19 +01:00
Dongsu Park
758512c7a0 Merge pull request #677 from kinvolk/go-1.15.4-main
Upgrade Go in main from 1.15.3 to 1.15.5
2020-11-13 15:34:19 +01:00
Dongsu Park
5f7126329e eclass: remove -Wl,-O1 from LDFLAGS passed to go_export
Go 1.15.5 fixed a security issue CVE-2020-28366, by rejecting certain
LDFLAGS for CGO. See https://github.com/golang/go/issues/42559.

However, that change breaks builds based on the Flatcar build chain,
because `go_export` sets `$LDFLAGS` to `-Wl,-O1 -Wl,--as-needed`.
As a result, Go build fails like:

```
go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
```

We need to remove the flag `-Wl,-O1` from $LDFLAGS before building the
Go runtime, to fix the failure.
2020-11-13 15:25:57 +01:00
Dongsu Park
0c75022065 Merge pull request #676 from kinvolk/dongsu/samba-sssd
net-fs,sys-auth: Update samba 4.11.13, sssd 2.3.1
2020-11-13 15:10:23 +01:00
Dongsu Park
e27a7f1bfe Merge pull request #675 from kinvolk/dongsu/bind-tools-gssapi
profiles: enable gssapi for bind-tools in SDK
2020-11-13 15:04:35 +01:00
Dongsu Park
d1952f9a5e Merge pull request #671 from kinvolk/dongsu/shadow-4.8
sys-apps/shadow: update to 4.8-r5, apply Flatcar changes
2020-11-13 15:00:33 +01:00
Dongsu Park
b04b8588a0 Merge pull request #678 from kinvolk/kai/keep-network-configuration
coreos-base/coreos-(cloud)init: Point to flatcar-master
2020-11-13 14:25:25 +01:00
Dongsu Park
0985aa7629 Merge pull request #682 from kinvolk/sayan/update-open-iscsi
sys-block/open-iscsi: Add the version 2.1.2
2020-11-13 13:19:00 +01:00
Dongsu Park
cedfffecc8 coreos-base/oem-vmware: update to 11.2.0
Update oem-vmware to 11.2.0, corresponding to the update of
open-vm-tools to 11.2.0.
2020-11-13 11:43:41 +01:00
Dongsu Park
c8490d71ef app-emulation/open-vm-tools: update to 11.2.0
Update open-vm-tools 11.2.0,
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.2.0 .
Update also the build number to 16938113.
2020-11-13 11:42:45 +01:00
Dongsu Park
72e72c2b3c dev-lang/go: update to 1.15.5
Update Go to 1.15.5, to fix multiple security issues,
CVE-2020-28362, CVE-2020-28367, CVE-2020-28366.

See also https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM .
2020-11-13 09:56:57 +01:00
Kai Lüke
7e877dc5e4 coreos-base/coreos-(cloud)init: Point to flatcar-master
Pulls in
https://github.com/flatcar-linux/coreos-cloudinit/pull/10
https://github.com/flatcar-linux/init/pull/30
to restore the systemd-networkd 243 behavior with
KeepConfiguration=dhcp-on-stop to prevent the network from going down
before the SIGTERM is broadcasted to orphaned processes not part of a
systemd unit.
2020-11-12 21:20:01 +09:00
Flatcar Buildbot
3606555844 sys-kernel: Upgrade coreos-kernel 5.9.1 to 5.9.8 2020-11-11 07:21:16 +00:00
Dongsu Park
f24e7e43e8 profiles: unmask gnutls from the masked packages
Now that `net-libs/gnutls` needs to be included in the images, we
also need to unmask gnutls from the generic target of profiles.
2020-11-09 13:05:36 +01:00
Dongsu Park
698e9e2a9f profiles: make net-mail/mailbase provided
Although `dev-libs/cyrus-sasl` pulls in `net-mail/mailbase`, the
mailbase package is not needed at all.
Simply mark it as provided, to make it build without mailbase.

Also enable python_single_target_python3_6 for tdb, talloc, tevent.
Remove unnecessary arm64 keywords.
Clean up unnecessary USE flags.
2020-11-09 13:05:36 +01:00
Dongsu Park
9b3d0ae4f2 sys-auth/sssd: disable realm check for nsupdate
At the moment bind-tools does not enable `gssapi`, so its `nsupdate`
tool is also not able to run `realm` command. As a result, configure
script of `sssd` fails when running `echo realm | nsupdate`, like
`syntax error`.

To avoid such issues, we need to disable the nsupdate check for now.
After we could enable `gssapi` for the SDK correctly, we can bring back
the nsupdate check in the future.
2020-11-09 13:05:36 +01:00
Dongsu Park
58ccfd5208 sys-auth/sssd: move runstatedir option from configure to make
Now that the upstream sssd 2.3.1 does not support `--runstatedir` option
from its configure script, we need to remove the option, to unblock the
configure issue like `unrecognized option --runstatedir`.
Instead we need to pass `runstatedir=` to emake commands.
2020-11-09 13:04:29 +01:00
Flatcar Buildbot
ecd238e679 dev-lang: Upgrade Go 1.15.3 to 1.15.4 2020-11-09 07:29:19 +00:00
Dongsu Park
fb4c61d5d3 profiles: enable gssapi for bind-tools in SDK
In the past we
[enabled](https://github.com/flatcar-linux/coreos-overlay/commit/172d9311bacd)
the USE flag `gssapi` only for amd64, not for arm64. We did so to
avoid build issues that only happened for arm64.

However, that change caused interesting side effects in the SDK, where
bind-tools ended up being compiled without `gssapi`. It means, tools
like `nsupdate` in the SDK are not able to deal with certain commands
like `realm`. As a result, configure scripts in packages like
`sys-auth/sssd` fail, because they cannot run commands like
"echo realm | nsupdate".

We should bring the `gssapi` USE flag back to the SDK, to avoid such
issues in the future.
2020-11-06 14:10:10 +01:00
Dongsu Park
7dbd4ac634 sys-auth/sssd: make BDEPEND independent of DEPEND
The `BDEPEND` is a build-time requirement, so it should not be included
in the whole `DEPEND` list. If it does, an installation of
`sys-auth/sssd` causes other dependencies to be installed not only in
the `/build`, but also under the SDK. That's not what we want, so we
need to exclude `BDEPEND` from the list.
2020-11-06 13:52:04 +01:00
Dongsu Park
65cab2738c sys-auth/sssd: Apply Flatcar patches
Apply Flatcar-specific changes.

Original-by: Kai Lüke <kai@kinvolk.io>
https://github.com/flatcar-linux/coreos-overlay/commit/59e7f7f6ed1b
2020-11-06 13:52:01 +01:00
Dongsu Park
6c6aa8be07 sys-auth/sssd: update to 2.2.0 sync with Gentoo
Update sys-auth/sssd, by syncing with upstream Gentoo.

Mainly needed by net-fs/samba 4.11.
Also resolves CVE-2018-16883, CVE-2019-3811, CVE-2018-16838.
2020-11-06 13:51:59 +01:00
Dongsu Park
40ac654c20 profiles: set python_single_target_python3.6 for net-fs/samba 2020-11-06 13:51:57 +01:00
Dongsu Park
a5e2bf4282 net-fs/samba: Apply Flatcar changes
- Add a minimal USE flag for only installing libraries
  - Change the Perl and Python run-time deps to build-time only
  - Drop a bunch of dependencies with broken cross-compilation
  - Enable using bundled libraries in their place
  - Disable building libraries requiring Python

Original-by: David Michael <dm0@redhat.com>
https://github.com/flatcar-linux/coreos-overlay/commit/8445f8b4386a
2020-11-06 13:51:55 +01:00
Dongsu Park
28783b1e69 net-fs/samba: update to 4.11.13, sync with Gentoo
Update net-fs/samba to 4.11.13-r1, by syncing with upstream Gentoo.

It is mainly to resolve CVE-2019-10197, CVE-2020-10704, CVE-2020-10745,
and CVE-2019-10218.
See also https://security.gentoo.org/glsa/202003-52 and
https://security.gentoo.org/glsa/202007-15 .
2020-11-06 13:51:53 +01:00
Dongsu Park
c4322159bd Merge pull request #638 from flatcar-linux/dongsu/kernel-config-psi
sys-kernel/coreos-modules: enable PSI (Pressure Stall Information)
2020-11-06 09:41:39 +01:00
Sayan Chowdhury
ae0cfca4ae sys-block/open-iscsi: Add the version 2.1.2
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-11-06 11:38:33 +05:30
Kai Lüke
eea2288fbb .github: Remove fetching unused key from gpg server
The key server currently doesn't work. Since the key is not used
currently but the key we have hosted on our web server, we can remove
this failing step to restore GitHub Actions.
2020-11-05 17:10:06 +09:00
Dongsu Park
e74f2e325d Merge pull request #669 from flatcar-linux/dongsu/dbus-glib-0.110
dev-libs/dbus-glib: update to 0.110, fix cross compile build error
2020-11-04 16:16:09 +01:00
Dongsu Park
ea970f094f sys-apps/shadow: Apply Flatcar changes
Apply Flatcar-specific changes, like below:

  - Carry over our custom tmpfiles and securetty files
  - Remove /etc files and install them to /usr, use tmpfiles
  - Switch /etc/login.defs edits to /usr/share/shadow/login.defs
  - Drop moving passwd out of /usr since we don't have split-usr
  - Drop pkg_postinst

Original-by: David Michael <dm0@redhat.com>
  6fd490ebfefd ("sys-apps/shadow: Apply CoreOS changes")
2020-11-04 16:03:39 +01:00
Dongsu Park
2d8dec749f sys-apps/shadow: update to 4.8-r5, sync with Gentoo
Update sys-apps/shadow to 4.8-r5, simply syncing with Gentoo.

It is mainly to resolve
[CVE-2019-19882](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19882).
See also https://security.gentoo.org/glsa/202008-09.
2020-11-04 16:03:35 +01:00
Dongsu Park
8881733152 sys-kernel/coreos-modules: enable PSI (Pressure Stall Information)
Enable Kernel config for PSI (Pressure Stall Information), which might
help system administrators to detect bottleneck in cpu, memory and io
in an easy way.

```
$ zgrep -i _psi /proc/config.gz
CONFIG_PSI=y

$ ls -l /proc/pressure/
-r--r--r--. 1 root root 0 Oct  7 11:56 cpu
-r--r--r--. 1 root root 0 Oct  7 11:56 io
-r--r--r--. 1 root root 0 Oct  7 11:56 memory
$ cat /proc/pressure/cpu
some avg10=0.13 avg60=0.68 avg300=0.28 total=1195993
$ cat /proc/pressure/io
some avg10=0.00 avg60=1.11 avg300=0.68 total=2828208
full avg10=0.00 avg60=0.91 avg300=0.56 total=2334731
$ cat /proc/pressure/memory
some avg10=0.00 avg60=0.00 avg300=0.00 total=0
full avg10=0.00 avg60=0.00 avg300=0.00 total=0
```

See also https://www.kernel.org/doc/html/latest/accounting/psi.html ,
https://facebookmicrosites.github.io/psi/docs/overview

Fixes https://github.com/flatcar-linux/Flatcar/issues/162
2020-11-04 09:37:45 +01:00
Krzesimir Nowak
aee9d1bc02 Merge pull request #659 from flatcar-linux/krnowak/systemd-gentoo
Update systemd (sync, use gentoo workflow, add missing patches)
2020-11-03 20:14:24 +01:00
Krzesimir Nowak
92a3de35e0 .github: Update KV_MAIN to 5.9 2020-11-03 12:16:56 +01:00
Krzesimir Nowak
38798dac1f sys-kernel/coreos-firmware: Update to 20200918 2020-11-03 12:16:56 +01:00
Krzesimir Nowak
86a2e229cf sys-kernel/*: Bump to 5.9.1 2020-11-03 12:16:53 +01:00
Krzesimir Nowak
8f5411b63f sys-kernel/coreos-sources: Regenerate patches against 5.9.1 2020-11-03 12:13:44 +01:00
Dongsu Park
57d56fa2c0 dev-libs/dbus-glib: Fix cross compile build error
Use host tool when building cross.
Bump revision to -r1.
Adjust the patch on top of dbus-glib 0.110.

Original-by: Geoff Levand <geoff@infradead.org>
  6d7756b77b10 ("dev-libs/dbus-glib: Fix cross compile build error")
2020-11-02 11:58:11 +01:00
Dongsu Park
e4cb197be5 dev-libs/dbus-glib: update to 0.110, sync with Gentoo
To fix build issues from glib 2.64.5, we need to update dbus-glib
to 0.110.
2020-11-02 11:57:28 +01:00
Dongsu Park
bd00506a48 dev-db/sqlite: move to portage-stable
Now that `dev-lang/tcl` is included in SDK, we do not need to keep
third-party patches in coreos-overlay. So move sqlite to portage-stable.
2020-10-30 16:06:05 +01:00
Krzesimir Nowak
1d7053e8a1 sys-apps/systemd: Add Manifest
Otherwise the build fails at the verification stage.
2020-10-26 15:03:48 +01:00
Krzesimir Nowak
e9b2cee708 sys-apps/systemd: Rename the ebuild to pick the patch release
With this change `PV` variable will become 246.6, thus it will try to
download the archive from the systemd-stable repo.
2020-10-26 14:43:28 +01:00
Krzesimir Nowak
cfd6c15d51 sys-apps/systemd: Bring the rest of missing patches
We have these patches in v245 too. I have missed them when doing the
update to v246, because apparently I have assumed that our flatcar
branches are more or less some upstream branch/tag + our patches on
top. That assumption was wrong and it surfaced when I rebased the
v245-flatcar branch to the v245.8 tag.
2020-10-26 14:40:04 +01:00
Krzesimir Nowak
37c8517551 sys-apps/systemd: Move away from cros-workon
Our current cros-workon setup was awkward to use when a new patch
release happened on upstream. In this case we would go to our
`v<VERSION>-flatcar` branch and merge/cherry-pick the commits from
upstream that appeared between the release we have been using so far
and the new release. In such case, our non-upstreamed patches were
hidden somewhere in history. To fix that, I proposed having a branch
for each patch release, so the branch would always be based on an
upstream tag and have our patches on top of that. An alternative
proposition was to just use the Gentoo workflow for patches, and this
is what we are doing here.

This also slightly minimizes the difference between the Gentoo recipe
and ours.
2020-10-26 14:33:54 +01:00
Krzesimir Nowak
c4f0e7e437 sys-apps/systemd: Sync with Gentoo
This brings in a dependency on app-arch/zstd, which will be pulled
into portage-stable.
2020-10-26 14:17:20 +01:00
Dongsu Park
17eb4d5b5e Merge pull request #658 from flatcar-linux/dongsu/gdbus-codegen
profiles: gdbus-codegen only for python 3.6
2020-10-23 15:06:31 +02:00
Dongsu Park
aa4d60f031 Merge pull request #652 from flatcar-linux/linux-5.8.16-main
Upgrade Linux Kernel in main from 5.8.14 to 5.8.16
2020-10-23 14:08:05 +02:00
Dongsu Park
ed12f4b269 profiles: gdbus-codegen only for python 3.6
To be able to update `dev-util/gdbus-codegen` to 2.64.5, we need to
specify a single target python3.6 for gdbus-codegen.
Without it, it is not possible to emerge gdbus-codegen, because
it thinks there are multiple python single targets for the package.
2020-10-22 14:59:45 +02:00
Dongsu Park
496708438f coreos-base/hard-host-depends: remove Go 1.10, add Go 1.15
Now that Go 1.10 has been removed, we can remove `dev-lang/go:1.10`
from the SDK dependencies list.

Instead add `dev-lang/go:1.15` to the SDK dependencies list.
2020-10-20 15:15:34 +02:00
Dongsu Park
77457125e6 dev-lang/go: remove Go 1.10
Since Go 1.10 has not been used by packages, we can completely remove
Go 1.10.
2020-10-20 15:14:57 +02:00
Dongsu Park
8b31f9032f dev-lang/go: upgrade Go 1.12.12 to 1.12.17
Make Go 1.12.x runtime up-to-date with its latest release 1.12.17,
to fix numerous bugs.

See also https://golang.org/doc/devel/release.html#go1.12.minor .
2020-10-20 15:13:20 +02:00
Flatcar Buildbot
0848f68c08 dev-lang: Upgrade Go 1.15.2 to 1.15.3 2020-10-19 07:34:35 +00:00
Flatcar Buildbot
9f517ac649 sys-kernel: Upgrade coreos-kernel 5.8.14 to 5.8.16 2020-10-17 07:26:08 +00:00
Kai Lüke
88c828b8de Merge pull request #648 from flatcar-linux/kai/afterburn-networkd
coreos-base/afterburn: Point to latest commit
2020-10-15 22:44:13 +09:00
Kai Lüke
82b2e5c1e5 coreos-base/afterburn: Point to latest commit
This pulls in
https://github.com/flatcar-linux/afterburn/pull/10
to fix systemd-networkd-wait-online on Equinix Metal (fka Packet).
2020-10-15 22:43:15 +09:00
Dongsu Park
8cb9909d1e Merge pull request #649 from flatcar-linux/dongsu/kernel-remove-ip-conntrack-ipv4
sys-kernel: remove blank kernel module nf-conntrack-ipv4
2020-10-15 11:36:50 +02:00
Dongsu Park
bb699ff491 sys-kernel: remove blank kernel module nf-conntrack-ipv4
So far Flatcar has kept a third-party patch to add a blank kernel
module `nf-conntrack-ipv4.ko` to avoid regression around Kubernetes.
The issue was that kube-proxy with ipvs started using `nf-conntrack.ko`,
which does not exist in Kernel < 4.19. The patch was originally added by
a24dbb6cb6.

However, Kubernetes 1.13 or newer already deals with the issue. It
automatically loads a different Kernel module according to Kernel
versions: `nf-conntrack-ipv4` for Kernel < 4.19, and `nf-conntrack`
for Kernel >= 4.19.
See 4b90559369 .

We can simply remove the Kernel module, as since then all production
systems have updated Kubernetes to the newer versions than 1.13.
2020-10-15 11:34:47 +02:00
Kai Lüke
04e402cd1b coreos-base/coreos-init, sys-kernel/bootengine: Update to latest state
This pulls in https://github.com/flatcar-linux/bootengine/pull/19
and https://github.com/flatcar-linux/init/pull/29
to exclude the bonded interface from networkd in Azure because only
the parent eth0 interface is managed.
2020-10-14 19:56:53 +09:00
Kai Lüke
b21f805cdf coreos-base/coreos: Add diffutils to the base packages
The diffutils package provides the "cmp" and "diff" tools which are
essential commands in shell scripts. They used to be pulled in by
audit but the update in
https://github.com/flatcar-linux/coreos-overlay/pull/537
caused them to be dropped.
Add them to the explicit list of base packages to ensure they are
installed.
2020-10-14 14:41:28 +09:00
Kai Lüke
623f35ed31 sys-apps/baselayout, coreos-base/coreos-init: Point to lastest state
This pulls in
https://github.com/flatcar-linux/init/pull/28 and
https://github.com/flatcar-linux/baselayout/pull/7
to ensure that the /etc/coreos to /etc/flatcar symlink always exists.

Fixes https://github.com/flatcar-linux/Flatcar/issues/190
2020-10-13 23:20:54 +09:00
Sayan Chowdhury
13af8ea91d Merge pull request #635 from flatcar-linux/linux-5.8.14-main
Upgrade Linux Kernel in main from 5.8.13 to 5.8.14
2020-10-13 17:36:56 +05:30
Dongsu Park
e0833c73e2 dev-lang/rust: adjust patches for rust 1.47.0
Remove unnecessary patches, add new patches for rust 1.47.0.
2020-10-13 13:45:01 +02:00
Dongsu Park
3e05d786bf dev-lang/rust: update to 1.47.0
Update rust version to 1.47.0.
2020-10-13 13:44:39 +02:00
Dongsu Park
935ba7c5cf dev-lang/rust: fix patchlevel for stage0 to rust-1.46.0
Rust stage0 tarballs should not be based on a patchlevel release like
`1.45.1`. It might work in case of the previous version 1.45.1, which
already exists. However, it will not work in case of x.y.1 is missing.

So the build rust 1.47.0, should pull tarballs for rust 1.46.0, instead
of 1.46.1, which does not exist.
2020-10-13 13:41:06 +02:00
Kai Lüke
e5bde0a027 Merge pull request #637 from flatcar-linux/kai/revert-stub-resolver
Revert "sys-apps/systemd: Drop the resolv.conf workaround"
2020-10-13 13:46:52 +09:00
Kai Lüke
879b0c4eb5 sys-apps/systemd: Document why resolv.conf contains real IP addresses 2020-10-13 13:45:27 +09:00
Kai Lüke
b613789a7c sys-apps/baselayout: Ensure to create core home folder in the SDK
Because the --root option restricts systemd-tmpfiles to the passwd
database file in the package chroot it can't resolve the core user
and fails to set up the home folder from the baselayout-home.conf
directives.
Create the folder manually because creating a /etc/passwd file in
the package chroot would at installation overwrite the SDK user.
2020-10-12 21:23:30 +09:00
Sayan Chowdhury
e50834938d Merge pull request #636 from flatcar-linux/sayan/add-qemu-oem
oem-qemu: Add OEM package for QEMU
2020-10-09 13:14:45 +05:30
Kai Lüke
cd71c131dd Revert "sys-apps/systemd: Drop the resolv.conf workaround"
This reverts commit c414b38c7c56dafb05a86040443c634763527f05.
The real DNS server IP addresses should be in /etc/resolve.conf and not
just 127.0.0.53 because all cases that bind-mount /etc/resolve.conf
into a new network namespace can't reach the loopback interface that
resolved is listening on.
2020-10-09 14:57:29 +09:00
Krzesimir Nowak
e927458503 sys-apps/baselayout: Drop the compatibility hack
This change was introduced over 6 years ago. No one should be using
such old SDKs now.
2020-10-08 18:44:35 +02:00
Krzesimir Nowak
fee62916ab sys-kernel/bootengine: Bump to include the fix for systemd v246 change in tmpfiles 2020-10-08 18:44:35 +02:00
Krzesimir Nowak
0d1f86c398 sys-apps/baselayout: Initialize the user/group database earlier
systemd-tmpfiles in systemd v246 requires the user/group databases in
the custom root if it gets passed with --root flag. This requires a
new version of baselayout to be pulled, so do so.
2020-10-08 18:44:35 +02:00
Krzesimir Nowak
4e86e2c3aa sys-apps/systemd: Drop the resolv.conf workaround
This was to work around an issue
https://github.com/systemd/systemd/issues/3826, which is now resolved
in https://github.com/systemd/systemd/pull/5276.
2020-10-08 18:44:35 +02:00
Sayan Chowdhury
c04efd7f22 sys-apps/systemd: Bump to v246.6
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
Signed-off-by: Krzesimir Nowak <krzesimir@kinvolk.io>
2020-10-08 18:44:35 +02:00
Sayan Chowdhury
278ff8b093 oem-qemu: Add OEM package for QEMU
Fix flatcar-linux/Flatcar#71

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-10-08 11:57:21 +05:30
Kai Lüke
7d4c909793 Merge pull request #631 from lht/kernel-enable-elastic-natwork-adapter-driver-for-arm64
sys-kernel: Enable elastic network adatper module for arm64
2020-10-07 14:34:01 +02:00
Dongsu Park
2472bbebc8 Merge pull request #623 from flatcar-linux/dongsu/containerd-shim-runc
app-emulation/containerd: add containerd-runc-shim-v*
2020-10-07 10:35:03 +02:00
Flatcar Buildbot
55ccff3f0d sys-kernel: Upgrade coreos-kernel 5.8.13 to 5.8.14 2020-10-07 07:26:03 +00:00
Haitao Li
55a7c6039e sys-kernel: Enable elastic network adatper module for arm64 2020-10-07 15:50:10 +11:00
Dongsu Park
c335e197bd eclass: exclude unnecessary architectures from DTC in Kernel
DTC (Device Tree Compiler) source tree in Flatcar Kernel modules
unnecessarily takes too much space, especially the `include-prefixes`
directory.

```
$ sudo du -a /usr/lib64/modules/$(uname -r)/source/ | sort -n -r | head -n5
130100  /usr/lib64/modules/5.8.11-flatcar/source/
69180   /usr/lib64/modules/5.8.11-flatcar/source/include
56324   /usr/lib64/modules/5.8.11-flatcar/source/scripts
51384   /usr/lib64/modules/5.8.11-flatcar/source/scripts/dtc
50728   /usr/lib64/modules/5.8.11-flatcar/source/scripts/dtc/include-prefixes
$ sudo ls /usr/lib64/modules/$(uname -r)/source/scripts/dtc/include-prefixes/
arc  arm  arm64  c6x  dt-bindings  h8300  microblaze  mips  nios2 openrisc  powerpc  sh  xtensa
```

Most of them are for architectures that are not supported by Flatcar, so
we can remove them from the production image.

OTOH, as `dt-bindings` looks more like an architecture-independent one,
for now we keep it.

Before:

```
$ du -s /usr/lib64/modules/$(uname -r)/source/scripts/dtc/
51384   /usr/lib64/modules/5.8.11-flatcar/source/scripts/dtc/
$ du -s /usr/lib64/modules/
250308  /usr/lib64/modules/
$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 934152     21592  98% /usr
```

After:

```
$ du -s /usr/lib64/modules/$(uname -r)/source/scripts/dtc/
6632    /usr/lib64/modules/5.8.11-flatcar/source/scripts/dtc/
$ du -s /usr/lib64/modules/
205144  /usr/lib64/modules/
$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 907628     48116  95% /usr
```
2020-10-06 11:20:11 +02:00
Marga Manterola
b5559c2485 Merge pull request #627 from flatcar-linux/linux-5.8.13-main
Upgrade Linux Kernel in main from 5.8.11 to 5.8.13
2020-10-05 14:12:58 +02:00
Alban Crequy
fb481c95ec Merge pull request #621 from flatcar-linux/alban/libseccomp-2.5.0
Update libseccomp to 2.5.0
2020-10-02 19:27:06 +02:00
Dongsu Park
cbe85ab20a profiles: turn on USE flag lzma for sys-apps/kmod
Now that Kernel modules are compressed with xz, the sys-apps/kmod
utility also needs to be built with xz/lzma supported.
2020-10-02 09:29:55 +02:00
Dongsu Park
9444595cfb sys-kernel/coreos-modules: compress modules with xz
Compress every kernel module with xz (lzma), to make more free space
in the rootfs.

Before:
```
$ sudo du -s /usr/lib64/modules/$(uname -r)/kernel/
90472   /usr/lib64/modules/5.8.11-flatcar/kernel/
$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 916024     39720  96% /usr
```

After:

```
$ sudo du -s /usr/lib64/modules/$(uname -r)/kernel/
26908   /usr/lib64/modules/5.8.11-flatcar/kernel/
$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 845468    110276  89% /usr
```
2020-10-02 09:29:55 +02:00
Flatcar Buildbot
efa862ba23 sys-kernel: Upgrade coreos-kernel 5.8.11 to 5.8.13 2020-10-02 07:24:54 +00:00
Krzesimir Nowak
2900eb190e Merge pull request #537 from flatcar-linux/krnowak/audit
Update audit to 2.8.5
2020-10-01 17:28:32 +02:00
Dongsu Park
e93023be99 Merge pull request #611 from flatcar-linux/dongsu/tcl-sdk
coreos-base/hard-host-depends: add dev-lang/tcl
2020-09-30 18:59:10 +02:00
Dongsu Park
539843bbf8 app-emulation/containerd: add containerd-runc-shim-v*
Add new binaries containerd-runc-shim-v[12] to the torcx tarballs for
docker and containerd. The binaries are necessary for kubelet to
communicate via custom CRI endpoints.

The addition will cause usage of the /usr partition to grow by ~5M.

```
$ ls -l /run/torcx/unpack/docker/bin
-rwxr-xr-x. 1 root root  6742592 Sep 30 13:22 containerd-shim
-rwxr-xr-x. 1 root root  9095176 Sep 30 13:22 containerd-shim-runc-v1
-rwxr-xr-x. 1 root root  9111752 Sep 30 13:22 containerd-shim-runc-v2

$ ls -l /usr/share/torcx/store/docker\:19.03.torcx.tgz
-rw-r--r--. 1 root root 89809888 Sep 30 14:16 /usr/share/torcx/store/docker:19.03.torcx.tgz

$ df /usr
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/mapper/usr   1007760 916024     39720  96% /usr
```

Note, we do not touch other torcx profiles like docker 1.12 or 17.03,
to keep the image size as small as possible.
2020-09-30 17:07:15 +02:00
Krzesimir Nowak
17daba0bd7 sys-process/audit: Add README.md
Try to list the reasons behind this for of the gentoo package.
2020-09-29 20:27:39 +02:00
Krzesimir Nowak
22ba3fdb41 sys-process/audit: Install Flatcar rules
For some reason, locking down is disabled in the same commit, but no
clear explanation exist.
2020-09-29 20:27:22 +02:00
Krzesimir Nowak
a1940254ee sys-process/audit: Add "daemon" use flag
The use flag enables building audisp, auditd, aureport, ausearch and
probably some other tools. Not sure what's the reason for adding such
a use flag other than disabling the build of the binaries. The daemon
use flag is nowhere set, so these things are not built by default.
2020-09-29 20:14:50 +02:00
Krzesimir Nowak
bfc27b3710 sys-process/audit: Fix some build system hacks
There actually is a --without-golang flag, so use it instead of
hacking stuff in Makefile.am with sed.

Also, build on arm64 and amd64 by default.
2020-09-29 20:14:50 +02:00
Krzesimir Nowak
47acf5d00b sys-process/audit: Drop unnecessary files 2020-09-29 20:14:25 +02:00
Krzesimir Nowak
a54ea6b4c9 sys-process/audit: Import audit from gentoo 2020-09-29 20:08:15 +02:00
Krzesimir Nowak
aa6c8d5a0d sys-process/audit: Drop old 2020-09-29 19:41:21 +02:00
Krzesimir Nowak
efbb8218c7 sys-process/tini: Drop old ebuild 2020-09-29 19:19:01 +02:00
Krzesimir Nowak
dd3b7ec351 app-emulation/docker: Bump tini dependency to 0.18.0 2020-09-29 19:19:01 +02:00
Krzesimir Nowak
c1fec89441 app-torcx/docker: Bump tini dependency to 0.18.0
I haven't found any incompatible changes on the quick scan of tini's
commits log from 0.13.2 to 0.18. So the bump should work just fine.
2020-09-29 19:19:01 +02:00
Krzesimir Nowak
b4f310ee79 sys-process/tini: Apply our modifications 2020-09-29 19:19:01 +02:00
Krzesimir Nowak
1fc645bdd7 sys-process/tini: Add 0.18.0 from gentoo 2020-09-29 19:19:01 +02:00
Alban Crequy
665e936946 Update libseccomp to 2.5.0
The ebuild is in the portage-stable repository but we need this patch in
coreos-overlay to avoid this error:

> The following keyword changes are necessary to proceed:
>  (see "package.accept_keywords" in the portage(5) man page for more details)
> # required by sys-apps/systemd-245-r3::coreos[seccomp]
> # required by app-misc/ca-certificates-3.27.1-r1::coreos
> # required by dev-libs/openssl-1.1.1g::coreos
> # required by net-misc/rsync-3.2.3::portage-stable[-libressl,ssl,-static]
> # required by sys-apps/portage-2.3.40-r1::coreos[-build]
> # required by app-admin/perl-cleaner-2.27::portage-stable
> # required by dev-lang/perl-5.26.2::portage-stable
> # required by sys-apps/help2man-1.45.1::portage-stable
> # required by sys-devel/automake-1.16.1-r1::portage-stable
> # required by dev-libs/libxml2-2.9.8::portage-stable
> # required by x11-misc/shared-mime-info-1.4::portage-stable
> # required by dev-libs/gobject-introspection-1.40.0-r1::portage-stable
> # required by sys-auth/polkit-0.113-r5::coreos[introspection]
> =sys-libs/libseccomp-2.5.0 ~amd64
2020-09-29 12:31:03 +02:00
Sayan Chowdhury
53427053e1 Adjust the srctree based on the presence of KBUILD_OUTPUT
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-28 20:47:46 +05:30
Kai Lüke
a6672ad0e3 Merge pull request #613 from flatcar-linux/kai/firmware-no-savedconfig
sys-kernel/coreos-firmware: Disable savedconfig flag and file creation
2020-09-28 12:05:29 +02:00
Kai Lüke
c8d526dd01 sys-kernel/coreos-firmware: Disable savedconfig flag and file creation
The savedconfig feature reads and, if not set, generates a file under
/etc/portage/savedconfig/ to source a build configuration. We probably
don't want this and specially not on the final image, therefore,
disable reading and also don't write the file to the final image.
2020-09-28 11:24:46 +02:00
Krzesimir Nowak
d2e2187bde Merge pull request #612 from flatcar-linux/krnowak/fix-remote-fs
Enable remote-fs
2020-09-26 16:06:06 +02:00
Krzesimir Nowak
498ad0ba08 sys-apps/systemd: Enable more services
These normally would be pulled by systemdctl enable when enabling
systemd-networkd.service, because they are used in Also= options. In
such case, we need to pull them ourselves, so they can be enabled in
/usr, not in /etc.
2020-09-26 14:21:47 +02:00
Marga Manterola
40e58334af Merge pull request #614 from flatcar-linux/sayan/fix-the-srctree-patch
Update srctree path to correctly populate Makefile
2020-09-25 21:08:18 +02:00
Krzesimir Nowak
9512007c74 sys-apps/systemd: Make a comment more clear 2020-09-25 20:39:19 +02:00
Krzesimir Nowak
a65e2ade5b sys-apps/systemd: Drop the handling of ENABLED_UNITS
We are installing systemd from scratch in the image, so there are no
previously enabled units to enable or reenable after
installation. Also, this code would enable the services in /etc, which
we don't want, because /etc is not autoupdated, so the enabled
services could end up still being disabled after the update.
2020-09-25 20:39:19 +02:00
Krzesimir Nowak
393a645c38 sys-apps/systemd: Enable more services from upstream's preset
This more or less mimics systemctl preset-all, but with enabling the
services in /usr, not in /etc, as /etc is not autoupdated.
2020-09-25 20:39:19 +02:00
Krzesimir Nowak
8a64463b04 sys-apps/systemd: Try harder at not enabling services through /etc
At installation time, we usually want to enable services through
/lib. This change will stop making the installation to put symlinks
for getty in /etc, since we already do it in /lib.
2020-09-25 20:39:19 +02:00
Krzesimir Nowak
5e98f2cb98 sys-apps/systemd: Enable remote-fs.target too.
Since v242, this unit is not enabled by default. Currently the
recommended way of initial enablement of the important units is
through `systemctl preset-all` with the preset file from systemd. We
don't want to do it, because this action creates symlinks in /etc, so
we enable those services ourselves by putting the symlinks in /lib.
2020-09-25 20:39:19 +02:00
Marga Manterola
2ac602d5ea Merge pull request #597 from flatcar-linux/containerd-1.4.1-main
Upgrade Containerd in main from 1.3.7 to 1.4.1
2020-09-25 18:40:44 +02:00
Dongsu Park
247ad0bb03 coreos-base/hard-host-depends: add dev-lang/tcl
Since sqlite 3.32 or newer requires dev-lang/tcl to be available in
the Flatcar SDK by default, we should add dev-lang/tcl in the dependency
list of SDK.
2020-09-25 17:29:42 +02:00
Sayan Chowdhury
022a63a9d1 Update srctree path to correctly populate Makefile
Update srctree path to correctly populate the Makefile for sandbox
environments. The patch is to adjusted for 5.x kernels

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-25 20:47:28 +05:30
Dongsu Park
76f9afce09 Merge pull request #598 from flatcar-linux/dongsu/cleanup-packages-202009
profiles: adjust to clean up serf, apr-util
2020-09-25 15:14:02 +02:00
Marga Manterola
4ff7200b93 Merge branch 'main' into containerd-1.4.1-main 2020-09-25 14:53:41 +02:00
Marga Manterola
9c27350a99 Merge pull request #602 from flatcar-linux/docker-19.03.13-main
Upgrade Docker in main from 19.03.12 to 19.03.13
2020-09-25 14:48:21 +02:00
Marga Manterola
746961a611 Merge pull request #607 from flatcar-linux/linux-5.8.11-main
Upgrade Linux Kernel in main from 5.8.10 to 5.8.11
2020-09-25 14:48:12 +02:00
Dongsu Park
7363a3935b profiles: remove dev-libs/apr-util
Now that net-libs/apr-util is gone, we should remove it from profiles.
2020-09-25 10:37:22 +02:00
Dongsu Park
850055eab2 profiles: remove net-libs/serf
Now that net-libs/serf is gone, we should remove it from profiles.
2020-09-25 10:37:22 +02:00
Kai Lüke
d589594c83 app-arch/torcx: Point to latest flatcar-master
This pulls in
https://github.com/flatcar-linux/torcx/pull/4
to set a fixed tmpfs size.
2020-09-24 17:01:13 +02:00
Kai Lüke
604a06746b coreos-base/coreos: Build and install oslogin for amd64 only
The build for arm64 currently fails because it tries to build the
oslogin package but the package is marked as amd64-only.
Exclude the oslogin package from arm64 images.
2020-09-24 12:02:57 +02:00
Flatcar Buildbot
58ef9fa84f sys-kernel: Upgrade coreos-kernel 5.8.10 to 5.8.11 2020-09-24 07:23:35 +00:00
Thilo Fromm
589299edd4 app-admin/adcli: update to 0.9.0
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-09-23 16:10:25 +02:00
Marga Manterola
76812e292f Merge pull request #603 from flatcar-linux/marga-kinvolk/change-mirrors
Switch to our new mirrors
2020-09-23 15:24:29 +02:00
Margarita Manterola
7f151f73a1 Switch to our new mirrors 2020-09-23 15:22:09 +02:00
Dongsu Park
4cf90db4bf Merge pull request #600 from flatcar-linux/dongsu/sqlite-3.32.3
dev-db/sqlite: update to 3.32.3 to keep non-full archive
2020-09-23 14:39:56 +02:00
Flatcar Buildbot
c197a0fdab app-emulation: Upgrade Docker 19.03.12 to 19.03.13 2020-09-23 07:44:01 +00:00
Kai Lüke
9c118932e0 Merge pull request #601 from flatcar-linux/kai/bump-init
coreos-base/coreos-init: Point to latest flatcar-master
2020-09-22 14:49:27 +02:00
Marga Manterola
084608643c Merge pull request #592 from flatcar-linux/marga-kinvolk/gce-image
Improve Flatcar behavior on GCE when using oslogin
2020-09-22 14:41:51 +02:00
Kai Lüke
da030f0543 coreos-base/coreos-init: Point to latest flatcar-master
This pulls in
https://github.com/flatcar-linux/init/pull/27
2020-09-22 14:28:30 +02:00
Dongsu Park
aa72d9e918 dev-db/sqlite: add README.md
Try to elaborate reasons why we need this fork of Gentoo ebuilds.
2020-09-22 09:54:25 +02:00
Dongsu Park
902d322ed8 dev-db/sqlite: Bring back builds for non-full archive
Since sqlite 3.32.0, Gentoo ebuild does not deal with non-full archive,
but fetches only full archive. On top of that, the upstream sqlite's
full archive requires `tclsh` to be installed on the host system. Since
Flatcar SDK does not include `dev-lang/tcl`, it is not possible to build
sqlite from the full-archive. It means that we need to either make the
Flatcar SDK include `dev-lang/tcl`, (which takes time) or bring back the
non-full archive mechanism just like ebuilds from sqlite 3.31.x.

So adapt the full-archive patches on top of the non-full archive.
Make the ebuild fetch the non-full archive.
2020-09-21 14:02:34 +02:00
Margarita Manterola
38935a5e75 coreos-base/oem-gce: add Python aliases
GCE recommends images to ship Python in them.  Instead of shipping the
binaries inside our vendor partition, install an alias that will
download the latest official container, for both python2 and python3.
2020-09-18 18:29:17 +02:00
Dongsu Park
2f87fbff5d dev-db/sqlite: sync with Gentoo upstream
Simply sync dev-db/sqlite with Gentoo upstream.

Mainly to update to 3.32.3-r1, to address CVE-2020-11656.
2020-09-18 17:49:43 +02:00
Margarita Manterola
11d56330bd sys-kernel/coreos-modules: remove deprecated config
We were setting `CONFIG_VGACON_SOFT_SCROLLBACK=y`, but this config
option was deleted with 20782abbbdfe922496a28f9cc0c3c0030f7dfb8f, due to
security issues.

Remove the config to let the kernel image build again.
2020-09-18 14:07:19 +02:00
Margarita Manterola
db3bd0f9f8 coreos-base/google-oslogin: Update to 20200910
This change updates to the latest oslogin version provided by Google.
Since our last update, this was split into a different repo and the
directory structure changed significantly.

It also added group support, which needed to be added to the
nsswitch.conf file that we ship.

Flatcar users require docker group permissions, so ensure oslogin gives
that permission by shipping a separate group.conf file that gets
installed when oslogin is enabled.
2020-09-18 13:41:12 +02:00
Thilo Fromm
ecc026209b Merge pull request #596 from flatcar-linux/linux-5.8.10-main
Upgrade Linux Kernel in main from 5.8.9 to 5.8.10
2020-09-18 11:35:25 +02:00
Dongsu Park
c58f7dbfbc Merge pull request #590 from flatcar-linux/dongsu/update-pkgs-20200917
profile: adjust profiles for jq, rsync
2020-09-18 10:29:24 +02:00
Flatcar Buildbot
4498afdfd1 app-emulation: Upgrade Containerd 1.3.7 to 1.4.1 2020-09-18 08:20:50 +00:00
Flatcar Buildbot
2b3e80a5dd sys-kernel: Upgrade coreos-kernel 5.8.9 to 5.8.10 2020-09-18 08:13:46 +00:00
Margarita Manterola
39c2c411c1 app-emulation/qemu: Fix building errors
The qemu update caused several errors:

* We currently don't have Python 3.8 available in the SDK, so adding it in
  the PYTHON_COMPAT field causes a build failure.
* The manifest needed to be updated
* A patch file was missing

This commit fixes these errors and makes the package build.
2020-09-17 16:42:19 +02:00
Dongsu Park
8956a52b6a profiles: disable sse2 from CPU_FLAGS_X86 for rsync
Since rsync 3.2.0, the ebuild sets `--enable-simd` option in case of
amd64. However, the cross toolchain in Flatcar SDK is not able to deal
with the SIMD feature, so configure in rsync fails like:

```
gcc version 8.3.0 (Gentoo Hardened 8.3.0-r1 p1.1)
configure.sh:3774: $? = 0
configure.sh:3763: x86_64-cros-linux-gnu-g++ -V >&5
x86_64-cros-linux-gnu-g++: error: unrecognized command line option '-V'
x86_64-cros-linux-gnu-g++: fatal error: no input files
compilation terminated.
```

Until we could resolve the toolchain issue, we should disable
`cpu_flags_x86_sse2`, to disable simd for rsync.
2020-09-17 15:54:38 +02:00
Dongsu Park
700f7a9024 profiles: update keywords for app-misc/jq
Update version of app-misc/jq to 1.6-r3 as well in accept_keywords,
since app-misc/jq in portage-stable was updated to 1.6-r3.
2020-09-17 15:54:35 +02:00
Sayan Chowdhury
d953761aea app-emulation/qemu: Drop old; qemu-4.2.0-r2
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-17 12:07:35 +05:30
Sayan Chowdhury
fc9417e810 app-emulation/qemu: Upgrade qemu to 5.0.0
Upgrade QEMU to 5.0.0 to fix the following security issues:

- [CVE-2020-11102](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11102)
- [CVE-2020-1711](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1711)
- [CVE-2020-7039](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7039)

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-17 12:07:32 +05:30
Dongsu Park
2cd4943889 Merge pull request #525 from flatcar-linux/runc-1.0.0_rc92-main
Upgrade Runc in main from 1.0.0_rc90 to 1.0.0_rc92
2020-09-16 15:06:44 +02:00
Kai Lüke
7aa31a28b8 coreos-base/update_engine: Point to latest flatcar-master
This pulls in
https://github.com/flatcar-linux/update_engine/pull/7
2020-09-14 16:06:08 +02:00
Dongsu Park
e6b8d5175a app-emulation/docker-runc: adapt patches for runc 1.0.0-rc91
To fix builds, adapt patches for runc 1.0.0-rc91.
2020-09-14 15:57:17 +02:00
Flatcar Buildbot
63adddc590 app-emulation: Upgrade Runc 1.0.0_rc90 to 1.0.0_rc92 2020-09-14 15:57:17 +02:00
Krzesimir Nowak
441b3d2d7b sys-kernel/coreos-sources: Regenerate the patches against 5.8.9
These used to apply just fine with the patch utility, but git am was
complaining.
2020-09-14 14:58:39 +02:00
Flatcar Buildbot
cb9f047507 sys-kernel: Upgrade coreos-kernel 5.8.8 to 5.8.9 2020-09-13 07:22:25 +00:00
Kai Lüke
6212d698d2 coreos-base/coreos-init: Update to include Calico tunl0 networkd units
This pulls in
https://github.com/flatcar-linux/init/pull/26
2020-09-11 15:20:56 +02:00
Vincent Batts
cc40759565 Merge pull request #553 from flatcar-linux/vbatts/lockdown
sys-kernel: make lockdown available
2020-09-11 07:01:46 -04:00
Dongsu Park
c30c27d91d Merge pull request #574 from flatcar-linux/dongsu/go-1.15.1
dev-lang: Upgrade Go 1.15 to 1.15.2
2020-09-11 09:48:45 +02:00
Thilo Fromm
df132df652 sys-apps/systemd: use latest v245-flatcar
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-09-10 17:32:01 +02:00
Thilo Fromm
76be146d00 Merge pull request #580 from flatcar-linux/linux-5.8.8-main
Upgrade Linux Kernel in main from 5.8.6 to 5.8.8
2020-09-10 13:21:02 +02:00
Thilo Fromm
6ac9fd4bd5 sys-kernel/coreos-sources-5.8.8: remove tpacket patch since it's in .8 upstream
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-09-10 13:18:52 +02:00
Dongsu Park
697d475b2d dev-lang: Upgrade Go 1.15 to 1.15.2
Upgrade Go to 1.15.2, to address issues like potential cross-site scripting
vulnerability, as described in
https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs .
2020-09-10 10:34:52 +02:00
Dongsu Park
0bdb485bea Merge pull request #575 from flatcar-linux/dongsu/github-action-rust-body
.github: improve body text of PR for dev-lang/rust
2020-09-10 10:31:03 +02:00
Flatcar Buildbot
1036d87f6d sys-kernel: Upgrade coreos-kernel 5.8.6 to 5.8.8 2020-09-10 07:22:52 +00:00
Margarita Manterola
21e3dd302b coreos-devel/mantle: update to v0.15.0 2020-09-09 21:57:57 +02:00
Kai Lüke
0e7039eceb Merge pull request #572 from flatcar-linux/kai/update-update_engine
coreos-base/update_engine: Point to latest flatcar-master
2020-09-09 21:32:28 +02:00
Dongsu Park
d238385c36 .github: improve body text of PR for dev-lang/rust
Improve body text of each PR for `dev-lang/rust`, by mentioning that
it should be merged together with its paired PR in portage-stable.

Explicitly name `dev-lang/rust` instead of `Rust`, because now there are
`dev-lang/rust` as well as `virtual/rust`.

Rename the dispatched event-type name to `rust-pull-request-main`, as
`cargo` has already disappeared.

Make the repository-dispatch action send additional client-payload with
a field `coreos-overlay-pull-request-number`, which will be later used
by the corresponding PR in portage-stable for adding a link back to the
PR in coreos-overlay.
2020-09-09 11:56:29 +02:00
Vincent Batts
342e858d66 sys-kernel: make lockdown available
This will not be enabled by default, and still requires the "lockdown"
kernel parameter. Users can test by setting in
`/usr/share/oem/grub.cfg`:
```
set linux_append="lockdown=integrity"
```

After this is set, dmesg output you'll see:
```
[    0.000000] Kernel is locked down from command line; see man
kernel_lockdown.7
```

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-08 13:22:51 -04:00
Marga Manterola
ea32f00966 Merge pull request #559 from flatcar-linux/rust-1.46.0-main
Upgrade Rust in main from 1.44.1 to 1.46.0
2020-09-08 14:03:43 +02:00
Dongsu Park
0af204196a Merge pull request #571 from flatcar-linux/dongsu/github-action-fix-go115
.github: fix regexp to get correct semver from Go ebuilds
2020-09-08 10:02:51 +02:00
Kai Lüke
331b877958 coreos-base/update_engine: Point to latest flatcar-master
This pulls in
https://github.com/flatcar-linux/update_engine/pull/6
for rollback detection.
2020-09-07 18:52:45 +02:00
Dongsu Park
01ee4dd82f .github: fix regexp to get correct semver from Go ebuilds
Github Action for Go has had a bug when parsing the current Go version
from `dev-lang/go/Manifest`, only when the current ebuild file has only
major + minor versions, without patchlevel. For example, it could parse
well `1.13.15`, but not `1.15`. We need to make it deal with both
versions, `x.y.z` and `x.y`.

With this PR, for example, when `VERSION_SHORT` is `1.15` and the
Manifest includes a tarball `go1.15.src.tar.gz`, we can confirm the new
regexp works well like below:

```
$ sed -n "s/^DIST go\(1\.15\.*[0-9]*\)\.src.*/\1/p" dev-lang/go/Manifest
1.15
```
2020-09-07 16:23:29 +02:00
Dongsu Park
54cd827f05 Merge pull request #561 from flatcar-linux/dongsu/flatcar-install-multipath
coreos-base: Allow installation to multipath target
2020-09-07 15:08:32 +02:00
Krzesimir Nowak
fddbd9defe .github: Update KV_MAIN to 5.8 2020-09-07 12:58:11 +02:00
Krzesimir Nowak
36cf4b16e9 sys-kernel/coreos-firmware: Update to 20200817
Also sync with upstream.
2020-09-04 21:10:21 +02:00
Krzesimir Nowak
4e7dfb9c50 sys-kernel/coreos-modules: Drop OPTIMIZE_INLINING - removed upstream
Dropped in commit 889b3c1245de48ed0cacf7aebb25c489d3e4a3e9.
2020-09-04 21:10:08 +02:00
Krzesimir Nowak
5ad0aa9055 sys-kernel/coreos-modules: Drop NF_TABLES_SET - removed upstream
Dropped in commit e32a4dc6512ce3c1a1920531246e7037896e510a.
2020-09-04 21:10:01 +02:00
Krzesimir Nowak
a6d811b5ca sys-kernel/coreos-modules: Add deps for NETFILTER_XT_MATCH_PHYSDEV
Not sure what and when new deps were added, but adding those config
variables made the build move forward.
2020-09-04 21:09:50 +02:00
Krzesimir Nowak
92828c0a32 sys-kernel/coreos-modules: Drop INFINIBAND_CXGB3 - removed upstream
Dropped in commit 30e0f6cf5acb39cd04316d1eecbf4c6087c7ee02.
2020-09-04 21:09:38 +02:00
Krzesimir Nowak
c9ad088fe4 sys-kernel/coreos-modules: Drop HP100 - removed upstream
Dropped in commit a10079c6629068b906de5c944cb0e9bcc9517a7e.
2020-09-04 21:09:29 +02:00
Krzesimir Nowak
c330df0af0 sys-kernel/coreos-modules: Add deps for ACPI_APEI_PCIEAER
Not sure when and where things have changed, but adding those config
variables made the build move forward.
2020-09-04 21:09:18 +02:00
Krzesimir Nowak
15f137392b sys-kernel/coreos-modules: Add deps for HID_LOGITECH
The dependencies were added in commit
bdd08fff4915a9705ea3ec20c82ab8f745bdf225.
2020-09-04 21:09:01 +02:00
Krzesimir Nowak
2d5d0d8091 sys-kernel/coreos-modules: Add deps for AT803X_PHY
The dependency was added in commit
dddb318b9f989acba9ccca9babc4715a9075eae8. Earlier the regulator code
was only built for arm64, but since the CONFIG_AT803X_PHY variable is
specified in common config, the CONFIG_REGULATOR variables needed to
be moved to common config too.
2020-09-04 21:07:31 +02:00
Krzesimir Nowak
42bed4a985 sys-kernel/coreos-sources: Sort config files 2020-09-04 21:06:40 +02:00
Krzesimir Nowak
f75fb46b80 sys-kernel/coreos-sources: Add a script for sorting configs
The script sorts the lines in the config files and prints a messages
when some variable is being overridden (means that it is specified
twice in the config).

The script can be also used to check for such situations with full
configs like:

    cat commonconfig-* amd64_defconfig-* >amd64fullconfig
    ./sort_config.sh amd64fullconfig
    rm amd64fullconfig
2020-09-04 21:06:35 +02:00
Krzesimir Nowak
875b2bf18d sys-kernel/coreos-sources: Enable wireguard 2020-09-04 21:01:56 +02:00
Krzesimir Nowak
7969c25385 sys-kernel/coreos-sources: Drop duplicates from configs
Most of the duplicates happened to be within amd64 config. But some of
the duplicates were across the files (defined in both common and
amd64). Almost all of them were exact duplicates, so those could be
just dropped, favoring the config lines in common config to remain.

The CONFIG_CONNECTOR was different in common config (module) and in
amd64 config (builtin), so the config line was moved to arm64
config. Now amd64 has CONFIG_CONNECTOR as builtin and arm64 as a
module.
2020-09-04 21:01:56 +02:00
Krzesimir Nowak
7cd8610e48 sys-kernel/coreos-sources: Drop wireguard patches
Wireguard is already a part of the kernel.
2020-09-04 21:01:56 +02:00
Krzesimir Nowak
bdd4ca3686 sys-kernel/*: Bump kernel to 5.8
It's just a bunch of renames, I still need to review patches and
kernel config.
2020-09-04 21:01:56 +02:00
Kai Lüke
dd0138a9c8 sys-kernel: Include patch for overflow in tpacket_rcv
A memory corruption vulnerability in AF_PACKET causes the kernel to
panic or enter undefined behavior, tracked as CVE-2020-14386.
While the proposed patch is not included in an upstream release,
include it as downstream patch.
Further information and PoC:
https://www.openwall.com/lists/oss-security/2020/09/03/3
2020-09-04 18:33:16 +02:00
Margarita Manterola
938a2b6fee Revert "sys-kernel/coreos-sources: fix vdso32 build for arm"
This reverts commit 02a187d087c6425345e1b92bc09c1c4276651a4c.

This change is now applied upstream and we no longer need to carry a
separate patch.
2020-09-04 17:39:28 +02:00
Flatcar Buildbot
178427ca9e sys-kernel: Upgrade coreos-kernel 5.4.61 to 5.4.62 2020-09-04 07:23:07 +00:00
Dongsu Park
df48b74f45 coreos-base: Allow installation to multipath target
Allow `flatcar-install` to install Flatcar into a multipath target.

Pulls in https://github.com/flatcar-linux/init/pull/24
2020-09-02 16:44:36 +02:00
Dongsu Park
18f00becb5 .github: update Go version 1.15
Update the default Go version to 1.15.
2020-09-02 14:50:02 +02:00
Dongsu Park
c174819731 dev-lang/go: Update the default Go version to 1.15
Now that Go [1.15](Go://go.googlesource.com/go/+/refs/tags/go1.15) has
been released, we should update the default Go version to 1.15.
Since the [EINTR issue](https://github.com/golang/go/issues/38033) was
fixed in 1.15, we can simply move from 1.13 to 1.15.

On the other hand, we should not add 1.14, as the
[EINTR bug fix](https://go-review.googlesource.com/c/go/+/232862/) was
not backported to 1.14.
2020-09-02 14:50:02 +02:00
Thilo Fromm
3605185e08 coreos-init: add new subkey rsa4096/FCBEAB91
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-09-02 10:58:43 +02:00
Flatcar Buildbot
bc90a58988 dev-lang: Upgrade Rust 1.44.1 to 1.46.0 2020-09-01 07:30:45 +00:00
Vincent Batts
a73bf603f3 Revert "sys-kernel: allow fips mode to be enabled"
This reverts commit b5e1ce2bc48117bb56d9d992d5611da24c075b95.

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-08-31 13:00:52 -04:00
Kai Lüke
1f6a73511e Merge pull request #542 from flatcar-linux/kai/updating-packages
README.md: Document how	to update packages
2020-08-31 12:41:27 +02:00
Thilo Fromm
e88f0a0575 sys-kernel/coreos-sources: fix vdso32 build for arm
This change adds kernel 5.9 upstream patch
https://lore.kernel.org/linux-arm-kernel/20200827234012.19757-1-fllinden@amazon.com/
which fixes a vdso build error on ARM.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-31 10:24:26 +02:00
Vincent Batts
9eb0c12548 sys-kernel: allow fips mode to be enabled
With this kernel config, users can boot with fips=1 set in
`/usr/share/oem/grub.cfg`:
```
set linux_append="fips=1"
```

Which triggers various behaviors, for FIPS 200 certification.

with this config compiled in, and that boot parameter, users can can
that fips is enabled with:
```
flatcar ~ # cat /proc/sys/crypto/fips_enabled
1
```

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-08-27 22:12:26 -04:00
Thilo Fromm
8df0c7ae3d Merge pull request #550 from flatcar-linux/linux-5.4.61-main
Upgrade Linux Kernel in main from 5.4.59 to 5.4.61
2020-08-27 19:12:16 +02:00
Thilo Fromm
117c872148 Merge pull request #552 from flatcar-linux/dongsu/open-vm-tools-11.1.5
app-emulation/open-vm-tools: update to 11.1.5
2020-08-27 19:11:25 +02:00
Krzesimir Nowak
63813d3706 Merge pull request #546 from flatcar-linux/krnowak/fix-rules
Fix udev rules in mdadm and lvm2
2020-08-27 16:11:57 +02:00
dongsu@kinvolk.io
ccaf2d76b8 app-emulation/open-vm-tools: bump to 11.1.5
Update open-vm-tools 11.1.5,
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.1.5 .
Update also the build number to 16724464.
2020-08-27 13:37:41 +02:00
dongsu@kinvolk.io
ff384ca963 coreos-base/oem-vmware: update to 11.1.5
Update oem-vmware to 11.1.5, corresponding to the update of
open-vm-tools to 11.1.5.
Update URL to flatcar-linux.
2020-08-27 13:37:41 +02:00
Sayan Chowdhury
07dbbcdf9d Merge pull request #551 from flatcar-linux/sayan/bump-etcd-etcdctl-to-3.3.25
Bump etcdctl and etcd-wrapper to 3.3.25
2020-08-27 15:29:38 +05:30
Sayan Chowdhury
b4f9aba6fd dev-db/etcdctl: Bump to 3.3.25
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-08-27 13:18:02 +05:30
Flatcar Buildbot
e2c3b2cd9a sys-kernel: Upgrade coreos-kernel 5.4.59 to 5.4.61 2020-08-27 07:22:04 +00:00
Sayan Chowdhury
a5e0e43ea3 app-admin/etcd-wrapper: Bump to 3.3.25
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-08-27 12:44:49 +05:30
Kai Lüke
dc0f618168 README.md: Document how to update packages
The best practice established in this repository is to reset the
package	folder and import a new	version	from upstream without
modifications. In a separate commit the downstream changes are applied.
This makes it clear which downstream changes need to be	ported when
updating to a newer version in the future. Unfortunately this is not
always done which causes confusion and more work. As first step
document the process before we later look into more automation.
2020-08-26 14:10:37 +02:00
Thilo Fromm
6fac33fd7a toolbox: point to flatcar-master to add bpf fs support
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-26 14:03:31 +02:00
Thilo Fromm
3387908122 sys-apps/baselayout: point CROS_WORKON to latest flatcar-master merge commit
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-26 13:13:36 +02:00
Thilo Fromm
786e51a3d1 sys-apps/baselayout: update CROS_WORKON comment
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-26 13:13:36 +02:00
Thilo Fromm
dbb097a35d sys-apps/systemd: don't depend on acct-group, use GID 30 for "render"
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-26 13:13:36 +02:00
Thilo Fromm
eb9c81ee47 baselayout, systemd: add group "render" for udev
This commit adds a dependency on acct-group/render to systemd.
The respective group is provided by portage-stable
(https://github.com/flatcar-linux/portage-stable
 commit ID db2ed1e74a89944b1500dba1471072e8da3dddc9).

Furthermore, the baselayout commit ID is bumped to include a
change from https://github.com/flatcar-linux/baselayout - to
1d32bea2c0e4335d4a8f7e0ccd6a7b41da15e4a7 - which includes
this group in the baselayout used by initramfs.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-26 13:13:30 +02:00
Krzesimir Nowak
78bd8ec9e0 sys-fs/lvm2: Add a patch dropping unsupported udev rule
The `OPTIONS+="event_timeout=180"` rule is not supported by systemd,
and with recent update, systemd complains quite visibly in journalctl
about it. This is already fixed in lvm2 upstream, so this patch will
not be necessary when we do the update.
2020-08-25 12:07:43 +02:00
Krzesimir Nowak
e564fa0b29 sys-fs/lvm2: Add new revision of a recipe 2020-08-25 12:04:59 +02:00
Krzesimir Nowak
c45a26e473 profiles: Drop outdated entry from accept_keywords
We updated mdadm to 4.1 and imported it into coreos-overlay, so we
updated the keyword in the recipe.
2020-08-25 11:47:57 +02:00
Krzesimir Nowak
a784232e31 sys-fs/mdadm: Add README.md 2020-08-25 11:46:49 +02:00
Krzesimir Nowak
ef18660046 sys-fs/mdadm: Add more patches
These patches are upstreamed, but the release haven't yet happened.
2020-08-25 11:42:32 +02:00
Krzesimir Nowak
5705b8a4cc sys-fs/mdadm: Build on arm64 too 2020-08-25 11:40:46 +02:00
Krzesimir Nowak
8c96ca03bd sys-fs/mdadm: Add a comment about the source of the build 2020-08-25 11:40:16 +02:00
Krzesimir Nowak
a3c88140ec sys-fs/mdadm: Import latest mdadm from Gentoo 2020-08-25 11:30:34 +02:00
Sayan Chowdhury
b2ade58190 Merge pull request #533 from flatcar-linux/linux-5.4.59-main
Upgrade Linux Kernel in main from 5.4.58 to 5.4.59
2020-08-19 16:48:37 +05:30
Sayan Chowdhury
0e777ff5aa app-admin/etcd-wrapper: Bump to 3.3.24
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-08-19 15:44:20 +05:30
Flatcar Buildbot
4b9602cc64 sys-kernel: Upgrade coreos-kernel 5.4.58 to 5.4.59 2020-08-19 07:20:59 +00:00
Sayan Chowdhury
9812717802 Merge pull request #529 from flatcar-linux/sayan/bump-etcd-to-3.3.23
app-admin/etcd-wrapper: Bump to 3.3.23
2020-08-18 21:36:57 +05:30
Sayan Chowdhury
61aad9143f app-admin/etcd-wrapper: Bump to 3.3.23
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-08-18 19:14:10 +05:30
Kai Lüke
013274ce5d Merge pull request #523 from flatcar-linux/linux-5.4.58-main
Upgrade Linux Kernel in main from 5.4.57 to 5.4.58
2020-08-18 11:53:35 +02:00
Thilo Fromm
4524991b97 Merge pull request #528 from flatcar-linux/t-lo/add-qedf-qedi-qla4xxx
add qedf, qedi, qla4xxx modules
2020-08-18 11:52:14 +02:00
Dongsu Park
b6a4219641 Merge pull request #527 from flatcar-linux/containerd-1.3.7-main
Upgrade Containerd in main from 1.3.6 to 1.3.7
2020-08-17 17:23:20 +02:00
Dongsu Park
d54a191738 Merge pull request #519 from flatcar-linux/go-1.13.15-main
Upgrade Go in main from 1.13.14 to 1.13.15
2020-08-17 10:44:22 +02:00
Thilo Fromm
3a34ff86bb sys-kernel/coreos-modules: add qedf, qedi, qla4xxx
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-08-14 19:20:04 +02:00
Flatcar Buildbot
58b3ee36e0 app-emulation: Upgrade Containerd 1.3.6 to 1.3.7 2020-08-14 08:17:38 +00:00
Kai Lüke
ad75990ea5 Merge pull request #524 from flatcar-linux/kai/etcd-permissions
app-admin/etcd-wrapper: Adjust data dir permissions
2020-08-13 10:24:28 +02:00
Kai Lüke
fc4f849bc2 Merge pull request #514 from flatcar-linux/kai/package-updates-openssl
Update packages for openssl update
2020-08-12 18:16:34 +02:00
Kai Lüke
76039ab99e app-admin/etcd-wrapper: Adjust data dir permissions
Beginning with etcd 3.4 the desired permissions of the data directory
are checked.
The used 755 permissions are not desired and have to be adjusted.
2020-08-12 15:34:47 +02:00
Flatcar Buildbot
6cb09822c9 sys-kernel: Upgrade coreos-kernel 5.4.57 to 5.4.58 2020-08-12 07:19:53 +00:00
Kai Lüke
aaaee0d31e sys-auth/sssd: Apply Flatcar patches 2020-08-11 11:19:01 +02:00
Kai Lüke
5ff7a3464c sys-auth/sssd: Drop unstable versions 2020-08-10 20:34:12 +02:00
Kai Lüke
38929f12ff sys-auth/sssd: Sync from Gentoo 2020-08-10 20:33:29 +02:00
Flatcar Buildbot
cc4431e91f dev-lang: Upgrade Go 1.13.14 to 1.13.15 2020-08-10 07:25:01 +00:00
Flatcar Buildbot
73fb3512d5 sys-kernel: Upgrade coreos-kernel 5.4.55 to 5.4.57 2020-08-08 07:20:03 +00:00
Kai Lüke
29e522f210 dev-libs/cyrus-sasl: Apply Flatcar patch and drop r4 ebuild 2020-08-07 16:36:58 +02:00
Kai Lüke
7001363e52 dev-libs/cyrus-sasl: Sync from Gentoo 2020-08-07 15:32:07 +02:00
Kai Lüke
f282ca0fd4 app-crypt/trousers: Apply Flatcar modifications 2020-08-07 13:38:10 +02:00
Kai Lüke
16dbf342bc app-crypt/trousers: Sync from Gentoo 2020-08-07 13:29:26 +02:00
Kai Lüke
171e7e21ad .github: Import second signing key
The last cork release was signed with a different key.
Import the key to verify the download.
2020-08-06 12:51:26 +02:00
Kai Lüke
bc594381c6 Overwrite openssl mask in portage-stable
The outdated portage-stable mask file can't be updated until we update
glibc or unmask it. Instead of dealing with glibc masking, just address
the situation of this openssl version being masked in the outdated file.
2020-08-05 21:58:36 +02:00
Kai Lüke
ebe7f74a27 net-misc/openssh: Apply CoreOS changes
- Drop the init.d files.
- Remove the socket unit's rate limiting.

Instead of dropping bindist, enable it with the profiles now so it
doesn't need to be modified on future updates.
2020-08-05 21:57:25 +02:00
Kai Lüke
406ad6140a net-misc/openssh: Sync with Gentoo's latest stable 2020-08-05 21:57:19 +02:00
Kai Lüke
b3c4c2f834 dev-libs/openssl: Apply CoreOS changes
- Drop pkg_postinst.
- Create /etc/ssl with tmpfiles (and package it for the SDK).
2020-08-05 21:50:29 +02:00
Kai Lüke
e752ae84a0 dev-libs/openssl: Sync with Gentoo's latest 1.1.1 stable 2020-08-05 21:50:17 +02:00
Sayan Chowdhury
f6a979a364 Merge pull request #511 from flatcar-linux/sayan/systemd-v245-flatcar-sync
sys-apps/systemd: Update systemd to v245.7
2020-08-05 15:25:39 +05:30
Sayan Chowdhury
072ed741b1 sys-apps/systemd: Update systemd to v245.7
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-08-05 15:21:40 +05:30
Kai Lüke
e931f97a79 Merge pull request #506 from flatcar-linux/kai/exclude-weave-from-networkd
coreos-base/coreos-init: Update to exclude weave network devices
2020-08-04 15:10:25 +02:00
Marga Manterola
64226cd354 bootengine: move to version with disk randomization fix
This includes adding execution permissions to the new disk-uuid script.
2020-08-04 11:42:52 +02:00
Kai Lüke
acf53beabb Merge pull request #510 from flatcar-linux/kai/amazon-aws-agent
Build amazon-ssm-agent package but disable it for now
2020-08-03 19:12:54 +02:00
Kai Lüke
4d826abf41 Build amazon-ssm-agent package but disable it for now
The amazon-ssm-agent package was never built and caused the vm-matrix
job to find no binary package.
Build it as part of build_packages but don't install it on openstack
or brightbox images. The plan is to add it for EC2 but currently the
binaries are too large.
2020-08-03 18:24:12 +02:00
Kai Lüke
03cdfb5bd9 Revert "Build app-emulation/amazon-ssm-agent with EC2 AMI images"
This reverts commit 58c8b0dc393ce08047f7a4f530ed5da9aa205799.
2020-08-03 18:16:38 +02:00
Flatcar Buildbot
9fd5a44e39 sys-kernel: Upgrade coreos-kernel 5.4.53 to 5.4.55 2020-08-01 07:18:42 +00:00
Kai Lüke
b1af220ef9 coreos-base/coreos-init: Update to exclude weave network devices
The special weave devices are now excluded from networkd to prevent
interference.
This pulls in
https://github.com/flatcar-linux/init/pull/22
2020-07-31 15:09:47 +02:00
Kai Lüke
f45f540b65 sys-apps/systemd: Add tmpfile directive for /var/log/journal/remote
The folder /var/log/journal/remote used to be part of the inital rootfs
through a keepdir directive in the build. However, any paths except
/usr are ephemeral and can be deleted at any time and should be recreated
with tmpfile directives. When upstream Gentoo removed the line
"keepdir /var/log/journal/remote" our tests started to fail but in fact
they could have failed earlier if they had tested with Ignition creating
a new root filesystem which lacks the /var/log/journal/remote folder.
Add a directive to create /var/log/journal/remote at runtime in any case.
2020-07-30 19:16:47 +02:00
Kai Lüke
7b28342265 sys-fs/lvm2: Run lvm2-activation(-early).service only once
Increase the revision and apply a new lvm2-2.02.145-oneshot.patch:
  The lvm2-activation(-early).service was triggered multiple times which
  if done too quickly leads to a failure like this:
  systemd[1]: Finished Activation of LVM2 logical volumes.
  systemd[1]: lvm2-activation-early.service: Start request repeated too quickly.
  systemd[1]: lvm2-activation-early.service: Failed with result 'start-limit-hit'.
  Set RemainAfterExit=yes as done for the other oneshot services to
  prevent the unit from running multiple times in a row and hitting the
  restart limit.
The patch was sent to upstream lvm-devel@redhat.com
2020-07-30 18:11:37 +02:00
Kai Lüke
4ac7513875 app-misc/ca-certificates|sys-apps/baselayout: Run flatcar-tmpfiles|clean-ca-certificates only once
The flatcar-tmpfiles and clean-ca-certificates services were run
many times and finally failed to run because they were spawned too
often during the allowed time period.
Mark them as active after they ran once. Also ensure that when they
run all mounts are ready.
Pulls in https://github.com/flatcar-linux/baselayout/pull/4
2020-07-30 18:11:37 +02:00
Kai Lüke
8f994d6963 sys-apps/baselayout: Work around systemd-tmpfiles not finding libidn2
The baselayout ebuild file calls systemd-tmpfiles but despite that
the systemd ebuild file depends on libidn2 through a use flag, it was
not built early enough.
Ensure that libidn2 is built before baselayout wants to use it.
2020-07-29 16:33:32 +02:00
Kai Lüke
c66b25ccfe sys-apps/systemd: Guard deletion of hwdb.d folder behind use flag
Building systemd in the SDK bootstrap failed because the hwdb.d folder
did not exist. The upstream ebuild file has this guard:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/systemd/systemd-245.5.ebuild#n390
2020-07-29 12:37:54 +02:00
Kai Lüke
c0d4c41ae3 Merge pull request #498 from flatcar-linux/kai/no-md5-cache
metadata: Delete md5-cache
2020-07-28 16:52:46 +02:00
Kai Lüke
158f72af0f Merge pull request #494 from flatcar-linux/kai/migrate-github-actions
Migrate GitHub actions
2020-07-28 15:36:10 +02:00
Kai Lüke
a1727654a8 .github: Do not create metadata/md5-cache commits 2020-07-28 15:12:58 +02:00
Kai Lüke
0066ee57e0 .github: Setup kernel updates for maintenance branches 2020-07-28 15:05:31 +02:00
Kai Lüke
0324dd7f93 metadata: Delete md5-cache
The metadata/md5-cache folder is machine-generated based on the
other files in the repository. It causes merge conflicts when at
one time they were not regernated in a commit and then later a
commit does it and includes cache changes which	are incompatible
with later or newer states.
Remove the folder as it	is not necessary to have it and was removed
in upstream Gentoo, too.
2020-07-27 16:20:16 +02:00
Kai Lüke
1965865b12 Revert "sys-libs/glibc: update to 2.30-r8"
This reverts commit 7ed010a557a898ffce6697f4006e27294f2d77f6.
2020-07-27 11:54:27 +02:00
Kai Lüke
eba038aed2 Revert "sys-libs/glibc: Apply Flatcar changes"
This reverts commit 640d6894a1cd788f4e3250878f2d31b801728ed3.
2020-07-27 11:54:19 +02:00
Dongsu Park
06166e3b6e Merge pull request #488 from flatcar-linux/linux-5.4.53-alpha
Upgrade Linux Kernel in Alpha from 5.4.52 to 5.4.53
2020-07-24 15:32:00 +02:00
Kai Lüke
4e25834549 .github: Only update the new main branch
The new main branch is the only branch that should get new software
updates with the exception of the maintenance branches that get kernel
updates.
Only target the main branch with GitHub Actions until we add discovery
for all active channel maintenance branches.
2020-07-23 19:26:09 +02:00
Dongsu Park
bb6a5945f4 .github: replace COMMIT_ID in runc ebuilds
So far Github actions have not changed existing `COMMIT_ID` variable in
runc ebuilds. As a result, the result PRs have correct versions with wrong
commit hashes.

We need to replace `COMMIT_ID` with one that matches with the new version.
To do that, clone the repo completely, since it is not possible to get
the commit hash by running `git rev-parse` on a shallow cloned repo.
Parse commit from a tag with an original version with `-` as its
delimiter, e.g. `v1.0.0-rc91`, because a transformed
tag like `v1.0.0_rc91` does not exist in the upstream repo.
2020-07-23 18:32:28 +02:00
Sayan Chowdhury
39b5c5d2e0 .github/workflows: Update the kernel release edge version to 5.7
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-23 18:32:28 +02:00
Dongsu Park
faf94bbe20 .github: update rust versions also in profiles
We need to update rust versions also in multiple files in profiles,
e.g. `package.accept_keywords`. Otherwise `emerge rust` will fail,
due to mismatches between rust versions, in profiles and the actual
ebuilds.
2020-07-23 18:32:28 +02:00
Dongsu Park
ee7960d64e .github: fix version format in docker-runc
docker-runc ebuild has lines of runc versions with not only underscore
(`_`) but also hyphen (`-`). So when we replace the runc version, we
need to also care about versions with hyphen, for example, `1.0.0-rc10`.
2020-07-23 18:32:28 +02:00
Dongsu Park
e4c1f9b59a .github: correctly check status of checkout_branches
`exit` command will simply fail the whole script, so it would not be
possible to check for status of `checkout_branches`. Instead, we need to
use `return` for the error checks.
2020-07-23 18:32:28 +02:00
Dongsu Park
b330d54042 .github: update Kernel version to 5.4 for beta
Now that we updated Kernel to 5.4 for Beta, we also need to set Kernel
version to 5.4 in Github Actions.
2020-07-23 18:32:28 +02:00
Dongsu Park
730ae31678 .github: skip branch checkout if it exists
In case the target branch already exists, `checkout_branch()` needs to
simply `exit 0`, so the subsequent steps could be skipped.
In that case, it has to set `UPDATE_NEEDED` to 0, so the Github action
could avoiding creating another PR.

It resolves occasional issues that happen when subsequent PRs overwrite
existing open PRs made on the very same version. It would be no problem
if there was no change in the PR. However, if there was any manual
change in the previous open PR, the change will be simply overwritten.
That would be very unfortunate.
2020-07-23 18:32:27 +02:00
Dongsu Park
e48aa048a2 .github: check out with a specific channel name
When checking out into a branch name, append `-${CHANNEL}` to the name,
so the branch can be distinguished from each other. To do that, make
every Github actions yaml file pass in its corresponding `CHANNEL`
variable.
2020-07-23 18:32:27 +02:00
Dongsu Park
ee727b639f .github: generate package versions from input values
We do not need to specify each version from each workflow yaml file.
Make *-apply.patch scripts instead generate `$VERSION_SHORT` from the
input version value.
2020-07-23 18:32:27 +02:00
Dongsu Park
596136827b .github: detect latest cork version during SDK setup
We do not need to specify a cork version from each Github action.
Simply detect the latest version in `setup-flatcar-sdk.sh`, before
downloading cork binary file from Github.

Also remove the env variable for cork version from each Github action.
2020-07-23 18:32:27 +02:00
Dongsu Park
566be32dfd .github: update Kernel version to 5.4 for Alpha
Now that Kernel was updated to 5.4 in flatcar-master-alpha, we need
to update also Kernel versions for Alpha in Github actions.
2020-07-23 18:32:27 +02:00
Dongsu Park
8ae55c6d77 .github: schedule weekly Github actions for containerd
To get containerd in sync with upstream, we need to schedule weekly
Github actions. It runs on Friday every week, only for Alpha and Edge.
Similar to those for Docker, we need to deal with torcx ebuilds as well,
as they contain containerd versions.
2020-07-23 18:32:27 +02:00
Dongsu Park
eba279d24f .github: run weekly once to check for usual packages
We do not need to run once in a day to check for updates from
ordinary packages. Most releases happen once in more than a week.
So schedule the Github actions only once in a week for most packages.
Go on Mon, Rust on Tue, Docker on Wed, Runc on Thu.

Note, we still need to check for Kernel once in a day, as Kernel
releases happen quite often.
2020-07-23 18:32:27 +02:00
Dongsu Park
f6d9de2f68 .github: detect kernel version correctly
`kernel-apply-patch.sh` cannot detect the existing kernel version,
if the version does not have a patchlevel, e.g. `5.6`. So the old
kernel version variable becomes an empty string, and the final pull
request has an empty field after the `from` string.

If the Manifest does not have a `patch-` line, try to read a `linux-`
line again, to detect the correct kernel version.
2020-07-23 18:32:26 +02:00
Dongsu Park
0d4a0194be .github: split out from runc into common.sh
To avoid duplicates, make runc-apply-patch.sh use the helper
functions in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
c74c31a835 .github: split out from docker into common.sh
To avoid duplicates, make docker-apply-patch.sh use the helper
functions in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
2957eb592f .github: split out from Go into common.sh
To avoid duplicates, make go-apply-patch.sh use the helper functions
in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
9575d9251c .github: split out from rust into common.sh
To avoid duplicates, make rust-apply-patch.sh use the helper functions
in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
a292bdd1be .github: rename versionOld to VERSION_OLD
To make go-apply-patch.sh work with the new helpers,
we need to remove `versionOld` to `VERSION_OLD`.
2020-07-23 18:32:26 +02:00
Dongsu Park
e45323dc37 .github: split out from kernel into common.sh
To avoid duplicates, we should split out common parts into
separate functions in `common.sh`.
Make kernel-apply-patch.sh use the helper functions.
2020-07-23 18:32:25 +02:00
Dongsu Park
de65e80178 .github: schedule daily Github actions for Rust
Schedule daily Github actions for creating PRs for upstream Rust releases.

The Github workflow will create pull request for `dev-lang/rust` in
`coreos-overlay`. At the same time, it will send a repository dispatch
event to `flatcar-linux/portage-stable`, to update also `virtual/rust`.
We need to send different event types to distinguish alpha from edge.
2020-07-23 18:32:25 +02:00
Dongsu Park
a4b6456806 .github: use correct make.conf when setting up Flatcar SDK
When setting up a Flatcar SDK from scratch, we need to also set up
correct configs in `/etc/portage/make.conf`. For example we need to
set `PORTDIR=/mnt/host/source/src/third_party/portage-stable` instead
of the default Gentoo configs like `PORTDIR=/var/gentoo/repos/gentoo`.

Otherwise `update_metadata` will fail in some cases, because portage
cannot find the correct location of portage-stable.
2020-07-23 18:32:25 +02:00
Dongsu Park
4efb14c2a3 .github: check out correct base branches before applying patches
Before starting to apply patches inside `coreos-overlay`, we need to
check out base branches, also for `scripts` and `portage-stable`.
Otherwise, in case of Beta, Alpha, or Edge, `ebuild` commands could
fail due to mismatch of ebuild files across multiple repos like
`coreos-overlay` and `portage-stable`.
2020-07-23 18:32:25 +02:00
Dongsu Park
4e33e9667c .github: fix metadata generation for Kernel and Go
We need to generate metadata after the main commit was created.
Also run git format-patch for both commits, main and metadata.
2020-07-23 18:32:25 +02:00
Dongsu Park
0f4f393884 .github: update Kernel to 5.6 for Edge
Upgrade the base Kernel version from 5.5 to 5.6 for the Edge channel.
2020-07-23 18:32:25 +02:00
Dongsu Park
8bd2c35747 .github: get metadata included in the generated PRs
We need to get metadata included in the generated pull requests.
2020-07-23 18:32:25 +02:00
Dongsu Park
e10e7e45b7 .github: also update metadata on go-apply-patch 2020-07-23 18:32:24 +02:00
Dongsu Park
7e008ca73c .github: also generate metadata on kernel-apply-patch 2020-07-23 18:32:24 +02:00
Dongsu Park
9936ea8841 .github: schedule daily Github actions for Kernel in beta, stable
Check for upstream Kernel releases once in a day, for Beta and Stable,
just like it has been done for Alpha and Edge.
2020-07-23 18:32:24 +02:00
Dongsu Park
c33e7561c1 .github: fix sed expressions in runc-apply-patch
To be able to sort correctly between official releases and rc releases,
we need to add some sed tweaks when getting the original runc version.
2020-07-23 18:32:24 +02:00
Dongsu Park
40ebacc970 .github: schedule daily Github actions for runc
Schedule daily Github actions for upstream runc releases, just like
Docker.

In this case, we also need to update multiple repos like
`app-emulation/docker`, `app-emulation/containerd`, `app-torcx/docker`, etc.
2020-07-23 18:32:24 +02:00
Dongsu Park
e047f6db2f .github: schedule daily Github actions for Docker
Schedule daily Github actions to get upstream Docker releases,
for Alpha and Edge.

We need to change more files, as Docker version is used by torcx
as well as docker-runc.
2020-07-23 18:32:24 +02:00
Dongsu Park
f9163d93c6 .github: set up coreos profiles after setting up SDK
We need to set up coreos profiles under `/etc/portage/repos.conf`, to be
able to run any package-related actions like `emerge` or `egencache`.

Also change permissions for directories, so portage actions could write
files.
2020-07-23 18:32:23 +02:00
Dongsu Park
1011b5d7a2 .github/workflows: do not clone the whole golang repo
Instead of cloning the whole golang github repo, we should do a
shallow clone, and parse the tags list by running `git ls-remote`.
2020-07-23 18:32:23 +02:00
Dongsu Park
2b9e74e80c .github: git shallow clone instead of full clone for kernel
To reduce running time of git clone, we should avoid a full git clone
of the linux kernel repo. Instead, we shallow clone the repo, and
parse tags list by running `git ls-remote`.
2020-07-23 18:32:23 +02:00
Dongsu Park
f0db41dbb5 .github: schedule daily Github actions for Go
Schedule daily Github actions for creating PRs for upstream Go releases,
just like Kernel.
2020-07-23 18:32:23 +02:00
Dongsu Park
4e9d98cc60 .github: do not fail if the release is already the latest Kernel
If the current Flatcar release is already the latest Kernel, we should
simply exit with 0, without giving a failure status 1. The `exit 1`
would the otherwise result in a failure of the entire Github actions.
2020-07-23 18:32:23 +02:00
Dongsu Park
a5ef692fd1 .github: fix a commit message in Kernel workflows
We should use a prefix `sys-kernel`, without `coreos-sources`.
2020-07-23 18:32:23 +02:00
Dongsu Park
6ac7367f83 schedule daily Github actions for Kernel
This commit add 2 different Github actions that run once in a day,
one for Alpha, Kernel 4.19, and the other for Edge, Kernel 5.5.

Because of limitations of Github Actions, i.e. create-pull-request
actions, we cannot combine the two actions into one.
Also we need to create a patch and apply it to the top source directory,
since the create-pull-request action requires the changes in the top
directory.

Although we are not updating flatcar-master branch, (only Alpha and
Edge) the Github actions files need to be merged to flatcar-master,
because Github actions can only schedule cron jobs from the default
branch, flatcar-master.
2020-07-23 18:32:22 +02:00
Sayan Chowdhury
fd2b02b69f Merge pull request #490 from flatcar-linux/sayan/coreos-init-revision-bump
coreos-base/coreos-init: revision bump
2020-07-22 16:03:33 +05:30
Sayan Chowdhury
36f735f3e3 coreos-base/coreos-init: revision bump
This is to include *.network file changes due to systemd v245 migration

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-22 15:25:49 +05:30
Flatcar Buildbot
ecea44b833 chore(metadata): Regenerate cache 2020-07-22 08:07:42 +00:00
Flatcar Buildbot
21b5e7cd3a sys-kernel: Upgrade coreos-kernel 5.4.52 to 5.4.53 2020-07-22 08:07:42 +00:00
Salvatore Mazzarino
a8b6a0f004 sys-kernel/coreos-modules: enable virtio modules (mmio and vsock) for Firecracke
Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
2020-07-21 17:54:46 +02:00
Kai Lüke
62689b3a51 Merge pull request #481 from flatcar-linux/kai/change-firmware-url
sys-kernel/coreos-firmware: Change source URL to reliable mirror
2020-07-21 13:23:56 +02:00
Kai Lüke
9fcf4424d4 sys-kernel/coreos-firmware: Change source URL to reliable mirror
The caching git web view which was used as source location is not
reliable because the cache can be corrupt, the gzip compression of the
snapshot can change, and the cache is produced by the web server which
is not there to give high security guarantees. We experienced cache
corruption.
Switch to the recommended mirror under
https://mirrors.edge.kernel.org/pub/linux/kernel/firmware/
which also hosts signatures and not having the downsides mentioned
above. This is a downstream change until upstream Gentoo changes the
location.
2020-07-21 12:06:20 +02:00
Dongsu Park
b16c859b93 Merge pull request #431 from flatcar-linux/dongsu/glibc-2.30-alpha
sys-libs/glibc: update glibc to 2.30-r8 for alpha
2020-07-21 11:33:53 +02:00
Sayan Chowdhury
d748a91dc7 Merge pull request #448 from flatcar-linux/sayan/upgrade-systemd-to-v245
sys-apps/systemd: Update systemd to v245
2020-07-21 15:01:55 +05:30
Sayan Chowdhury
9d5ba18810 sys-kernel/bootengine: Bump revision
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-21 13:53:35 +05:30
Dongsu Park
976af87252 Merge pull request #479 from flatcar-linux/go-1.13.14-alpha
Upgrade Go in Alpha from 1.13.12 to 1.13.14
2020-07-20 17:40:01 +02:00
Sayan Chowdhury
5a6fa682da chore(metadata): Regenerate cache 2020-07-20 17:25:12 +05:30
Sayan Chowdhury
643bcaccec Update the CROS_WORKON_COMMIT for bootengine, and coreos-init
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-20 17:25:09 +05:30
Krzesimir Nowak
9d4262d28c Followup backports from upstream
At the same time, try to document all the Flatcar specific changes.

Co-authored-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-07-20 16:45:38 +05:30
Sayan Chowdhury
aa53e2ed3a sys-apps/systemd: Update systemd to v245
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-20 16:43:49 +05:30
Flatcar Buildbot
e44416b45d chore(metadata): Regenerate cache 2020-07-20 07:22:00 +00:00
Flatcar Buildbot
1ba7257bce dev-lang: Upgrade Go 1.13.12 to 1.13.14 2020-07-20 07:22:00 +00:00
Flatcar Buildbot
aafbe0ff49 chore(metadata): Regenerate cache 2020-07-16 07:07:09 +00:00
Flatcar Buildbot
d84648559d sys-kernel: Upgrade coreos-kernel 5.4.51 to 5.4.52 2020-07-16 07:07:09 +00:00
Kai Lüke
54ab97589b dev-lang/rust: Apply Flatcar patch
- Added crossdev patch
- Removed Python 3.8 support which we don't have yet
2020-07-15 18:10:00 +02:00
Kai Lüke
34c2cdcc8e dev-lang/rust: Sync Gentoo ebuild file 2020-07-15 18:10:00 +02:00
Dongsu Park
cf049abbd9 Merge pull request #440 from flatcar-linux/rust-1.44.1-alpha
Upgrade Rust in Alpha from 1.43.1 to 1.44.1
2020-07-14 14:36:35 +02:00
Sayan Chowdhury
091b16e493 Merge pull request #365 from samm-git/flatcar-ssm
Add Amazon SSM manager to the EC2 images
2020-07-13 23:59:58 +05:30
Dongsu Park
a0c45ef355 chore(metadata): Regenerate cache 2020-07-13 10:46:58 +02:00
Dongsu Park
1a8e6cb1ec dev-lang/rust: fix build failures after updates to 1.44.1
Update rust ebuild 1.44.1 to get it synced with upstream Gentoo.

Now that rust was updated to 1.44.1, we need to update patch files
and ebuilds, so that it can build without build failures.
2020-07-13 10:46:58 +02:00
Flatcar Buildbot
ec86861018 chore(metadata): Regenerate cache 2020-07-13 10:46:57 +02:00
Flatcar Buildbot
284f07d020 dev-lang: Upgrade Rust 1.43.1 to 1.44.1 2020-07-13 10:46:19 +02:00
Sayan Chowdhury
11cbd24e9d Merge pull request #466 from flatcar-linux/sayan/upgrade-flannel-wrapper-0-12-0
Bump flannel-wrapper to 0.12.0
2020-07-11 01:10:29 +05:30
Dongsu Park
00af243122 Merge pull request #469 from flatcar-linux/linux-5.4.51-alpha
Upgrade Linux Kernel in Alpha from 5.4.50 to 5.4.51
2020-07-10 13:44:55 +02:00
Dongsu Park
fdb8c71f3a Merge pull request #381 from flatcar-linux/dongsu/gnupg-alpha
app-crypt/gnupg: add patches for accepting without UIDs for alpha
2020-07-10 09:57:30 +02:00
Dongsu Park
86217c645d profiles: bump GnuPG versions to 2.2.20 for both arches 2020-07-10 09:55:21 +02:00
Dongsu Park
bff1e680ef app-crypt/gnupg: add patches for accepting without UIDs
When the GnuPG keyserver is set to `keys.openpgp.org`, `gpg --recv-keys`
occasionally fails with the following error:

```
gpg: key E52F0DB391453C45: no user ID
```

We need to make GnuPG accept keys even without UIDs.
Original patches come from
f292beac11/debian/patches/import-merge-without-userid .
See also https://dev.gnupg.org/T4393 .
2020-07-10 09:55:15 +02:00
Flatcar Buildbot
e4e4983ef7 chore(metadata): Regenerate cache 2020-07-10 07:06:32 +00:00
Flatcar Buildbot
0c365e62aa sys-kernel: Upgrade coreos-kernel 5.4.50 to 5.4.51 2020-07-10 07:06:32 +00:00
Dongsu Park
6b6a6e559a app-crypt/gnupg: import upstream gnupg 2.2.20 2020-07-09 17:55:45 +02:00
Sayan Chowdhury
7e76c7cafd Bump flannel-wrapper to 0.12.0
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-09 19:18:09 +05:30
Sayan Chowdhury
7e39addf90 Bump app-admin/etcd-wrapper to 3.3.22
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-09 11:18:44 +00:00
Dongsu Park
d2934cde4d Merge pull request #460 from flatcar-linux/containerd-1.3.6-alpha
Upgrade Containerd in Alpha from 1.3.4 to 1.3.6
2020-07-09 09:01:31 +02:00
Dongsu Park
a0e3a6674a sys-apps/ignition: fix package name to fetch
Update ignition to fix an internal package name to fetch.

Pulls in https://github.com/flatcar-linux/ignition/pull/14
2020-07-08 12:36:08 +02:00
Dongsu Park
4478f93fc0 Merge pull request #456 from flatcar-linux/linux-5.4.50-alpha
Upgrade Linux Kernel in Alpha from 5.4.49 to 5.4.50
2020-07-08 11:43:35 +02:00
Dongsu Park
7c23b07511 sys-kernel: enable kernel config CONFIG_IKHEADERS
Enable kernel config
[CONFIG_IKHEADERS](435faf5c21/init/Kconfig (L610-L617)
),
to make Kernel export kernel headers via `/sys/kernel/kheaders.tar.xz`.
Then bpf-related tools can be used without additional kernel headers in
userspace.
2020-07-03 12:40:59 +02:00
Flatcar Buildbot
973e2fd584 chore(metadata): Regenerate cache 2020-07-03 08:09:16 +00:00
Flatcar Buildbot
0415778311 app-emulation: Upgrade Containerd 1.3.4 to 1.3.6 2020-07-03 08:09:16 +00:00
Flatcar Buildbot
92d8f2eeee chore(metadata): Regenerate cache 2020-07-02 07:08:50 +00:00
Flatcar Buildbot
86253d468f sys-kernel: Upgrade coreos-kernel 5.4.49 to 5.4.50 2020-07-02 07:08:50 +00:00
Flatcar Buildbot
56f892ae9b chore(metadata): Regenerate cache 2020-07-01 07:43:13 +00:00
Flatcar Buildbot
cfe38ca6bd app-emulation: Upgrade Docker 19.03.11 to 19.03.12 2020-07-01 07:43:13 +00:00
Kai Lüke
0d54b852b5 sys-kernel/bootengine: Update to include static IP address fix
This pulls in https://github.com/flatcar-linux/bootengine/pull/15
to ensure that /etc/systemd/network/ exists to write networkd unit
when static IP addresses are configured through the kernel command
line in the format ip=<ip>::<gateway>:<netmask>:<hostname>:<iface>:none[:<dns1>[:<dns2>]]
https://docs.flatcar-linux.org/ignition/network-configuration/#using-static-ip-addresses-with-ignition
2020-06-30 12:38:40 +02:00
Dongsu Park
c75a36d75b Merge pull request #443 from flatcar-linux/linux-5.4.49-alpha
Upgrade Linux Kernel in Alpha from 5.4.47 to 5.4.49
2020-06-29 17:31:17 +02:00
Kai Lüke
44dbd37ff6 app-admin/locksmith: Migrate to Go modules
Pulls in
https://github.com/flatcar-linux/locksmith/pull/4
2020-06-29 16:17:22 +02:00
Dongsu Park
67c51a96e8 Revert "profiles: force to use ssl USE flag for wget"
This reverts commit 517e23ebfe96137f1482ae42f8b29fc2f1b31317.

The new USE flag `ssl` for wget resulted in a strange issue.
`wget` started to pull in `dev-libs/openssl`, which has `bindist` in its
USE flag. The catalyst stages, however, need to install wget without
`bindist`. Such mismatches resulted in errors like:

```
!!! All ebuilds that could satisfy "dev-libs/openssl:0=" for /tmp/stage1root/ have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-libs/openssl-1.0.2u::coreos (masked by: bindist in RESTRICT)
```

So to fix the issue, what needs to be done is basically:

```
ACCEPT_RESTRICT=bindist USE=-bindist emerge -pv openssl openssh
```

Unfortunately it is not possible to set `accept_restrict` configs
under the coreos-overlay repo. We need to have some time to investigate
why it is so.

As a hotfix, we need to revert the `ssl` USE flag for wget.
2020-06-26 16:11:57 +02:00
Vincent Batts
4435726c00 etcd: update URL to it's own org on github now
even though they're still building from quay.io/coreos/etcd? maybe
that'll change soon too?

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-06-26 16:07:05 +02:00
Flatcar Buildbot
cd47202838 chore(metadata): Regenerate cache 2020-06-26 09:18:03 +02:00
Flatcar Buildbot
86998589ed app-emulation: Upgrade Runc 1.0.0_rc10 to 1.0.0_rc90 2020-06-26 09:17:14 +02:00
Dongsu Park
3191861b0e Merge pull request #394 from flatcar-linux/docker-19.03.11-alpha
Upgrade Docker in Alpha from 19.03.8 to 19.03.11
2020-06-26 09:14:20 +02:00
Dongsu Park
cc2fcb56a1 Merge pull request #396 from flatcar-linux/dongsu/docker-go1.13-alpha
app-emulation/docker: set go1.13 in DOCKER_BUILDTAGS for alpha
2020-06-26 09:12:17 +02:00
Dongsu Park
037b53190e profiles: force to use ssl USE flag for wget
When catalyst tries to fetch a file via https, wget sometimes fails
to do so, with the following messages:

```
https://www.kernel.org/pub/software/scm/git/git-2.24.1.tar.xz: HTTPS
support not compiled in.
!!! Couldn't download 'git-2.24.1.tar.xz'. Aborting.
```

That probably happens because wget in some catalyst stages are compiled
without `ssl` USE flag. If a catalyst stage is lucky enough to rebuild
wget with `ssl` before actually fetching a file, it would work well.
Though if not, it would fail. It is not deterministic, and hard to
reproduce.

So backport the fix from upstream Gentoo,
https://github.com/gentoo/gentoo/commit/d141380b915d , for both amd64
and arm64. By setting `ssl` for wget in `package.use.force`, it is now
not possible to disable `ssl` for wget.

More details: https://bugs.gentoo.org/611072
2020-06-25 16:34:30 +02:00
Flatcar Buildbot
d4055031a4 chore(metadata): Regenerate cache 2020-06-25 07:07:13 +00:00
Flatcar Buildbot
a868c2024b sys-kernel: Upgrade coreos-kernel 5.4.47 to 5.4.49 2020-06-25 07:07:13 +00:00
Dongsu Park
930c8a40fa sys-libs/glibc: Apply Flatcar changes
Drop pkg_pretend since it breaks build_image if cross-compilers are
not installed yet (e.g. in Jenkins jobs).

Drop the libidn2 runtime dependency since it breaks bootstrapping,
and it's dlopen()ed so the resolver can work without it.

Drop the host /dev/pts checks since the SDK doesn't control it.

Apply our gshadow segfault patch, and adapt into glibc 2.30.

Install nscd.conf in /usr and set up tmpfiles to link it in /etc.

Wipe out /etc files (except for an environment file that is still
needed in the SDK).

Originally comes from eb07324f4de3 ("sys-libs/glibc: Apply CoreOS
changes").
2020-06-19 15:57:10 +02:00
Dongsu Park
e43d18f0da sys-libs/glibc: update to 2.30-r8
Update glibc to 2.30-r8 to sync with upstream Gentoo, to address
security issues reported as
[GLSA 202006-04](https://security.gentoo.org/glsa/202006-04).
2020-06-19 15:57:10 +02:00
Dongsu Park
4b37cf1e73 Merge pull request #430 from flatcar-linux/linux-5.4.47-alpha
Upgrade Linux Kernel in Alpha from 5.4.46 to 5.4.47
2020-06-19 10:23:38 +02:00
Sayan Chowdhury
dc39ed2025 Merge pull request #421 from flatcar-linux/sayan/update-to-intel-microcode-20200609_p20200601-alpha
sys-firmware/intel-microcode: update to 20200609
2020-06-18 19:09:27 +05:30
Flatcar Buildbot
5aadf68896 chore(metadata): Regenerate cache 2020-06-18 07:09:39 +00:00
Flatcar Buildbot
1a2717f498 sys-kernel: Upgrade coreos-kernel 5.4.46 to 5.4.47 2020-06-18 07:09:39 +00:00
Flatcar Buildbot
2514c02574 chore(metadata): Regenerate cache 2020-06-17 16:46:22 +02:00
Flatcar Buildbot
c155b5d9f6 app-emulation: Upgrade Docker 19.03.8 to 19.03.11 2020-06-17 16:45:53 +02:00
Kai Lüke
15eae915b4 app-admin/*-wrapper: Only set arguments that weren't set
When 788f328dc752a75da08d4c6fc27d094ecb4807d5 introduced pulling from
docker by default, "--insecure-options=image" was added for all
docker registries. However, when the user also needs to set "http" as
in "--insecure-options=image,http" it will not be used because the
other argument is added as last disregarding the option was already
set by the user.
Check if the option was set by the user and only add it if it is not
provided. If the user forgets to add "image" then rkt will simply
fail and tell that this option is needed; thus no complex logic of
appending and detecting only "image" is needed. Do the same for the
"--trust-keys-from-https" option to be consistent in allowing to
overwrite it with "--trust-keys-from-https=false".
2020-06-17 14:48:24 +02:00
Sayan Chowdhury
4fad288ad6 Merge pull request #400 from flatcar-linux/sayan/enable-getty-systemd
sys-apps/systemd: Manually enable the getty service
2020-06-17 15:11:21 +05:30
Sayan Chowdhury
5ae07c842e sys-firmware/intel-microcode: rev bump; sync with upstream
- Mask sig 0x000406e3, pf_mask 0xc0, revision=0xd6 [Link 1]
- Mask sig 0x000406e3, pf_mask 0xc0, revision=0xda [Bug 722768]
This will basically downgrade microcode for 0x000406e3 back to rev 0x00d6 from 2019-10-03.

Link1: c1d8ba62ab

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-06-15 20:33:32 +05:30
Oleksii Samorukov
d766dab629 Build app-emulation/amazon-ssm-agent with EC2 AMI images
- Add Dependency 
- Add ignition configuration to create systemd units and SSM config
2020-06-12 01:34:45 +02:00
Oleksii Samorukov
985a767e7f Add app-emulation/amazon-ssm-agent ebuild 2020-06-12 01:34:45 +02:00
Sayan Chowdhury
cbbed18c20 sys-firmware/intel-microcode: update to 20200609
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-06-11 15:28:01 +05:30
Flatcar Buildbot
494389b705 chore(metadata): Regenerate cache 2020-06-11 07:07:10 +00:00
Flatcar Buildbot
0705546e21 sys-kernel: Upgrade coreos-kernel 5.4.44 to 5.4.46 2020-06-11 07:07:10 +00:00
Kai Lüke
5c202dc3ec coreos-devel/mantle: Use correct Apache license identifier
There is no portage-stable/licenses/Apache-2 file because the
correct name for the license is Apache-2.0, and the missing
license file causes the build to fail.
2020-06-10 19:11:24 +02:00
Sayan Chowdhury
b6b6f60a69 sys-apps/systemd: Manually enable the getty service
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-06-10 20:07:46 +05:30
Dongsu Park
b7d56c85eb sys-auth/sssd: do not depend on gssapi
Now that bind-tools are built with gssapi only for AMD, without gssapi
for ARM, we need to get the USE flag requirement relaxed. Profile for
each architecture will instead choose whether to use gssapi.
2020-06-09 12:40:46 +02:00
Dongsu Park
13876614a7 profiles: enable bind-tools again for ARM
bind-tools has been disabled since a long time, probably because of
build errors around cross-compilation for ARM. However, bind-tools
binaries should be at least included in ARM images. So enable bind-tools
again for ARM without gssapi included.

To do that, disable gssapi for bind-tools only in the ARM profile, and
enable gssapi only in the AMD profile.
2020-06-09 12:40:43 +02:00
Flatcar Buildbot
68df572bbe chore(metadata): Regenerate cache 2020-06-08 07:22:21 +00:00
Flatcar Buildbot
03f94673f4 dev-lang: Upgrade Go 1.13.11 to 1.13.12 2020-06-08 07:22:21 +00:00
Dongsu Park
61aa059a13 app-emulation/docker: set go1.13 in DOCKER_BUILDTAGS
Since Docker >= 19.03.9 started to depend on github.com/pkg/errors
v0.9.1 or newer, it is now necessary to set `go1.13` in
`DOCKER_BUILDTAGS`. Otherwise, it cannot find `Is` function.

See also https://github.com/pkg/errors/blob/v0.9.1/go113.go#L16 .
2020-06-03 11:59:05 +02:00
Flatcar Buildbot
0cb5289164 chore(metadata): Regenerate cache 2020-06-03 07:07:45 +00:00
Flatcar Buildbot
6f08bef5ce sys-kernel: Upgrade coreos-kernel 5.4.43 to 5.4.44 2020-06-03 07:07:45 +00:00
Dongsu Park
0ffea1943b Merge pull request #387 from flatcar-linux/linux-5.4.43-alpha
Upgrade Linux Kernel in Alpha from 5.4.42 to 5.4.43
2020-05-29 17:28:13 +02:00
Kai Lüke
97331a4cf0 Remove rpcgen-from-host patch as qemu-static works on Jenkins 2020-05-29 14:26:51 +02:00
Kai Lüke
c2681c7ed5 Revert "sys-libs/tdb: support cross-builds for WAF"
This reverts commit 53a468b1604076fd3ce5f305d4a87e38a57ccfb4.
2020-05-29 14:26:51 +02:00
Kai Lüke
d4ea67145e Revert "sys-libs/tevent: support cross-builds for WAF"
This reverts commit 5fc31cdfc60522865d5b4c942da9a3410fb4b05f.
2020-05-29 14:26:51 +02:00
Kai Lüke
738c7a24dd Remove WAF cross-compilation patches for arm64
They were needed when Jenkins did not have qemu-static to run compiled
binaries of the target architecture.
Remove the patches as Jenkins is ready now and qemu-static is there to
stay because we need it for SELinux and other things.
2020-05-29 14:26:51 +02:00
Kai Lüke
05eb39365c Revert "net-libs/rpcsvc-proto: make rpcgen work for both architectures"
This reverts commit e04e8177f154b125b5fdd92e7e22805696290a81.
2020-05-29 14:26:50 +02:00
Dongsu Park
3fdcd03489 chore(metadata): Regenerate cache 2020-05-29 09:44:27 +02:00
Dongsu Park
9eb49638d3 dev-lang/rust: update patches and fix build issues 2020-05-29 09:44:27 +02:00
Flatcar Buildbot
ad8de96dcc chore(metadata): Regenerate cache 2020-05-29 09:43:57 +02:00
Flatcar Buildbot
96bb021dfa dev-lang: Upgrade Rust 1.36.0 to 1.43.1 2020-05-29 09:43:57 +02:00
Dongsu Park
b8d772d5a2 Merge pull request #383 from flatcar-linux/dongsu/docker-fix-github-url-alpha
app-emulation/docker: Fix URLs for docker-ce tarballs for alpha
2020-05-28 18:07:03 +02:00
Dongsu Park
14e1f33a03 Merge pull request #327 from flatcar-linux/dongsu/strace-5.6-alpha
dev-util/strace: bump to 5.6 for alpha
2020-05-28 17:12:58 +02:00
Flatcar Buildbot
345e791c50 chore(metadata): Regenerate cache 2020-05-28 07:08:00 +00:00
Flatcar Buildbot
12202cfd4b sys-kernel: Upgrade coreos-kernel 5.4.42 to 5.4.43 2020-05-28 07:08:00 +00:00
Dongsu Park
757779c56d app-emulation/docker: Fix URLs for docker-ce tarballs
Since docker-ce v18.09, the upstream repo github.com/docker/docker-ce
has changed its way of version tagging, from `$VERSION-ce` to `$VERSION`.
As a result, e.g. for v19.03.8,
https://github.com/docker/docker-ce/archive/v19.03.8-ce.tar.gz is not
valid any more. It must be actually
https://github.com/docker/docker-ce/archive/v19.03.8.tar.gz.

So we need to remove the suffix `-ce` from every version since v18.09.
2020-05-27 10:37:26 +02:00
Flatcar Buildbot
7159e84768 chore(metadata): Regenerate cache 2020-05-25 12:24:37 +02:00
Flatcar Buildbot
3e4ae9d90b dev-lang: Upgrade Go 1.13.10 to 1.13.11 2020-05-25 12:24:08 +02:00
Dongsu Park
e2192fda69 Merge pull request #375 from flatcar-linux/linux-5.4.42-alpha
Upgrade Linux Kernel in Alpha from 5.4.41 to 5.4.42
2020-05-25 12:21:02 +02:00
Sayan Chowdhury
728d22f652 Merge pull request #376 from flatcar-linux/sayan/revert-runc-patch
Revert "Merge pull request #289 from flatcar-linux/dongsu/docker-runc-selinux-alpha"
2020-05-22 21:29:52 +05:30
Kai Lüke
762d62e40a sys-kernel/bootengine: Point to latest flatcar-master
Pulls in https://github.com/flatcar-linux/bootengine/pull/13
2020-05-22 15:34:33 +02:00
Kai Lüke
37d7c5b750 coreos-base/update_engine: Point to latest flatcar-master
Pulls in https://github.com/flatcar-linux/update_engine/pull/5
2020-05-22 15:34:33 +02:00
Kai Lüke
3a14e9f45e profiles: Disable ccache
The unzip update in the portage-stable branch going along with this PR
suddenly fails to compile because ccache permissions are wrong in one
subfolder.
Disable ccache because it only gives a low hit rate anyway and once a
package is compiled, emerge will reuse the binary package. (A possible
compilation performance regression would be if a kernel patch is tested
and the kernel package needs to be build over and over again without being
able to keep the object files - not sure if this or something similar is
often the case.)
2020-05-22 15:34:33 +02:00
Benjamin Gilbert
9c97755a7c chore(metadata): Regenerate cache 2020-05-22 15:34:33 +02:00
Benjamin Gilbert
9e7b18d905 app-editors/vim: Apply CoreOS changes
- Drop Python 3.8
2020-05-22 15:34:32 +02:00
Benjamin Gilbert
8523035643 app-editors/vim: Import latest Gentoo stable version 2020-05-22 15:34:32 +02:00
Flatcar Buildbot
4dc6e17d16 chore(metadata): Regenerate cache 2020-05-21 07:07:00 +00:00
Flatcar Buildbot
a5a72f08e5 sys-kernel: Upgrade coreos-kernel 5.4.41 to 5.4.42 2020-05-21 07:07:00 +00:00
Kai Lüke
cda59bca46 sys-apps/seismograph: Point to latest flatcar-master
Pulls in https://github.com/flatcar-linux/seismograph/pull/4
to fix setting GPT labels with cgpt.
2020-05-20 18:24:57 +02:00
Sayan Chowdhury
de5457447a Revert "Merge pull request #289 from flatcar-linux/dongsu/docker-runc-selinux-alpha"
This reverts commit 210d750b39eb2a1e7319dbc445c131bb6e8d3f2d, reversing
changes made to 08771213dbe072daa07182f1b1fc51671471d9ef.
2020-05-20 15:48:59 +05:30
Kai Lüke
17e2dbc8c3 Cleanup files from build bot commit
The upstream patches were applied with a conflict.
These extra files were not deleted when resolving.
2020-05-18 17:48:37 +02:00
Benjamin Gilbert
42bf4024bb chore(metadata): Regenerate cache 2020-05-18 17:15:44 +02:00
Benjamin Gilbert
453b034ca5 dev-libs/openssl: Apply CoreOS changes
- Drop pkg_postinst.
  - Create /etc/ssl with tmpfiles (and package it for the SDK).
2020-05-18 17:15:26 +02:00
Benjamin Gilbert
15a0f44519 dev-libs/openssl: Sync with Gentoo's latest 1.0.2 stable 2020-05-18 17:14:58 +02:00
Krzesimir Nowak
7d130f7149 sys-kernel/bootengine: bump to fix the sysroot-boot service race
Fixes https://github.com/flatcar-linux/Flatcar/issues/83.
2020-05-18 15:18:46 +02:00
Benjamin Gilbert
78875a0303 chore(metadata): Regenerate cache 2020-05-18 14:09:54 +02:00
Benjamin Gilbert
9aadec88d7 dev-db/etcdctl: bump to 3.3.20 2020-05-18 14:08:05 +02:00
Benjamin Gilbert
e5a9a9aec2 app-admin/etcd-wrapper: bump to 3.3.20 2020-05-18 14:08:05 +02:00
Benjamin Gilbert
6129515a84 app-admin/*-wrapper: pull container as docker image by default
quay.io is removing ACI conversion support.  Unless overridden, pull
as a docker image instead.
2020-05-18 14:08:04 +02:00
Sayan Chowdhury
fb44c9302b Merge pull request #356 from flatcar-linux/sayan/upgrade-systemd-alpha-243
sys-apps/systemd: Bump to v243 along with needed ebuild changes
2020-05-15 17:38:51 +05:30
Dongsu Park
663614bd53 sys-apps/seismograph: update to fix rootdev and cgpt
Update commit of seismograph to pull in the PRs:

https://github.com/flatcar-linux/seismograph/pull/2
https://github.com/flatcar-linux/seismograph/pull/3
2020-05-14 16:51:35 +02:00
Flatcar Buildbot
5aedefd395 chore(metadata): Regenerate cache 2020-05-14 07:07:18 +00:00
Flatcar Buildbot
1123ea6bea sys-kernel: Upgrade coreos-kernel 5.4.40 to 5.4.41 2020-05-14 07:07:17 +00:00
Sayan Chowdhury
7f26efa043 sys-apps/systemd: Bump to v243 along with needed ebuild changes
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-05-12 16:18:30 +00:00
Flatcar Buildbot
c90d76c0e9 chore(metadata): Regenerate cache 2020-05-11 07:06:16 +00:00
Flatcar Buildbot
728361dd15 sys-kernel: Upgrade coreos-kernel 5.4.38 to 5.4.40 2020-05-11 07:06:16 +00:00
Sayan Chowdhury
6328beec3d sys-kernel/coreos-modules: Add the wireguard module
This commit adds the wireguard module patch through the
wireguard-linux-compat repo. This also adds the wireguard-tools, the
userspace tool for wireguard

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-05-06 10:58:31 +00:00
Kai Lüke
890f327626 coreos-base/coreos-init: Point to latest flatcar-master
Pulls in https://github.com/flatcar-linux/init/pull/18 to describe
that setting OEM uses an OEM image.
2020-05-05 13:18:32 +02:00
Dongsu Park
be83562d1f Merge pull request #339 from flatcar-linux/linux-5.4.38-alpha
Upgrade Linux Kernel in Alpha from 5.4.35 to 5.4.38
2020-05-04 16:29:17 +02:00
Dongsu Park
9e354feb1d Merge pull request #320 from samm-git/patch-1
Set oniguruma USE flag for the jq package
2020-05-04 11:19:44 +02:00
Flatcar Buildbot
f28ee38a15 chore(metadata): Regenerate cache 2020-05-03 07:07:01 +00:00
Flatcar Buildbot
21212096da sys-kernel: Upgrade coreos-kernel 5.4.35 to 5.4.38 2020-05-03 07:07:01 +00:00
Alex Samorukov
ffdc7c5316 Set oniguruma USE flag for the jq package 2020-05-02 13:48:34 +02:00
Kai Lüke
1cafcf8d22 coreos-base/oem-azure: Use flatcar.autologin for the serial console
The user can only login via SSH if no password was set and can't login
over the serial console in the web UI. To login, the user needs to press
reboot and then append flatcar.autologin to the kernel command line parameters
in GRUB each time. The user may also not know that this option even exists.
Set flatcar.autologin by default in the kernel command line parameters for
Azure so that users don't need to set this themselves.
2020-04-30 12:02:08 +02:00
Dongsu Park
717502ea0b chore(metadata): Regenerate cache 2020-04-29 15:49:00 +02:00
Dongsu Park
4b7fb93be2 profiles: specify keywords for strace >= 5.3
Since strace 5.3 or newer is not enabled for `amd64` and `arm64` by
default, we need to add keywords `~amd64` and `~arm64` for newer
versions of strace.
2020-04-29 15:44:55 +02:00
Dongsu Park
74644fb5d5 dev-util/strace: bump to 5.6
Update strace to 5.6, to make it compatible with recent Kernels.

It does not include a third-party patch `strace-5.5-static.patch`,
which could cause build failures with pkgconfig <= 2.28.
2020-04-29 15:44:55 +02:00
Dongsu Park
e42df99a14 profiles: enable fero-client
Since fero-client pulls in `virtual/rust` and other rust-related
packages, we need to enable keywords for fero-client.
2020-04-28 17:53:01 +02:00
Dongsu Park
d3f4a95fbe profiles: bump edk2-ovmf to 201905
Now that edk2-ovmf was updated to 201905, we need to also fix edk2-ovmf
to 201905 for ~arm64, so we can avoid build errors.
2020-04-28 11:47:00 +02:00
Flatcar Buildbot
5696ab4159 profile: set python 3.6 single target for cross builds
Now that `cross-{x86_64,aarch64}-cros-linux-gnu/gdb` was updated to 9.1,
it needs exactly one of `python_single_target_python3_6` and
`python_single_target_python3_7`. Since python 3.7 is not available yet,
we need to enable 3.6 and disable 3.7, for the SDK profile.

Without the fix, toolchain builds will fail like that:

```
!!! The ebuild selected to satisfy "cross-aarch64-cros-linux-gnu/gdb"
has unmet requirements.
- cross-aarch64-cros-linux-gnu/gdb-9.1-r1::x-crossdev USE="client nls python server -lzma -multitarget -source-highlight -test -vanilla -xml -xxhash"
  PYTHON_SINGLE_TARGET="-python3_6 (-python3_7)" PYTHON_TARGETS="python3_6 (-python3_7)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( exactly-one-of ( python_single_target_python3_6 python_single_target_python3_7 ) )

  The above constraints are a subset of the following complete expression:
    python? ( exactly-one-of ( python_single_target_python3_6 python_single_target_python3_7 )
              python_single_target_python3_6? ( python_targets_python3_6)
              python_single_target_python3_7? ( python_targets_python3_7 ) ) any-of ( client server )
```
2020-04-27 16:55:26 +02:00
Sayan Chowdhury
d304f583f3 Merge pull request #309 from flatcar-linux/dongsu/gdb-9.1-alpha
sys-devel/gdb: update to 9.1 for alpha
2020-04-27 18:01:02 +05:30
Dongsu Park
c605e9d4e6 Merge pull request #315 from flatcar-linux/containerd-1.3.4-alpha
Upgrade Containerd in Alpha from 1.1.2 to 1.3.4
2020-04-24 15:38:37 +02:00
Dongsu Park
66fa537933 Merge pull request #314 from flatcar-linux/linux-5.4.35-alpha
Upgrade Linux Kernel in Alpha from 5.4.34 to 5.4.35
2020-04-24 12:31:06 +02:00
Kai Lüke
0cd62cbd24 coreos-base/oem-vmware: Use flatcar.autologin for the console
The user can only login via SSH if no password was set and can't login
over the VGA console in the web UI. To login the user needs to press
reboot and then append flatcar.autologin to the kernel command line parameters
in GRUB each time. The user may also not know that this option even exists.
Set flatcar.autologin by default in the kernel command line parameters for
VMware so that users don't need to set this themselves.
2020-04-24 11:41:02 +02:00
Kai Lüke
73cb380729 coreos-base/coreos-cloudinit: Point to latest flatcar-master
Pulls in https://github.com/flatcar-linux/coreos-cloudinit/pull/4
to support guestinfo.ignition.config.* variables as data source.
2020-04-24 11:39:18 +02:00
Flatcar Buildbot
d7fc930352 chore(metadata): Regenerate cache 2020-04-24 08:07:32 +00:00
Flatcar Buildbot
a026f2e033 app-emulation: Upgrade Containerd 1.1.2 to 1.3.4 2020-04-24 08:07:32 +00:00
Flatcar Buildbot
592d2f9514 chore(metadata): Regenerate cache 2020-04-24 07:06:54 +00:00
Flatcar Buildbot
046438aaa7 sys-kernel: Upgrade coreos-kernel 5.4.34 to 5.4.35 2020-04-24 07:06:54 +00:00
Dongsu Park
135855e58a chore(metadata): Regenerate cache 2020-04-23 18:24:36 +02:00
Dongsu Park
35ed6fcb13 sys-devel/gdb: update to 9.1
Update gdb to 9.1, and add --without-libmpfr-prefix to configure.
Since we should remove gdb from portage-stable, we need to update gdb
to 9.1 in coreos-overlay.
2020-04-23 18:24:08 +02:00
Dongsu Park
5660d8e304 Merge pull request #305 from flatcar-linux/linux-5.4.34-alpha
Upgrade Linux Kernel in Alpha from 5.4.33 to 5.4.34
2020-04-23 11:22:10 +02:00
Sayan Chowdhury
27745b9695 net-firewall/conntrack-tools: Add the new package to alpha
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-04-23 07:36:55 +00:00
Flatcar Buildbot
1e9c9d527b chore(metadata): Regenerate cache 2020-04-23 07:10:47 +00:00
Flatcar Buildbot
7690d6b997 sys-kernel: Upgrade coreos-kernel 5.4.33 to 5.4.34 2020-04-23 07:10:47 +00:00
Dongsu Park
109319b034 chore(metadata): Regenerate cache 2020-04-20 12:45:47 +02:00
Dongsu Park
25f179f462 sys-kernel/coreos-firmware: update to 20191022
Update coreos-firmware to 20191022, to be compatible with Kernel 5.4.
Also get ebuild in sync with linux-firmware from upstream Gentoo.
2020-04-20 12:45:47 +02:00
Dongsu Park
41542043be sys-kernel: bump kernel to 5.4
Change the default Kernel version of Alpha to 5.4, the most latest
LTS Kernel tree.

Also update patches and kernel configs, so it could build with the
new Kernel.
2020-04-20 12:45:47 +02:00
Kai Lüke
4400fdb6f9 sys-apps/ignition: Point to latest flatcar-master for VMware fixes
Pulls in https://github.com/flatcar-linux/ignition/pull/11 to fix VMware
guestinfo variable retrieval and add the missing *.config.url variable.
2020-04-17 17:53:10 +02:00
Dongsu Park
ac7560e3ca Merge pull request #289 from flatcar-linux/dongsu/docker-runc-selinux-alpha
profiles: enable selinux for docker-runc for alpha
2020-04-17 16:59:37 +02:00
Dongsu Park
18780a10ce Merge pull request #252 from flatcar-linux/dongsu/bump-qemu-alpha
app-emulation/qemu: update to 4.2.0-r2 for alpha
2020-04-17 10:03:25 +02:00
Dongsu Park
e4e3a7f51a app-emulation/docker-runc: remove patch for disabling SELinux
Now that docker-runc can be built with a correct USE flag `selinux`,
we are able to disable the temporary patch for disabling SELinux.
2020-04-16 19:16:50 +02:00
Dongsu Park
e6add2ba00 profiles: enable selinux for docker-runc
We should enable the USE flag `selinux` not only for
`app-emulation/runc`, but also for `app-emulation/docker-runc`.
Otherwise, runc will be built without `BUILDTAGS=selinux`, so
runc is not able to detect selinuxfs of the system.
2020-04-16 19:15:56 +02:00
Marga Manterola
3b42b061f0 app-admin/flannel-wrapper: Create a 50-flannel.link
When setting up flannel interfaces, use MACAddressPolicy=none, so that
the MAC Address used is the initial one set by the kernel and not the
one assigned by systemd.

See coreos/flannel#1155 for more information.

In #279 we tried adding the MACAddressPolicy=none setting to the
existing 50-flannel.network file. But the change should have been in a
.link file, not a .network file.
2020-04-09 16:49:08 +02:00
Flatcar Buildbot
23957b696f chore(metadata): Regenerate cache 2020-04-09 07:20:55 +00:00
Flatcar Buildbot
dfbf161cd5 dev-lang/go: Upgrade Go 1.13.9 to 1.13.10 2020-04-09 07:20:55 +00:00
Marga Manterola
6f79c890a6 app-admin/flannel-wrapper: set MACAddressPolicy=none for flannel
When setting up flannel interfaces, use MACAddressPolicy=none, so that
the MAC Address used is the initial one set by the kernel and not the
one assigned by systemd.

See https://github.com/coreos/flannel/issues/1155 for more information.
2020-04-08 15:04:37 +02:00
Marga Manterola
245e88df4f sys-apps/systemd: Also delete the /etc/issue line
systemd will ignore any lines that are repeated. We need to get rid
of this instance of /etc/issue, so that we can add our own.

Our /etc/issue is shipped here:
https://github.com/flatcar-linux/init/blob/flatcar-master/configs/tmpfiles.d/issuegen.conf
2020-04-07 15:45:24 +02:00
Marga Manterola
b9e95aa4ba sys-apps/systemd: Adapt the sed command to new version
After systemd version 243, the lines that sed is removing now include
an exclamation mark, this commit adapts the sed command to accept both
formats.

These lines need to be removed so that the configuration set in
/usr/lib/tmpfiles.d/pam.conf file can be used (duplicate entries will
lead to systemd not doing anything).

The pam.conf configuration is shipped by of the pam package:
https://github.com/flatcar-linux/coreos-overlay/blob/flatcar-master/sys-libs/pam/files/tmpfiles.d/pam.conf

Fixes: flatcar-linux/Flatcar#75
2020-04-07 15:45:16 +02:00
Dongsu Park
a7724568af profiles: accept keywords for sgabios
Make it accept keywords for sgabios 0.1_pre8-r1, which is needed by
qemu 4.2.0-r2.
2020-04-06 16:50:38 +02:00
Dongsu Park
7c9fec9c1d profiles: disable xkb for qemu
Disable `xkb` USE flag for qemu, to avoid pulling unnecessary
dependencies.
2020-04-06 16:49:58 +02:00
Dongsu Park
0e1ff0f605 app-emulation/qemu: update to 4.2.0-r2
Update qemu to 4.2.0-r2 to address the following issues:

[CVE-2019-13164](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-13164)
[CVE-2020-8608](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8608)
2020-04-06 16:49:58 +02:00
Kai Lüke
3350715789 app-admin/mayday: Point to flatcar-master
This pulls in https://github.com/flatcar-linux/mayday/pull/8
to include "coredumpctl list" in the tar ball.
2020-04-06 15:17:58 +02:00
Flatcar Buildbot
66285d5580 chore(metadata): Regenerate cache 2020-04-04 07:06:22 +00:00
Flatcar Buildbot
d3735ff1db sys-kernel: Upgrade Linux 4.19.113 to 4.19.114 2020-04-04 07:06:22 +00:00
Kai Lüke
442619df0e coreos-base/oem*: Fix bug report URL
The bug report URL was pointing to the CoreOS bug tracker.
Change it to Flatcar's bug tracker URL.
2020-04-03 15:59:37 +02:00
Dongsu Park
c51d533ec1 coreos-base/gmerge: do not touch commit if it is of NoneType
`emerge-gitclone`, should replace commit only if the commit is not
of NoneType, so it could not crash.

See also https://github.com/flatcar-linux/dev-util/pull/4.
2020-04-03 15:44:49 +02:00
Dongsu Park
2cc17b6eef coreos-base/gmerge: do not check out coreos branches
Now that we started independent releases, we do not have to
check out upstream coreos branches.
Just check out the default branch for the repository, and rely
on the revision commits/branches for our release branches.
2020-04-02 17:58:52 +02:00
Dongsu Park
cb20cf1135 profiles: accept keywords ~arm64 for openssh 8.1
Now that openssh was updated to 8.1, we need to make openssh accept
keywords ~arm64 for it, to avoid build failures.
2020-04-02 09:22:57 +02:00
Dongsu Park
0595958572 coreos-base/oem-vmware: update to 11.0.5
Update oem-vmware to 11.0.5, according to the update of open-vm-tools
to 11.0.5.
2020-04-01 12:33:24 +02:00
Dongsu Park
f885c699de app-emulation/open-vm-tools: update to 11.0.5
Update open-vm-tools to 11.0.5.
https://github.com/vmware/open-vm-tools/releases/tag/stable-11.0.5
2020-04-01 12:32:58 +02:00
Kai Lüke
6537cdf2e9 app-admin/mayday: Point to flatcar-master and use Go Modules
Pulls in
https://github.com/flatcar-linux/mayday/pull/7
https://github.com/flatcar-linux/mayday/pull/6
https://github.com/flatcar-linux/mayday/pull/4
to include pstore files and the journalctl output in the tar ball
by default, and also use Go Modules to build.
2020-03-31 13:58:45 +02:00
Dongsu Park
b0e3361da7 Merge pull request #230 from flatcar-linux/dongsu/openssh-8.1-alpha
net-misc/openssh: update openssh to 8.1 for alpha
2020-03-31 10:06:32 +02:00
Kai Lüke
f962b2f48c Azure OEM: Update wa-linux-agent
The latest version is 2.2.46 and 2.2.32 will be
deprecated in May 2020.
2020-03-27 17:03:37 +01:00
Kai Lüke
f2ef26f53c sys-kernel/bootengine: Fix ignition-quench service
Pulls in
https://github.com/flatcar-linux/bootengine/pull/11
2020-03-26 16:30:07 +01:00
Flatcar Buildbot
5211d880eb sys-kernel: Upgrade Linux 4.19.112 to 4.19.113 2020-03-26 07:06:29 +00:00
Dongsu Park
b68413a077 profiles: build tracepath in iputils
Enable a USE flag `tracepath` for iputils to get the
`/usr/sbin/tracepath` binary file included in Flatcar images.

Note, the `tracepath` flag is not the same as the existing `traceroute`
flag, which enables only `tracerout6`.
2020-03-25 09:47:00 +01:00
Kai Lüke
591ada2317 sys-apps/baselayout: Pick upstream commit 2020-03-24 17:37:47 +01:00
Flatcar Buildbot
e14cd1197f sys-kernel: Upgrade Linux 4.19.111 to 4.19.112 2020-03-21 07:06:32 +00:00
Flatcar Buildbot
644f156bb6 dev-lang/go: Upgrade Go 1.13.8 to 1.13.9 2020-03-20 07:21:13 +00:00
Dongsu Park
25e25ed52b net-misc/openssh: update openssh to 8.1
To address the security issue
[CVE-2019-16905](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-16905),
update openssh from 7.9 to 8.1.
2020-03-19 15:10:40 +01:00
Flatcar Buildbot
a44ede6f3c chore(metadata): Regenerate cache 2020-03-19 07:42:08 +00:00
Flatcar Buildbot
a27417b17a app-emulation/docker: Upgrade Docker 19.03.5 to 19.03.8 2020-03-19 07:42:08 +00:00
Flatcar Buildbot
1b9f35b45b sys-kernel: Upgrade Linux 4.19.110 to 4.19.111 2020-03-18 07:06:22 +00:00
Dongsu Park
ef40e4ef1d Merge pull request #214 from flatcar-linux/dongsu/remove-old-rust-alpha
dev-lang/rust: remove unnecessary rust versions for alpha
2020-03-17 13:25:26 +01:00
Kai Lüke
be04f29fa0 sys-kernel/bootengine: Point to flatcar-master 2020-03-17 12:03:09 +01:00
Dongsu Park
3917caa0a6 Merge pull request #217 from flatcar-linux/go-1.13.8-alpha
Upgrade Go in Alpha from 1.13.3 to 1.13.8
2020-03-17 09:24:28 +01:00
Flatcar Buildbot
a5f3d48dd6 sys-kernel: Upgrade Linux 4.19.109 to 4.19.110 2020-03-17 07:06:27 +00:00
Flatcar Buildbot
67d570e67e dev-lang/go: Upgrade Go 1.13.3 to 1.13.8 2020-03-16 07:21:02 +00:00
Dongsu Park
baec4a9dbc dev-lang/rust: remove unnecessary rust versions
We should remove unnecessary old rust versions.
2020-03-13 12:16:27 +01:00
Flatcar Buildbot
e3ba5d9d78 sys-kernel: Upgrade Linux 4.19.108 to 4.19.109 2020-03-12 07:11:53 +00:00
Kai Lüke
8e7a041888 coreos-base/update_engine: Point to flatcar-master
This pulls in
https://github.com/flatcar-linux/update_engine/pull/4
to concat URLs with a slash if it is missing.
2020-03-11 16:19:58 +01:00