Skip to content

Instantly share code, notes, and snippets.

View tormath1's full-sized avatar

Mathieu Tortuyaux tormath1

View GitHub Profile
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(dev-util/gdbus-codegen-2.84.4-1:0/0::portage-stable, installed) pulled in by
dev-util/gdbus-codegen required by (coreos-base/hard-host-depends-0.0.1-r213-1:0/0::coreos-overlay, installed) USE=""
>=dev-util/gdbus-codegen-2.80.5-r1 required by (app-emulation/qemu-10.2.2-1:0/0::portage-stable, installed) USE="aio bzip2 curl fdt filecaps gnutls ncurses oss png python seccomp slirp static-user udev vhost-net virtfs vnc xattr (-X) -accessibility -alsa -bpf -capstone -debug -doc -fuse -glusterfs -gtk -infiniband -io-uring -iscsi -jack -jemalloc -jpeg -keyutils -lzo -multipath -nfs (-nls) -numa -opengl -pam -passt -pin-upstream-blobs -pipewire -plugins -pulseaudio -rbd -sasl -sdl -sdl-image -selinux -smartcard -snappy -spice -ssh -systemtap -test -usb -usbredir -valgrind -vde -virgl -vte -wayland -xdp -xen -zstd" PYTHON_TARGETS="python3_12 -python3_13 -python3_14" QEMU_SOFTMMU_TARGETS="aarc
@tormath1
tormath1 / README.md
Created July 9, 2025 08:45
Ignition IPv6 on Scaleway
@tormath1
tormath1 / README.md
Last active July 2, 2025 14:50
Kernel contribution
@tormath1
tormath1 / config.json
Created April 9, 2025 09:18
custom ca certifcates Ignition
{
"ignition": {
"config": {
"replace": {
"source": "https://example.com/sample.ign"
}
},
"security": {
"tls": {
"certificateAuthorities": [

Butane configuration:

# config.yaml
---
variant: flatcar
version: 1.0.0
storage:
  links:
    - path: /etc/extensions/docker-flatcar.raw
      target: /dev/null
@tormath1
tormath1 / denials.md
Created November 29, 2024 14:45
Flatcar denials
$ sudo rm /etc/audit/rules.d/99-default.rules
$ sudo rm /etc/audit/rules.d/80-selinux.rules
$ sudo systemctl enable --now auditd
$ reboot
$ journalctl _TRANSPORT=kernel | grep -i avc
Nov 29 14:39:03 localhost kernel: audit: type=1400 audit(1732891141.845:3): avc:  denied  { read } for  pid=1033 comm="systemd-gpt-aut" name="boot" dev="vda9" ino=14 scontext=system_u:system_r:systemd_generator_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir permissive=1
Nov 29 14:39:03 localhost kernel: audit: type=1400 audit(1732891141.846:4): avc:  denied  { mount } for  pid=1033 comm="systemd-gpt-aut" name="/" dev="tmpfs" ino=1 scontext=system_u:system_r:systemd_generator_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=1
Nov 29 14:39:03 localhost kernel: audit: type=1400 audit(1732891141.861:5): avc:  denied  { read } for  pid=1025 comm="ibft-rule-gener" name="run" dev="vda9" ino=20 scontext=system_u:system_r:systemd_generator_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=lnk_fil
$ sudo crictl images
IMAGE                                     TAG                 IMAGE ID            SIZE
registry.k8s.io/coredns/coredns           v1.11.1             cbb01a7bd410d       18.2MB
registry.k8s.io/etcd                      3.5.12-0            3861cfcd7c04c       57.2MB
registry.k8s.io/kube-apiserver            v1.29.5             b36112597a5f1       35.2MB
registry.k8s.io/kube-controller-manager   v1.29.5             2242ad7f7c41a       33.6MB
registry.k8s.io/kube-proxy                v1.29.5             2019bbea5542a       28.4MB
registry.k8s.io/kube-scheduler            v1.29.5             e579eb50f57be       18.7MB
@tormath1
tormath1 / README.md
Last active April 18, 2024 07:41
Sway + titlebar

Configuration:

$ cat .config/sway/config | grep opa
# opacity
set $opacity 0.97
for_window [class=".*"] opacity $opacity
$ cat .config/sway/config | grep disable
disable_titlebar yes
$ sway --version
@tormath1
tormath1 / config.yaml
Created August 3, 2023 08:16
Minimal Kubernetes + Docker systemd sysext Butane configuration
# butane < config.yaml > config.json
# ./flatcar_production_qemu.sh -i ./config.json
variant: flatcar
version: 1.0.0
storage:
files:
- path: /opt/extensions/docker/docker-24.0.5.raw
contents:
source: https://github.com/flatcar/sysext-bakery/releases/latest/download/docker-24.0.5.raw
- path: /opt/extensions/kubernetes/kubernetes-v1.27.4.raw
@tormath1
tormath1 / README.md
Last active July 31, 2023 20:05
Update Kubernetes... Not Flatcar.

This is a demo of updating Kubernetes version on Flatcar without updating the OS leveraging Systemd sysext and Kured.

notes:

Boot an instance with the following Butane config.yaml:

variant: flatcar