Fix #132408.
authorTim Yamin <plasmaroo@gentoo.org>
Sun, 7 May 2006 17:48:51 +0000 (17:48 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Sun, 7 May 2006 17:48:51 +0000 (17:48 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@387 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_cmdline.sh
genkernel

index 48192711daf2eb5dbdd03fc31f0468a5440cb665..f6c635b845215f8a29ff0e25a94dd19d750dd78a 100755 (executable)
@@ -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)
index 7ce51fccf281606cf9952c790f0b3dfb42bbfc10..05112ebeb1e5406911f843a41fc0cf547ddb999e 100755 (executable)
--- 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