summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-03-19 23:26:43 +0100
committer Eric Hameleers <alien@slackware.com>2017-03-19 23:26:43 +0100
commit57e352fae5410628c1bc4104ec5df21d221469ed (patch)
treedd6e7133489378e7de397eddaa9a7d9edf6f9e42 /make_slackware_live.sh
parent3b80770fc777e61a18869f74a195b84f452d05d2 (diff)
downloadliveslak-57e352fae5410628c1bc4104ec5df21d221469ed.tar.gz
liveslak-57e352fae5410628c1bc4104ec5df21d221469ed.tar.xz
Make it easier to use another directory than /tmp for temp data
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh11
1 files 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.
# ---------------------------------------------------------------------------