diff --git a/dracut/30coreos-installer/coreos-installer-generator b/dracut/30coreos-installer/coreos-installer-generator deleted file mode 100755 index bce01e029..000000000 --- a/dracut/30coreos-installer/coreos-installer-generator +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- -# ex: ts=8 sw=4 sts=4 et filetype=sh - -set -e - -UNIT_DIR="${1:-/tmp}" - -cmdline=( $(> /tmp/debug - echo $IMAGE_URL >> /tmp/image_url -fi - -local DEST_DEV=$(getarg coreos.inst.install_dev=) -if [ ! -z "$DEST_DEV" ] -then - echo "preset install dev to $DEST_DEV" >> /tmp/debug - echo $DEST_DEV >> /tmp/selected_dev -fi - -local IGNITION_URL=$(getarg coreos.inst.ignition_url=) -if [ ! -z "$IGNITION_URL" ] -then - echo "preset ignition url to $IGNITION_URL" >> /tmp/debug - echo $IGNITION_URL >> /tmp/ignition_url -fi - -local PLATFORM_ID=$(getarg coreos.inst.platform_id=) -if [ ! -z "$PLATFORM_ID" ] -then - echo "preset ignition platform id to ${PLATFORM_ID}" >> /tmp/debug - echo $PLATFORM_ID >> /tmp/platform_id -fi - -# Kernel networking args -# Currently only persisting `ipv6.disable`, but additional options may be added -# in the future -# https://github.com/torvalds/linux/blob/master/Documentation/networking/ipv6.txt -declare -a KERNEL_NET_ARGS=("ipv6.disable=") -# Dracut networking args -# Parse all args (other than rd.neednet) and persist those into /tmp/networking_opts -# List from https://www.mankier.com/7/dracut.cmdline#Description-Network -local NETWORKING_ARGS="rd.neednet=1" -declare -a DRACUT_NET_ARGS=("ip=" "ifname=" "rd.route=" "bootdev=" "BOOTIF=" "rd.bootif=" "nameserver=" "rd.peerdns=" "biosdevname=" "vlan=" "bond=" "team=" "bridge=" "rd.net.timeout.carrier=") -for NET_ARG in "${KERNEL_NET_ARGS[@]}" "${DRACUT_NET_ARGS[@]}" -do - NET_OPT=$(getarg $NET_ARG) - if [ ! -z "$NET_OPT" ] - then - echo "persist $NET_ARG to $NET_OPT" >> /tmp/debug - NETWORKING_ARGS+=" ${NET_ARG}${NET_OPT}" - fi -done -# only write /tmp/networking_opts if additional networking options have been specified -# as the default in ignition-dracut specifies `rd.neednet=1 ip=dhcp` when no options are persisted -if [ "${NETWORKING_ARGS}" != "rd.neednet=1" ] -then - echo "persisting network options: ${NETWORKING_ARGS}" >> /tmp/debug - echo "${NETWORKING_ARGS}" >> /tmp/networking_opts -fi - -if getargbool 0 coreos.inst.skip_media_check -then - echo "Asserting skip of media check" >> /tmp/debug - echo 1 > /tmp/skip_media_check -fi - -# persist the coreos.no_persist_ip flag if present -if getargbool 0 coreos.no_persist_ip -then - echo "persisting coreos.no_persist_ip" >> /tmp/debug - echo "coreos.no_persist_ip=1" >> /tmp/additional_opts -fi - -# This one is not consumed by the CLI but actually by the -# coreos-installer.service systemd unit that is run in the -# initramfs. We don't default to rebooting from the CLI. -if getargbool 0 coreos.inst.skip_reboot -then - echo "Asserting reboot skip" >> /tmp/debug - echo 1 > /tmp/skip_reboot -fi - -if [ "$(getarg coreos.inst=)" = "yes" ]; then - # Suppress initrd-switch-root.service from starting - rm -f /etc/initrd-release - # Suppress most console messages for the installer to run without interference - dmesg -n 1 -fi diff --git a/dracut/99emergency-failure/failure.sh b/dracut/99emergency-failure/failure.sh deleted file mode 100644 index 09586db2f..000000000 --- a/dracut/99emergency-failure/failure.sh +++ /dev/null @@ -1,7 +0,0 @@ -if systemctl show coreos-installer.service | grep -q "^ActiveState=failed$"; then - # systemd-udevd seems to be stopped in the emergency shell - systemctl start systemd-udevd - - # print the coreos-installer help prompt - /usr/libexec/coreos-installer -h -fi diff --git a/dracut/99emergency-failure/module-setup.sh b/dracut/99emergency-failure/module-setup.sh deleted file mode 100644 index d860f429e..000000000 --- a/dracut/99emergency-failure/module-setup.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# module setup for 99emergency-failure - -install() { - inst_hook emergency 99 "${moddir}/failure.sh" -}