#!/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 # Call upstream generator . /usr/lib/systemd/system-generators/ignition-generator . /run/ignition.env add_requires ignition-mount-initrd-fstab.service ignition-files.service add_requires ignition-enable-network.service ignition-fetch.service if ! is-live-image; then # ignition-setup-user.service should depend on the boot device node # only on diskful boots mkdir -p "${UNIT_DIR}/ignition-setup-user.service.d" cat > "${UNIT_DIR}/ignition-setup-user.service.d/diskful.conf" < /run/ignition.env fi