File root.obscpio of Package ironic-ipa-ramdisk

07070100000000000081a400000000000000000000000168dfb36100000496000000000000000000000000000000000000002c00000000root/etc/NetworkManager/conf.d/00-main.conf# WARNING: This file has been modified by the diskimage-builder
# dhcp-all-interfaces element as this machine is likely running
# a ramdisk or needs to attempt auto-configuration on all interfaces.
[main]
# This makes sense even with dhcp on all interfaces in the event
# that the configuration has been or is being supplied via external means.
ignore-carrier=*
# Use dhclient as was done previously to the Centos8/RHEL8 RPM defaults.
# This is because dhclient shuts the interface down after a retry attempt
# which allows the link state to reset with some switches, which may be
# important for the ramdisk to recover networking.
dhcp=dhclient

[connection]
# Keep retrying, this is important for this important espescialy for
# ramdisks in environments where varying switch configurations may
# cause traffic to be blocked or intermittent connectivity failures
# such as those at an edge site may cause issues.
autoconnect-retries=-1
# Set the timeout. Diskimage-builder dhcp-all-interfaces has a 30
# second default. NetworkManager, by default, is 45 seconds.
# In some cases where ramdisks are in use, 60 seconds is advisable.
ipv4.dhcp-timeout=30
ipv6.dhcp-timeout=30
07070100000001000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001f00000000root/etc/NetworkManager/conf.d07070100000002000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001800000000root/etc/NetworkManager070701000000030000a1ff00000000000000000000000168dfb3610000002e000000000000000000000000000000000000002400000000root/etc/ironic-python-agent.conf.dironic-python-agent/ironic-python-agent.conf.d07070100000004000081a400000000000000000000000168dfb3610000002f000000000000000000000000000000000000000f00000000root/etc/issueSUSE Ironic Python Agent Ramdisk - terminal \l
07070100000005000081a400000000000000000000000168dfb36100000050000000000000000000000000000000000000002400000000root/etc/sysctl.d/98-rp_filter.conf# avoid problems with multiple network interfaces
net.ipv4.conf.all.rp_filter=0
07070100000006000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001200000000root/etc/sysctl.d07070100000007000081a400000000000000000000000168dfb36100000086000000000000000000000000000000000000003a00000000root/etc/systemd/system/NetworkManager.service.d/nmc.conf[Unit]
#WantsMountsFor=/mnt/ipa
After=mnt-ipa.mount
Wants=mnt-ipa.mount

[Service]
ExecStartPre=-/usr/local/bin/suse-network-setup.sh
07070100000008000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000003100000000root/etc/systemd/system/NetworkManager.service.d07070100000009000081a400000000000000000000000168dfb36100000081000000000000000000000000000000000000002600000000root/etc/systemd/system/mnt-ipa.mount[Unit]
Description=config-2 rom consumed by IPA for networking configuration

[Mount]
What=/dev/ipa
Where=/mnt/ipa
TimeoutSec=30
0707010000000a000081a400000000000000000000000168dfb361000000ec000000000000000000000000000000000000003800000000root/etc/systemd/system/suse-ironic-image-setup.service[Unit]
Description=Setup ironic-python-agent image
After=getty.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/suse-ironic-image-setup.sh
StandardOutput=journal+console
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
0707010000000b000081a400000000000000000000000168dfb36100000037000000000000000000000000000000000000003e00000000root/etc/systemd/system/systemd-udevd.service.d/ordering.conf[Unit]
Before=local-fs.target
WantedBy=local-fs.target
0707010000000c000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000003000000000root/etc/systemd/system/systemd-udevd.service.d0707010000000d000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001800000000root/etc/systemd/system0707010000000e000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001100000000root/etc/systemd0707010000000f000081a400000000000000000000000168dfb361000000a6000000000000000000000000000000000000002700000000root/etc/udev/rules.d/61-config2.rulesACTION=="add|change", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="config-2", ENV{ID_FS_PUBLISHER_ID}=="?*", PROGRAM="/usr/local/bin/suse-test-config-2.sh", SYMLINK+="ipa"
07070100000010000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001600000000root/etc/udev/rules.d07070100000011000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000000e00000000root/etc/udev07070100000012000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000000900000000root/etc07070100000013000081ed00000000000000000000000168dfb361000006ef000000000000000000000000000000000000002e00000000root/usr/local/bin/suse-ironic-image-setup.sh#!/bin/sh
PARAMS=$(</proc/cmdline)
# find vfloppy device (based on IPA code)
VMEDIA_DEVICE=$(find /dev/disk/by-label -iname ir-vfd-dev)
# read params from vmedia and prepend them to params from kernel cmdline
if [[ -b "$VMEDIA_DEVICE" ]]; then
  VMEDIA_MOUNT=$(mktemp -d)
  if mount -o loop $VMEDIA_DEVICE $VMEDIA_MOUNT; then
    # parameters.txt has one param per line, reformat to match cmdline
    VMEDIA_PARAMS=$(cat $VMEDIA_MOUNT/parameters.txt | tr '\n' ' ')
    umount $VMEDIA_MOUNT
    PARAMS="$VMEDIA_PARAMS $PARAMS"
  fi
  rmdir $VMEDIA_MOUNT
