Skip to content

Instantly share code, notes, and snippets.

View knumskull's full-sized avatar

Steffen Frömer knumskull

  • Red Hat
  • Brunswick, Germany
View GitHub Profile

Building a lin_tape binary RPM matching different kernel on Red Hat Enterprise Linux 8

Problem statement

The binary RPM build from source RPM for IBM lin-tape driver causing trouble in typical Red Hat Enterprise lifecycle operations. This driver is built against a specific kernel-version and the installed lin_tape package need to match the current running kernel. During maintenance and upgrade of Red Hat Enterprise Linux using standard tools like dnf package manager, there is no automatic solution to trigger a rebuild of the lin_tape driver to operate successfully after a kernel-upgrade and required reboot. At the moment this requires manual interaction after an upgrade of the operating system to bring the system back to normal operation mode.

Goal

Build binary RPM to match following pattern lin_tape--kernel-..rpm for example: lin_tape-3.0.20-kernel-4.18.0-372.16.1.el8_6.x86_64.rpm

@knumskull
knumskull / rhv-api-wrapper.md
Created April 19, 2023 07:04
Wrapper to remove unwanted parts from API request toward RHV-API

Workaround to remove unwanted parts from API request

Intention

In big environments, deploying Veeam Backup & Recovery is failing due to running in a timeout when collecting information of all virtual machines in the cluster. Due to the permission design, it's not possible to limit the requesting user to a subset of virtual machines (e.g. specific cluster).

From a virtual machine, the following, additional details are requested

  • tags
  • nics.reporteddevices
  • disk_attachments.disk
---
- name: run containers
hosts: localhost
gather_facts: true
roles:
- linux-system-roles.network
- sfroemer_podman_network
vars_files:
@knumskull
knumskull / iriun-webcam-fedora-35.md
Last active November 17, 2021 15:22
Steps to build iriun webcam for Fedora 35

How to install Iriun webcam on Fedora 35

Download the Ubuntu package from Iriun website

$ curl -LO https://iriun.gitlab.io/iriunwebcam-2.6.deb

Install additional required packages on your Fedora

$ sudo dnf install alien rpmrebuild

Convert deb-package into rpm using alien