[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, master, updated. 148332ef45997ba3aaf38cc2c9a28441083bad49

Andreas Beckmann debian at abeckmann.de
Fri Dec 23 10:24:06 UTC 2011


The following commit has been merged in the master branch:
commit af0f97d729585ba85b60cb94c81faea3bbbab006
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Mon Nov 28 00:55:40 2011 +0100

    set chroot root password in pre_test_root_password
    
    Move setting the root password to a separate script that is run
    exactly once before the test.
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/org/piuparts.debian.org/etc/scripts/pre_install_exceptions b/org/piuparts.debian.org/etc/scripts/pre_install_exceptions
index aae4f0a..33c80bd 100755
--- a/org/piuparts.debian.org/etc/scripts/pre_install_exceptions
+++ b/org/piuparts.debian.org/etc/scripts/pre_install_exceptions
@@ -6,11 +6,6 @@ log_debug() {
 
 echo "Debug: running script $0"
 
-# sudo refuses removal if no root password is set, so set one
-# do this unconditionally, as there are quite some packages depending on sudo 
-# (and since its harmless and fast)
-yes "yes" | passwd 
-
 #
 # deal with packages depending on exceptions:
 #
diff --git a/org/piuparts.debian.org/etc/scripts/pre_test_root_password b/org/piuparts.debian.org/etc/scripts/pre_test_root_password
new file mode 100755
index 0000000..cbddecd
--- /dev/null
+++ b/org/piuparts.debian.org/etc/scripts/pre_test_root_password
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# sudo refuses removal if no root password is set, so set one
+# do this unconditionally, as there are quite some packages depending on sudo
+# (and since its harmless and fast)
+yes "yes" 2>/dev/null | passwd

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list