Skip to content

Instantly share code, notes, and snippets.

View cgwalters's full-sized avatar
👍
LGTM

Colin Walters cgwalters

👍
LGTM
View GitHub Profile
@cgwalters
cgwalters / concurrenttar.go
Created May 7, 2021 15:11
Demonstrate corrupted concurrent Go tar writing
package main
import (
"archive/tar"
"bytes"
"fmt"
"io"
"log"
"os"
"sync"
+ ./process_configs.sh -w -n -c kernel 5.11.19
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/linux-5.11.19-300.fc34.x86_64/configs/kernel-5.11.19-aarch64-debug.config ... done
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/linux-5.11.19-300.fc34.x86_64/configs/kernel-5.11.19-aarch64.config ... done
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/linux-5.11.19-300.fc34.x86_64/configs/kernel-5.11.19-armv7hl-debug.config ... done
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/linux-5.11.19-300.fc34.x86_64/configs/kernel-5.11.19-armv7hl-lpae-debug.config ... done
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/linux-5.11.19-300.fc34.x86_64/configs/kernel-5.11.19-armv7hl-lpae.config ... done
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/linux-5.11.19-300.fc34.x86_64/configs/kernel-5.11.19-armv7hl.config ... done
Processing /var/srv/walters/src/distgit/fedora/kernel/kernel-5.11.19/
@cgwalters
cgwalters / chat-vs-async.md
Last active June 21, 2022 12:16
Internal proprietary chat vs async public discussion

TL;DR

If you're seeing this linked because you used an internal-to-RH proprietary realtime chat system, please consider instead interacting on an asynchronous, public channel such as a GitHub issue, Bugzilla (but uncheck the "Private bug" bits), or public mailing list like fedora-devel@ or centos-devel. Another good alternative is https://discussion.fedoraproject.org/

Favoring asynchronous, public discussion

You'll see it said that Red Hat is an enterprise software company with a FOSS development model.

walters@toolbox /v/s/w/s/d/r/rpm-ostree (c9s)> klist
Ticket cache: KCM:1000
Default principal: [email protected]

Valid starting       Expires              Service principal
06/01/2021 15:19:55  06/02/2021 01:19:55  krbtgt/[email protected]
walters@toolbox /v/s/w/s/d/r/rpm-ostree (c9s)> centpkg -v build
Creating repo object from /var/srv/walters/src/distgit/rh-gitlab/rpm-ostree
Initiating a stream session to https://kojihub.stream.centos.org/kojihub
```
$ rpm -q centpkg
centpkg-0.6.4-1.fc34.noarch
$ klist
Ticket cache: KCM:1000:57909
Default principal: [email protected]
Valid starting Expires Service principal
06/01/2021 15:45:18 06/02/2021 15:45:15 krbtgt/[email protected]
renew until 06/08/2021 15:45:15
$ cat >>/etc/containers/containers.conf << 'EOF'
[engine]
runtime = "runc"
EOF
@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
@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
...
$ podman run --rm -ti quay.io/centos/centos:stream8
[root@b87a35397c31 /]# grep -ri devel /etc/yum.repos.d/
[root@b87a35397c31 /]#
$
@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