fi

# resize /tmp
if [[ $PARAMS =~ suse.tmpsize=([^ ]+) ]]; then
  echo "Resizing /tmp to ${BASH_REMATCH[1]}..."
  mount -o remount,size=${BASH_REMATCH[1]} /tmp
fi
# deploy authorized sshkey from kernel command line
if [[ $PARAMS =~ sshkey=\"([^\"]+)\" ]]; then
  echo "Adding authorized SSH key..."
  (umask 077 ; mkdir -p /root/.ssh)
  echo "${BASH_REMATCH[1]}" >> /root/.ssh/authorized_keys
fi
# Inject certs
if [[ $PARAMS =~ tls.enabled=(true|True) ]]; then
  cp /etc/ironic-python-agent.d/ca-certs/* /etc/pki/trust/anchors/
  cp /etc/ironic-python-agent.d/ca-certs/* /usr/share/pki/trust/anchors/
  update-ca-certificates
fi
# autologin root on given console (default tty1) if suse.autologin or coreos.autologin is enabled
if [[ $PARAMS =~ (suse|coreos)\.autologin=?([^ ]*) ]]; then
  tty="${BASH_REMATCH[2]:-tty1}"
  echo "Enabling autologin on $tty..."
  systemctl stop getty@$tty
  systemctl disable getty@$tty
  systemctl start autologin@$tty
fi

# Append to /etc/hosts
# hosts.append=1.2.3.4_foo,4.5.6.7_foo2
if [[ $PARAMS =~ hosts.append=([^ ]+) ]]; then
  HOSTS=${BASH_REMATCH[1]}
  echo "Appending to hosts ${HOSTS}..."
  for h in ${HOSTS/,/ }; do
    echo "${h/_/ }" >> /etc/hosts
  done
  cat /etc/hosts
fi
07070100000014000081ed00000000000000000000000168dfb361000002cc000000000000000000000000000000000000002900000000root/usr/local/bin/suse-network-setup.sh#!/bin/bash

set -eux

# Inspired by/based on glean-early.sh
# https://opendev.org/opendev/glean/src/branch/master/glean/init/glean-early.sh

# NOTE(TheJulia): We care about iso images, and would expect lower case as a
# result. In the case of VFAT partitions, they would be upper case.

PATH=/bin:/usr/bin:/sbin:/usr/sbin
NETWORK_DATA_FILE="/mnt/ipa/openstack/latest/network_data.json"


if [ ! -f "${NETWORK_DATA_FILE}" ]; then
	echo "No network_data.json found, skipping network configuration"
	exit 1
fi

mkdir -p /tmp/nmc/{desired,generated}
cp ${NETWORK_DATA_FILE} /tmp/nmc/desired/_all.yaml

nmc generate --config-dir /tmp/nmc/desired --output-dir /tmp/nmc/generated
nmc apply --config-dir /tmp/nmc/generated
07070100000015000081ed00000000000000000000000168dfb36100000290000000000000000000000000000000000000002900000000root/usr/local/bin/suse-test-config-2.sh#!/bin/bash

set -eux

PATH=/bin:/usr/bin:/sbin:/usr/sbin

# Transform the ID from the drive being considered to lower case
device_publisher_id=$(echo ${ID_FS_PUBLISHER_ID} | tr '[A-Z]' '[a-z]')

# Retrieve the publisher ID from the command line and convert to lower case
cmdline_publisher_id=""
if grep -q "ir_pub_id" /proc/cmdline; then
    cmdline_publisher_id=$(cat /proc/cmdline | sed -e 's/^.*ir_pub_id=//' -e 's/ .*$//')
fi

# Is this the filesystem we are looking for?
if [[ "${cmdline_publisher_id}" == "${device_publisher_id}" ]]; then
	# It is the device we are looking for, return success
	exit 0
else
	# Not a match, return failure
	exit 1
fi
07070100000016000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000001300000000root/usr/local/bin07070100000017000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000000f00000000root/usr/local07070100000018000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000000900000000root/usr07070100000019000041ed00000000000000000000000168dfb36100000000000000000000000000000000000000000000000500000000root07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!
openSUSE Build Service is sponsored by