commit:     c9e75f245bd8303d9ce72110fcbfa3857d541f5d
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 10 06:28:14 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Jan 10 06:28:14 2024 +0000
URL:        https://gitweb.gentoo.org/proj/binhost.git/commit/?id=c9e75f24

Some beautification

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 builders/demeter/binhost-update | 6 +++---
 builders/jiji/binhost-update    | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/builders/demeter/binhost-update b/builders/demeter/binhost-update
index 9ea2afc..5245c5f 100755
--- a/builders/demeter/binhost-update
+++ b/builders/demeter/binhost-update
@@ -11,11 +11,11 @@ [email protected]
 
 NSPAWN_NAMES="binhost-amd64-x86-64-kde binhost-amd64-x86-64-gnome 
binhost-amd64-x86-64-server binhost-amd64-x86-64-v3-kde 
binhost-amd64-x86-64-v3-gnome binhost-amd64-x86-64-v3-server"
 
-MAX_HARMLESS=200
-
 UPLOAD_USER=amd64
 UPLOAD_KEY=/root/.ssh/id_rsa
 
+TMPFS_SIZE=32
+
 
 send_email() {
         local subject="[binhost ${BINHOST_NAME}] $1"
@@ -100,7 +100,7 @@ for n in ${NSPAWN_NAMES} ; do
        cd /var/lib/machines/${n}/etc/binhost &>> ${TMPFILE}
        git pull -q &>> ${TMPFILE}
        cd /root &>> ${TMPFILE}
-       systemd-nspawn --bind /var/cache/distfiles --bind-ro 
/var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=32g -M ${n} 
/root/bin/run-update &>> ${TMPFILE}
+       systemd-nspawn --bind /var/cache/distfiles --bind-ro 
/var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=${TMPFS_SIZE}g -M ${n} 
/root/bin/run-update &>> ${TMPFILE}
        let "anyfail+=$?"
 done
 

diff --git a/builders/jiji/binhost-update b/builders/jiji/binhost-update
index 0becbb9..2cda38b 100755
--- a/builders/jiji/binhost-update
+++ b/builders/jiji/binhost-update
@@ -11,11 +11,11 @@ [email protected]
 
 NSPAWN_NAMES="binhost-arm64-kde binhost-arm64-gnome binhost-arm64-server 
binhost-arm64-kde-23 binhost-arm64-gnome-23 binhost-arm64-server-23"
 
-MAX_HARMLESS=200
-
 UPLOAD_USER=arm64
 UPLOAD_KEY=/root/.ssh/id_ed25519
 
+TMPFS_SIZE=64
+
 
 send_email() {
         local subject="[binhost ${BINHOST_NAME}] $1"
@@ -100,7 +100,7 @@ for n in ${NSPAWN_NAMES} ; do
        cd /var/lib/machines/${n}/etc/binhost &>> ${TMPFILE}
        git pull -q &>> ${TMPFILE}
        cd /root &>> ${TMPFILE}
-       systemd-nspawn --bind /var/cache/distfiles --bind-ro 
/var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=64g -M ${n} 
/root/bin/run-update &>> ${TMPFILE}
+       systemd-nspawn --bind /var/cache/distfiles --bind-ro 
/var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=${TMPFS_SIZE}g -M ${n} 
/root/bin/run-update &>> ${TMPFILE}
        let "anyfail+=$?"
 done
 

Reply via email to