From 58c6d56e96553f202d44ac0add9664f8ccd34acc Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 27 Sep 2024 14:11:33 +0200 Subject: [PATCH] Allow running an interactive shell in stage 2 --- patches/stage-2-init.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/stage-2-init.sh b/patches/stage-2-init.sh index 0ef8cc6..78d416f 100755 --- a/patches/stage-2-init.sh +++ b/patches/stage-2-init.sh @@ -2,7 +2,7 @@ set -x -echo "HELLOOOOOOOOOOOO FROM STAGE 2" +echo "--- starting stage 2 ---" systemConfig=@systemConfig@ @@ -17,6 +17,9 @@ if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" != true ]; then # Show each command. set -x ;; + debug2) + bash -i + ;; esac done @@ -121,7 +124,7 @@ echo "running activation script..." #strace -f $systemConfig/activate $systemConfig/activate -echo "ACTIVATE WORKED!!!" +echo "activation script OK" # Record the boot configuration. ln -sfn "$systemConfig" /run/booted-system