#!/bin/sh target=$(xargs -n1 -a /proc/cmdline | awk -F '=' '/^flatcar.target=.*/ {print $NF}') flatcar-install -d ${target} -i /opt/ignition.json && udevadm settle && systemctl reboot"