diff --git a/genkernel b/genkernel index 42b6997..35b40e3 100755 --- a/genkernel +++ b/genkernel @@ -2,7 +2,7 @@ # Genkernel v3 GK_V="3.0.1_beta12" -TEMP="/tmp" +TEMP="/var/tmp/genkernel" small_die() { echo $1 @@ -43,6 +43,8 @@ get_official_arch source ${ARCH_CONFIG} || gen_die "could not read ${ARCH_CONFIG}" source ${GK_SHARE}/${ARCH}/modules_load || gen_die "could not read ${GK_SHARE}/${ARCH}/modules_load" +[ ! -f "${TEMP}" ] && mkdir -p "${TEMP}" + # Based on genkernel.conf, arch-specific configs, and commandline options, # get the real args for use. determine_real_args