aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/download-template-tmpfs.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-09-13 08:04:58 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-09-14 06:48:12 +0000
commitf1886418247c53fb5362d000f1c8e6919569e3bc (patch)
treedd64d73a7698375102ea5a3bda5a8601a25ceefd /main/lxc/download-template-tmpfs.patch
parente849330305414ce5bc7d344cd7e5532701496ee9 (diff)
downloadaports-f1886418247c53fb5362d000f1c8e6919569e3bc.tar.bz2
aports-f1886418247c53fb5362d000f1c8e6919569e3bc.tar.xz
main/lxc: upgrade to 2.1.0
Diffstat (limited to 'main/lxc/download-template-tmpfs.patch')
-rw-r--r--main/lxc/download-template-tmpfs.patch11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/lxc/download-template-tmpfs.patch b/main/lxc/download-template-tmpfs.patch
index de36c365a0..c3525908c9 100644
--- a/main/lxc/download-template-tmpfs.patch
+++ b/main/lxc/download-template-tmpfs.patch
@@ -1,12 +1,15 @@
+diff --git a/templates/lxc-download.in b/templates/lxc-download.in
+index 4905521..67a08a9 100644
--- a/templates/lxc-download.in
+++ b/templates/lxc-download.in
-@@ -298,11 +298,15 @@ fi
+@@ -310,12 +310,15 @@ fi
+
# Trap all exit signals
trap cleanup EXIT HUP INT TERM
-
--if ! type mktemp >/dev/null 2>&1; then
+-
+-if ! command -V mktemp >/dev/null 2>&1; then
- DOWNLOAD_TEMP=/tmp/lxc-download.$$
-- mkdir -p $DOWNLOAD_TEMP
+- mkdir -p "${DOWNLOAD_TEMP}"
-else
- DOWNLOAD_TEMP=$(mktemp -d)
+if ! grep -qw '/tmp' /proc/mounts; then