From 57e352fae5410628c1bc4104ec5df21d221469ed Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 19 Mar 2017 23:26:43 +0100 Subject: Make it easier to use another directory than /tmp for temp data --- make_slackware_live.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index d40f5ca..5d377d9 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -215,8 +215,14 @@ SXZ_COMP=${SXZ_COMP:-"xz"} # Mount point where Live filesystem is assembled (no storage requirements): LIVE_ROOTDIR=${LIVE_ROOTDIR:-"/mnt/slackwarelive"} +# Directory where the live ISO image will be written: +OUTPUT=${OUTPUT:-"/tmp"} + +# Directory where we create the staging directory: +TMP=${TMP:-"/tmp"} + # Toplevel directory of our staging area (this needs sufficient storage): -LIVE_STAGING=${LIVE_STAGING:-"/tmp/slackwarelive_staging"} +LIVE_STAGING=${LIVE_STAGING:-"${TMP}/slackwarelive_staging"} # Work directory where we will create all the temporary stuff: LIVE_WORK=${LIVE_WORK:-"${LIVE_STAGING}/temp"} @@ -234,9 +240,6 @@ LIVE_MOD_SYS=${LIVE_MOD_SYS:-"${LIVE_STAGING}/${LIVEMAIN}/system"} LIVE_MOD_ADD=${LIVE_MOD_ADD:-"${LIVE_STAGING}/${LIVEMAIN}/addons"} LIVE_MOD_OPT=${LIVE_MOD_OPT:-"${LIVE_STAGING}/${LIVEMAIN}/optional"} -# Directory where the live ISO image will be written: -OUTPUT=${OUTPUT:-"/tmp"} - # --------------------------------------------------------------------------- # Define some functions. # --------------------------------------------------------------------------- -- cgit v1.2.3