From 3cac01be807c10fd5ed25f12af40f1581b68890d Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Wed, 20 Jul 2005 22:23:23 +0000 Subject: [PATCH] Fix minkernpackage breakage regarding the TEMP and TMPDIR variable git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@277 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_package.sh b/gen_package.sh index fcda622..1386b32 100644 --- a/gen_package.sh +++ b/gen_package.sh @@ -16,9 +16,9 @@ gen_minkernpackage() fi if [ "${KERN_24}" != '1' -a "${CMD_BOOTSPLASH}" != '1' ] then - [ "${BUILD_INITRD}" -ne 0 ] && { cp "${TEMP}/initramfs-${KV}" "${TEMP}/minkernpackage/initramfs-${ARCH}-${KV}" || gen_die 'Could not copy the initramfs for the kernel package!'; } + [ "${BUILD_INITRD}" -ne 0 ] && { cp "${TMPDIR}/initramfs-${KV}" "${TEMP}/minkernpackage/initramfs-${ARCH}-${KV}" || gen_die 'Could not copy the initramfs for the kernel package!'; } else - [ "${BUILD_INITRD}" -ne 0 ] && { cp "${TEMP}/initrd-${KV}" "${TEMP}/minkernpackage/initrd-${ARCH}-${KV}" || gen_die 'Could not copy the initrd for the kernel package!'; } + [ "${BUILD_INITRD}" -ne 0 ] && { cp "${TMPDIR}/initrd-${KV}" "${TEMP}/minkernpackage/initrd-${ARCH}-${KV}" || gen_die 'Could not copy the initrd for the kernel package!'; } fi cd "${TEMP}/minkernpackage" /bin/tar -jcpf ${MINKERNPACKAGE} * || gen_die 'Could not compress the kernel package!' -- 2.26.2