Skip to content

Instantly share code, notes, and snippets.

View cgwalters's full-sized avatar
👍
LGTM

Colin Walters cgwalters

👍
LGTM
View GitHub Profile
```
$ cosa generate-release-meta --stream-name podman --stream-baseurl https://fedorapeople.org/groups/podman --url https://fedorapeople.org/groups/podman/builds/35.20220208.dev.0/x86_64/meta.json --output stream.json
Downloading https://fedorapeople.org/groups/podman/builds/35.20220208.dev.0/x86_64/meta.json...
podman stream
x86_64 images:
- qemu
Successfully wrote release file at stream.json
$ jq . < stream.json
{
"release": "35.20220208.dev.0",
```
walters@toolbox /v/s/w/b/rhcos-master> oc image info (oc adm release info --image-for=machine-os-content quay.io/openshift-release-dev/ocp-release:4.6.52-x86_64)
Name: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6ea6c6f23e0fe047c5813c0607c3bed53dc6bcf2c1064f8fc72235236aacc182
Media Type: application/vnd.docker.distribution.manifest.v2+json
Created: 39d ago
Image Size: 1.001GB in 3 layers
Layers: 86.08MB sha256:c2aecb3e557dba3008677634224d2eec02c1ccdf36e29026d57e933095a790a6
1.883kB sha256:65b3ce9d57bf94cef9ca928be2f78a5f61be880670860dbd05111489cac97368
914.5MB sha256:322dbbe859bd09590f8612b9ae0b59a2cc9d4f869c310a4525c86f7d36d7a614
OS: linux
$ rpm -q gcc cargo
gcc-8.5.0-7.el8.x86_64
cargo-1.56.1-2.module+el8.6.0+13527+64f2eba2.x86_64
$ rhpkg local
...
error: build-id found in /var/home/walters/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree too small
error: Generating build-id links failed

walters@quicksilver ~> podman run --rm -ti quay.io/cgwalters/fcos bash
# rpm -Uvh https://kojipkgs.fedoraproject.org//packages/libdnf/0.64.0/1.fc35/x86_64/libdnf-0.64.0-1.fc35.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/microdnf/3.8.0/2.fc35/x86_64/microdnf-3.8.0-2.fc35.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/dnf/4.9.0/1.fc35/noarch/dnf-data-4.9.0-1.fc35.noarch.rpm https://kojipkgs.fedoraproject.org//packages/libpeas/1.30.0/5.fc35/x86_64/libpeas-1.30.0-5.fc35.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/gobject-introspection/1.70.0/1.fc35/x86_64/gobject-introspection-1.70.0-1.fc35.x86_64.rpm
Retrieving https://kojipkgs.fedoraproject.org//packages/libdnf/0.64.0/1.fc35/x86_64/libdnf-0.64.0-1.fc35.x86_64.rpm
Retrieving https://kojipkgs.fedoraproject.org//packages/microdnf/3.8.0/2.fc35/x86_64/microdnf-3.8.0-2.fc35.x86_64.rpm
Retrieving https://kojipkgs.fedoraproject.org//packages/dnf/4.9.0/1.fc35/noarch/dnf-data-4.9.0-1.fc35.noarch.rpm
Retrieving https://kojipkgs.fedorap
@cgwalters
cgwalters / local-to-coreos.md
Last active December 9, 2021 22:02
Adding an updated local binary to an OCP4 coreos node

EDIT: Nevermind these instructions don't quite work because

$ findmnt -o PROPAGATION /rootfs
PROPAGATION
private
$ podman run --rm -ti quay.io/centos/centos:stream8
[root@b87a35397c31 /]# grep -ri devel /etc/yum.repos.d/
[root@b87a35397c31 /]#
$
@cgwalters
cgwalters / demo.md
Created September 10, 2021 19:30
generating derived rpm-ostree ex containers
[root@cosa-devsh ~]# rpm-ostree status -b
State: idle
Deployments:
* fedora:fedora/x86_64/coreos/testing-devel
                   Version: 34.20210907.dev.0 (2021-09-07T12:41:33Z)
                    Commit: be12912a5530514fbf2ce8e8eeb52688b447345dc2c1c91fc609a7147b34cde0
              GPGSignature: (unsigned)
[root@cosa-devsh ~]# rpm-ostree install cowsay
...
@cgwalters
cgwalters / rhcos-c9s-upgrade.md
Created July 22, 2021 21:17
rhcos-c9s-upgrade.md
Upgraded:
  NetworkManager 1:1.30.0-9.el8_4 -> 1:1.32.2-1.el9
  NetworkManager-cloud-setup 1:1.30.0-9.el8_4 -> 1:1.32.2-1.el9
  NetworkManager-libnm 1:1.30.0-9.el8_4 -> 1:1.32.2-1.el9
  NetworkManager-ovs 1:1.30.0-9.el8_4 -> 1:1.32.2-1.el9
  NetworkManager-team 1:1.30.0-9.el8_4 -> 1:1.32.2-1.el9
  NetworkManager-tui 1:1.30.0-9.el8_4 -> 1:1.32.2-1.el9
  acl 2.2.53-1.el8 -> 2.3.1-2.el9
  adcli 0.8.2-9.el8 -> 0.9.1-4.el9
$ cat >>/etc/containers/containers.conf << 'EOF'
[engine]
runtime = "runc"
EOF
```
$ rpm -q centpkg
centpkg-0.6.4-1.fc34.noarch
$ klist
Ticket cache: KCM:1000:57909
Default principal: walters@FEDORAPROJECT.ORG
Valid starting Expires Service principal
06/01/2021 15:45:18 06/02/2021 15:45:15 krbtgt/FEDORAPROJECT.ORG@FEDORAPROJECT.ORG
renew until 06/08/2021 15:45:15