mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
feat(qemu-ci): scope internal breakpoints as steps:NAME or steps-guix:NAME with default steps-guix recopy
This commit is contained in:
parent
4e67035e5e
commit
7253e3fb33
2 changed files with 112 additions and 5 deletions
23
steps-guix/jump/break.sh
Normal file
23
steps-guix/jump/break.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue