From e5da5c9721cfcb9903be0a736eea3ced4c4fae67 Mon Sep 17 00:00:00 2001 From: Tim Yamin Date: Sun, 7 May 2006 17:48:51 +0000 Subject: [PATCH] Fix #132408. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@387 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_cmdline.sh | 4 +++- genkernel | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 4819271..f6c635b 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -377,7 +377,9 @@ parse_cmdline() { print_info 2 "CMD_INITRAMFS: $CMD_INITRAMFS" ;; --tempdir=*) - TEMP=`parse_opt "$*"` + TMPDIR=`parse_opt "$*"` + TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$ + print_info 2 "TMPDIR: $TMPDIR" print_info 2 "TEMP: $TEMP" ;; --postclear) diff --git a/genkernel b/genkernel index 7ce51fc..05112eb 100755 --- a/genkernel +++ b/genkernel @@ -5,6 +5,7 @@ PATH="/bin:/usr/bin:/sbin:/usr/sbin" GK_V='3.3.11e' TMPDIR='/var/tmp/genkernel' +TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$ TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified. small_die() { @@ -25,8 +26,6 @@ source ${GK_BIN}/gen_moddeps.sh || gen_die "Could not read ${GK_BIN}/gen_moddeps source ${GK_BIN}/gen_package.sh || gen_die "Could not read ${GK_BIN}/gen_package.sh" source ${GK_BIN}/gen_bootloader.sh || gen_die "Could not read ${GK_BIN}/gen_bootloader.sh" -TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$ - trap_cleanup(){ # Call exit code of 1 for failure cleanup -- 2.26.2