Skip to content

Instantly share code, notes, and snippets.

View lnykryn's full-sized avatar

Lukáš Nykrýn lnykryn

  • Red Hat Czech
  • Brno, Czech Republic
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#define PORT 8080
#define MAX_NAME_LENGTH 256
[root@localhost ~]# cat /etc/udev/rules.d/75-net-description.rules
# do not edit this file, it will be overwritten on update
#
#
PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $$1 |/usr/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", ENV{ID_NET_DRIVER}="%c"
ENV{SYSATTR_VERSION}="rhel-8.2"
[root@ci-vm-10-0-136-82 system]# systemctl cat a.service b.service ab.service a.target b.target
# /etc/systemd/system/a.service
[Unit]
StopWhenUnneeded=yes
[Service]
ExecStart=/bin/sleep 300000
[Install]
WantedBy=a.target
#!/bin/bash
export LANG=C
COMMAND="$1"
KERNEL_VERSION="$2"
BOOT_DIR_ABS="$3"
KERNEL_IMAGE="$4"
if [[ ${KERNEL_INSTALL_MACHINE_ID+x} ]]; then
#!/bin/bash
work_dir=$(mktemp -d)
mkdir ${work_dir}/sys ${work_dir}/proc ${work_dir}/dev ${work_dir}/run
mount --bind /sys ${work_dir}/sys
mount --bind /proc ${work_dir}/proc
mount --bind /dev ${work_dir}/dev
mount --bind /run ${work_dir}/run
#!/bin/bash
export LANG=C
export LC_MESSAGES=C
# Evaluate shvar-style booleans
is_true() {
case "$1" in
[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
return 0
;;
1 libcryptsetup.so.4 systemd-cryptsetup
1 libdevmapper.so.1.02 systemd-cryptsetup
1 libpam_misc.so.0 pam_systemd.so
1 libqrencode.so.3 journalctl
1 libsepol.so.1 systemd-cryptsetup
1 libudev.so.1 systemd-cryptsetup
1 libxkbcommon.so.0 systemd-localed
2 libcom_err.so.2 systemd-journal-upload systemd-pull
2 libcrypto.so.10 systemd-journal-upload systemd-pull
2 libcurl.so.4 systemd-journal-upload systemd-pull