#!/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 # Generators don't have logging right now # https://github.com/systemd/systemd/issues/15638 exec 1>/dev/kmsg; exec 2>&1 UNIT_DIR="${1:-/tmp}" cmdline=( $(/dev/null || ! is-live-image; then add_requires ignition-diskful.target ignition-complete.target fi else # If we're doing a non-Ignition (subsequent) boot, then # queue a different target. This is necessary so that units # like `ignition-ostree-mount-sysroot.service` # can cleanly distinguish between the two. add_requires ignition-subsequent.target initrd.target if ! command -v is-live-image >/dev/null || ! is-live-image; then add_requires ignition-diskful-subsequent.target ignition-subsequent.target fi fi echo "PLATFORM_ID=$(cmdline_arg ignition.platform.id)" > /run/ignition.env