summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-08-19 15:23:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-08-19 15:23:10 +0000
commit97f2db7447526e59fe75890db07db56b219a6123 (patch)
treec7b3ccdf0b65404f562ffab47d81c960c93ab1de
parentf4ab54aab499b5c232e4fd83cc6be38eacd88128 (diff)
downloaddrakx-backup-do-not-use-97f2db7447526e59fe75890db07db56b219a6123.tar
drakx-backup-do-not-use-97f2db7447526e59fe75890db07db56b219a6123.tar.gz
drakx-backup-do-not-use-97f2db7447526e59fe75890db07db56b219a6123.tar.bz2
drakx-backup-do-not-use-97f2db7447526e59fe75890db07db56b219a6123.tar.xz
drakx-backup-do-not-use-97f2db7447526e59fe75890db07db56b219a6123.zip
prevent packdrake faillure on creating temporary files
-rw-r--r--tools/drakx-in-chroot2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index 83d1b381b..91f9edd28 100644
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -23,6 +23,8 @@ if ($>) {
$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
}
+undef $ENV{TMPDIR}; # prevent packdrake faillure on creating temporary files
+
if (-d $SLASH_LOCATION) {
umount_all() == 0 or die "$SLASH_LOCATION is busy\n";
sys("$sudo rm -rf $SLASH_LOCATION/var/lib/rpm $SLASH_LOCATION/dev/mapper");