Skip to content

Instantly share code, notes, and snippets.

View COM8's full-sized avatar
πŸ›
Hunting bugs...

Fabian Sauter COM8

πŸ›
Hunting bugs...
View GitHub Profile
@COM8
COM8 / dollar_karg_values.md
Last active April 18, 2025 14:13
Add Kernel Arguments With A `$` Sign In The Value To rpm-ostree Systems

Add Kernel Arguments With A $ Sign In The Value To rpm-ostree Systems

Let's say you want a kernel argument like memmap='1G$12G' to preallocate 1GiB of RAM starting from the 12GiB mark for later use e.g. for a DMA device. If you are on a rpm-ostree based system like Fedora Silverblue (Fedora Atomic Desktop) you might try this:

rpm-ostree kargs --append="memmap='1G$12G'"

Then you notice: One sec I have to escape the $ sign since else it would treat the 1 as variable.

@COM8
COM8 / libvirt_in_podman.md
Created November 28, 2023 10:02
libvirt and qemu Inside a Podman Container

Creating and starting a VM from inside a container is really nice if for example you want to automatically test if you OS installs correctly inside a CI.

This example container image uses systemd inside podman to make this possible. It's based on the following tutorial: https://developers.redhat.com/blog/2019/04/24/how-to-run-systemd-in-a-container

Sadly this only works for podman and not for docker since podman auto-mounts all required paths if you set the container CMD to /sbin/init.

For this create the following two files:

.
β”œβ”€β”€ Dockerfile