feat(qemu-ci): scope internal breakpoints as steps:NAME or steps-guix:NAME with default steps-guix recopy

This commit is contained in:
vxtls 2026-03-03 13:14:27 -05:00
parent 4e67035e5e
commit 7253e3fb33
2 changed files with 112 additions and 5 deletions

23
steps-guix/jump/break.sh Normal file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
# Optional in some preseed/testing contexts.
if [ -f /steps/bootstrap.cfg ]; then
# shellcheck disable=SC1091
. /steps/bootstrap.cfg
fi
# For VM/metal runs, stop immediately so the current disk state can be reused.
if [ "${CHROOT}" = False ]; then
swapoff -a >/dev/null 2>&1 || true
sync
echo u > /proc/sysrq-trigger || true
mount -o remount,ro / || true
echo o > /proc/sysrq-trigger || poweroff -f || true
while true; do sleep 1; done
fi
exit 0