Allow running an interactive shell in stage 2

This commit is contained in:
Rodrigo Arias 2024-09-27 14:11:33 +02:00
parent d4df444a1f
commit 58c6d56e96

View File

@ -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