[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.49-105-gac1319a

Andreas Beckmann anbe at debian.org
Fri Mar 1 15:33:06 UTC 2013


The following commit has been merged in the piatti branch:
commit 7ef7966f4326a008ef1b28b83945ea67f0766968
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Feb 25 03:06:22 2013 +0100

    slave_run: ensure PIUPARTS_TMPDIR exists
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/debian/changelog b/debian/changelog
index 1cc794a..97436c3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -70,6 +70,7 @@ piuparts (0.50) UNRELEASED; urgency=low
   * slave_join: Use 'script /dev/null' hack if needed to get a writable tty.
     This avoids running the piuparts-slave screen session as root.
   * slave_run: Get paths etc. from piuparts.conf.
+  * slave_run: Ensure the tmpdir exists, this could be on tmpfs.
   * detect_leftover_processes: Move statefile to slave-directory.
   * detect_stale_mounts: Merge into detect_tmp_cruft.
   * detect_tmp_cruft: Move to slave-bin and run from slave crontab.
diff --git a/slave-bin/slave_run.in b/slave-bin/slave_run.in
index 65d5062..6f18685 100755
--- a/slave-bin/slave_run.in
+++ b/slave-bin/slave_run.in
@@ -26,6 +26,7 @@ set -e
 
 get_config_value PYTHONPATH global PYTHONPATH ''
 get_config_value SLAVEROOT global slave-directory
+get_config_value PIUPARTS_TMPDIR global tmpdir
 
 
 export PYTHONPATH
@@ -40,6 +41,9 @@ if ! screen -ls $SESSIONNAME | grep -q "No Sockets found" ; then
 	exit 1
 fi
 
+# ensure the temporary directory exists
+mkdir -p $PIUPARTS_TMPDIR
+
 mkdir -p $SLAVEROOT
 cd $SLAVEROOT
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list