6703 Commits

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