fix: don't try to replace a mount point

This commit is contained in:
2025-12-07 16:24:11 +06:00
parent c7b91efd6a
commit 2964ecc349
2 changed files with 16 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ VOLUMES=(
-v distfiles:/var/cache/distfiles -v distfiles:/var/cache/distfiles
-v binpkgs:/var/cache/binpkgs -v binpkgs:/var/cache/binpkgs
-v "$CTX/etc/portage/make.conf:/etc/portage/make.conf" -v "$CTX/etc/portage/make.conf:/etc/portage/make.conf"
-v "$CTX/var/lib/portage/world:/var/lib/portage/world" -v "$CTX/var/lib/portage:/tmp/incoming_world:ro"
) )
# add config dirs to volumes # add config dirs to volumes
@@ -84,6 +84,8 @@ podman run --rm -i \
set -e set -e
source /etc/profile source /etc/profile
cp /tmp/incoming_world/world /var/lib/portage/world
echo "> Syncing tree..." echo "> Syncing tree..."
emerge-webrsync -q emerge-webrsync -q

13
trigger.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
SERVER_USER="mira"
SERVER_IP="192.168.102.148"
REMOTE_DIR="$HOME/gentoo-pill"
echo "Connecting to ${SERVER_USER}@${SERVER_IP}..."
ssh -A -t "${SERVER_USER}@${SERVER_IP}" \
"bash -c 'cd ${REMOTE_DIR} && ./binhost.sh'"
echo "Trigger complete"