# shellcheck shell=bash # Helpers shared by the hidden preambles of the tutorial demos (demo/*/setup.sh). # Root shell of an instance, made recordable: its prompt (root@) ends # with the marker autocast waits for, and its input is not echoed twice (no # readline, no tty echo). Only for instances created by the demo. demo_instance_shell() { lxc exec "$1" -- sh -c "cat >> /root/.bashrc" </dev/null }