Skip to content

Instantly share code, notes, and snippets.

View lzap's full-sized avatar
🇪🇺
I break software for living.

Lukáš Zapletal lzap

🇪🇺
I break software for living.
View GitHub Profile
@lzap
lzap / example.toml
Created April 11, 2025 13:41
empty blueprint
# https://www.osbuild.org/guides/blueprint-reference/blueprint-reference.html
name = "example"
@lzap
lzap / example.toml
Last active February 11, 2025 10:18
# https://www.osbuild.org/guides/blueprint-reference/blueprint-reference.html
name = "example"
[[packages]]
name = "bash-completion"
[[packages]]
name = "vim-enhanced"
@lzap
lzap / example.yaml
Last active November 11, 2024 13:46
Common blueprint schema discussion
# Decisions for the initial version so far:
#
# * Implementation-free schema (detach from osbuild/image-builder).
# * Minimum top-level primitive types (name, description).
# * Prefer minimal nesting (two levels max).
# * Snake case naming for all keys (snake_case).
# * Plurals for composite elements (sequences, mappings).
# * Utilize native YAML data types (e.g. date, time).
# * Utilize default values from JSON Schema (boolean can be true).
#
@lzap
lzap / diff.json
Created October 10, 2024 11:23
Diff between ostree initial manifest and update manifest
{
"pipelines": {
"1": {
"stages": {
"$insert": [
[
0,
{
"type": "org.osbuild.ostree.passwd",
"inputs": {
@lzap
lzap / image-builder.yaml
Created July 31, 2024 08:17
Problem with: CreateBlueprintResponse redeclared in this block
---
openapi: 3.0.1
info:
version: "1.0"
title: Image-builder service
description: Service that relays image build requests
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
@lzap
lzap / artifact.go
Created June 20, 2024 16:30
Memory-mapped artifact upload into Pulp in Go and oapi-gen Go HTTP client
import (
"bytes"
"context"
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"mime/multipart"
"os"
"path/filepath"
@lzap
lzap / Containerfile-fedora-aa64
Last active June 12, 2024 14:36
Fedora netbootc files POC
FROM quay.io/fedora/fedora-minimal:40 as builder
ARG name=Fedora
ARG version=40
ARG arch=aa64
RUN mkdir /b
WORKDIR /b
# Artifacts from kickstart repository.
RUN curl -RLO https://dl.fedoraproject.org/pub/fedora/linux/releases/${version}/Everything/$(uname -m)/os/.treeinfo
RUN curl -RLO https://dl.fedoraproject.org/pub/fedora/linux/releases/${version}/Everything/$(uname -m)/os/images/pxeboot/vmlinuz
@lzap
lzap / pulp-openapi.json
Created May 28, 2024 07:35
Pulp OpenAPI June 2024
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.3",
"info": {
"title": "Pulp 3 API",
"version": "v3",
"description": "Fetch, Upload, Organize, and Distribute Software Packages",
"contact": {
"name": "Pulp Team",
"email": "[email protected]",
"url": "https://pulpproject.org"
@lzap
lzap / mkksiso.ks
Created April 30, 2024 13:55
Satellite and mkksiso
%pre
cat /sys/class/net/*/address | grep -v 00:00:00:00:00:00 | awk '{print "X-RHN-Provisioning-MAC-" NR ": "unused $0}' > /tmp/pre_headers
curl -H @/tmp/pre_headers -k https://satellite/unattended/provision > /tmp/pre_kickstart
%end
%include /tmp_prekickstart
SELinux is preventing daemon-init from execute access on the file /usr/bin/udevadm.
SELinux is preventing daemon-init from execute access on the file /usr/sbin/lvm.
SELinux is preventing daemon-init from execute_no_trans access on the file /usr/bin/udevadm.
SELinux is preventing daemon-init from execute_no_trans access on the file /usr/sbin/lvm.
SELinux is preventing daemon-init from using the execmem access on a process.
SELinux is preventing lvchange from getattr access on the chr_file /dev/input/mice.
SELinux is preventing lvchange from using the sys_admin capability.
SELinux is preventing lvchange from write access on the directory lvm.
SELinux is preventing lvcreate from add_name access on the directory .lvm_virt.home.lan_13466_252087827.
SELinux is preventing lvcreate from add_name access on the directory .lvm_virt.home.lan_13916_735239927.