Compare commits
2 Commits
fe6ee25d1c
...
0c0f1ec715
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c0f1ec715 | |||
| 83760025b6 |
BIN
rescue-objects.tar
Normal file
BIN
rescue-objects.tar
Normal file
Binary file not shown.
@@ -170,25 +170,35 @@ runcmd:
|
||||
- pacman -S --noconfirm --needed base-devel git wget curl rust cargo qemu-full edk2-ovmf squashfs-tools xorriso dosfstools mtools python bc rsync openssh tmux
|
||||
|
||||
# --- CLONE PROJECT ---------------------------------------------------------
|
||||
# Try HTTPS (with SSL_NO_VERIFY for self-hosted Gitea), fall back to GitHub
|
||||
- |
|
||||
su - darkforge -c '
|
||||
cd /home/darkforge
|
||||
git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git 2>/dev/null || \
|
||||
GIT_SSL_NO_VERIFY=true git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git 2>/dev/null || \
|
||||
git clone --recurse-submodules https://github.com/danny8632/darkforge.git 2>/dev/null || \
|
||||
echo "CLONE FAILED — manually clone the repo after login"
|
||||
echo "CLONE FAILED — run manually: GIT_SSL_NO_VERIFY=true git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git ~/darkforge"
|
||||
'
|
||||
|
||||
# --- INSTALL CONVENIENCE COMMAND -------------------------------------------
|
||||
# NOTE: heredoc inside cloud-init runcmd must NOT be indented or the
|
||||
# shebang gets leading spaces and the script won't execute properly.
|
||||
- |
|
||||
cat > /usr/local/bin/darkforge-test << 'DTEOF'
|
||||
#!/bin/bash
|
||||
SCRIPT="/home/darkforge/darkforge/tests/proxmox/run-in-vm.sh"
|
||||
if [ ! -f "$SCRIPT" ]; then
|
||||
echo "ERROR: Test script not found. Is the repo cloned?"
|
||||
echo "ERROR: Test script not found at: $SCRIPT"
|
||||
echo ""
|
||||
echo "The git clone probably failed during provisioning."
|
||||
echo "Clone manually:"
|
||||
echo " git clone --recurse-submodules https://git.dannyhaslund.dk/danny8632/darkforge.git ~/darkforge"
|
||||
echo ""
|
||||
echo "Then run: darkforge-test"
|
||||
exit 1
|
||||
fi
|
||||
ARGS="$*"
|
||||
# Kill any existing tmux session first
|
||||
tmux kill-session -t darkforge 2>/dev/null || true
|
||||
exec tmux new-session -d -s darkforge \
|
||||
"bash ${SCRIPT} --tmux ${ARGS}; echo ''; echo 'Tests finished. Press Enter to close.'; read" \; \
|
||||
attach-session -t darkforge
|
||||
|
||||
Reference in New Issue
Block a user