Commit Graph

6479 Commits

Author SHA1 Message Date
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
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
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
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
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