基于 CentOS-Stream9 构建官方CoreOS COSA 镜像并构建 CoreOS

Posted rtoax

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于 CentOS-Stream9 构建官方CoreOS COSA 镜像并构建 CoreOS相关的知识,希望对你有一定的参考价值。

基于 CentOS-Stream9 构建官方CoreOS COSA 镜像并构建 CoreOS

荣涛
2022-03-22

文档修改日志

日期修改内容修改人备注
2022-03-22创建荣涛缺少大量依赖

引言

文档 Official-Build-COSA 中详细介绍了如何基于Fedora35镜像构建COSA,本文介绍如何基于 CentOS-Stream9 构建 COSA。

获取centos-stream-9镜像

首先需要获取centos-stream-9镜像:

$ sudo podman pull docker.io/dokken/centos-stream-9
$ sudo podman images
REPOSITORY                        TAG         IMAGE ID      CREATED       SIZE
docker.io/dokken/centos-stream-9  latest      18698f619944  10 hours ago  317 MB

下载coreos-assembler

可以使用镜像 https://gitee.com/cestcos/coreos-assembler.

http://10.253.12.70/mirrors/centos-stream/9-stream/AppStream/x86_64/os/
http://10.253.12.70/mirrors/centos-stream/9-stream/BaseOS/x86_64/os/
http://10.253.12.70/mirrors/centos-stream/9-stream/CRB/x86_64/os/
http://10.253.12.70/mirrors/cclinux-coreos-temp/

存在大量缺少的数据包:

见提交: https://gitee.com/cestcos/coreos-assembler/commit/a1fbc44fbc3bacb116e379ffd7f8a0e15ff1cfd0

+ yum -y install /usr/bin/xargs
Repository 'centos-stream-appstream' is missing name in configuration, using id.
Repository 'centos-stream-baseos' is missing name in configuration, using id.
Repository 'centos-stream-crb' is missing name in configuration, using id.
Repository 'centos-stream-core' is missing name in configuration, using id.
Last metadata expiration check: 0:00:02 ago on Tue Mar 22 10:37:36 2022.
Package findutils-1:4.8.0-5.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
++ grep -v '^#' /root/containerbuild/src/build-deps.txt
+ builddeps=golang
+ xargs yum -y install
+ echo golang
+ echo 'kernel-5.15.13-0.el9 kernel-core-5.15.13-0.el9 kernel-modules-5.15.13-0.el9'
+ /root/containerbuild/src/print-dependencies.sh
Repository 'centos-stream-appstream' is missing name in configuration, using id.
Repository 'centos-stream-baseos' is missing name in configuration, using id.
Repository 'centos-stream-crb' is missing name in configuration, using id.
Repository 'centos-stream-core' is missing name in configuration, using id.
Last metadata expiration check: 0:00:02 ago on Tue Mar 22 10:37:36 2022.
Package sudo-1.9.5p2-7.el9.x86_64 is already installed.
No match for argument: dumb-init
No match for argument: awscli
No match for argument: golang-github-aliyun-cli
No match for argument: python3-boto3
No match for argument: python3-semver
No match for argument: python3-tenacity
No match for argument: /usr/bin/ignition-validate
No match for argument: ShellCheck
No match for argument: python3-flake8
No match for argument: python3-pytest-cov
No match for argument: pylint
Package openssl-1:3.0.1-17.el9.x86_64 is already installed.
Package krb5-libs-1.19.1-13.el9.x86_64 is already installed.
No match for argument: koji-utils
No match for argument: python3-koji
No match for argument: python3-koji-cli-plugins
No match for argument: fedora-messaging
Package strace-5.13-7.el9.x86_64 is already installed.
No match for argument: python3-flufl-lock
Package bash-5.1.8-4.el9.x86_64 is already installed.
Package vim-minimal-2:8.2.4529-1.el9.x86_64 is already installed.
Package util-linux-2.37.2-1.el9.x86_64 is already installed.
Package procps-ng-3.3.17-4.el9.x86_64 is already installed.
Package kmod-28-7.el9.x86_64 is already installed.
No match for argument: distribution-gpg-keys
Package systemd-250-4.el9.x86_64 is already installed.
Package iproute-5.13.0-5.el9.x86_64 is already installed.
Package python3-3.9.10-2.el9.x86_64 is already installed.
Package iptables-nft-1.8.7-28.el9.x86_64 is already installed.
Package iptables-libs-1.8.7-28.el9.x86_64 is already installed.
Package e2fsprogs-1.46.5-2.el9.x86_64 is already installed.
Package ca-certificates-2020.2.50-94.el9.noarch is already installed.
Error: Unable to find a match: dumb-init awscli golang-github-aliyun-cli python3-boto3 python3-semver python3-tenacity /usr/bin/ignition-validate ShellCheck python3-flake8 python3-pytest-cov pylint koji-utils python3-koji python3-koji-cli-plugins fedora-messaging python3-flufl-lock distribution-gpg-keys

参考链接


Copyright (C) CESTC Com.

以上是关于基于 CentOS-Stream9 构建官方CoreOS COSA 镜像并构建 CoreOS的主要内容,如果未能解决你的问题,请参考以下文章

CentOS-Stream-9中不再有libunwind

CentOS-Stream-9中不再有libunwind

从Fedora CoreOS(Fedora35)到CentOS-Stream9的重构

从Fedora CoreOS(Fedora35)到CentOS-Stream9的重构

centos-stream-9安装chrome谷歌浏览器

centos-stream-9安装chrome谷歌浏览器