8346 Commits

Author SHA1 Message Date
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
6e833e6847 Merge pull request #639 from flatcar-linux/kai/baselayout-sdk
sys-apps/baselayout: Ensure to create core home folder in the SDK
2020-10-13 13:41:47 +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
19f8caf46b Merge pull request #582 from flatcar-linux/sayan/upgrade-systemd-to-v246
sys-apps/systemd: Bump to v246.6
2020-10-08 18:47:01 +02: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
Dongsu Park
a18a886e6f Merge pull request #622 from flatcar-linux/dongsu/exclude-dtc-archs
eclass: exclude unnecessary architectures from DTC in Kernel
2020-10-07 10:10:27 +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
eedd44fa18 Merge pull request #628 from flatcar-linux/dongsu/kernel-module-compress
sys-kernel: compress modules with xz
2020-10-02 14:44:11 +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
8cb4c23ad6 Merge pull request #526 from flatcar-linux/krnowak/tini
Update sys-process/tini
2020-09-29 19:20:17 +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
3b034a8c5d Merge pull request #620 from flatcar-linux/sayan/adjust-the-fix-the-srctree-patch
Adjust the `srctree` based on the presence of KBUILD_OUTPUT
2020-09-29 00:23:18 +05:30
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