aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/download-template-tmpfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/lxc/download-template-tmpfs.patch')
-rw-r--r--main/lxc/download-template-tmpfs.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/main/lxc/download-template-tmpfs.patch b/main/lxc/download-template-tmpfs.patch
deleted file mode 100644
index c3525908c9..0000000000
--- a/main/lxc/download-template-tmpfs.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-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
-@@ -310,12 +310,15 @@ fi
-
- # Trap all exit signals
- trap cleanup EXIT HUP INT TERM
--
--if ! command -V mktemp >/dev/null 2>&1; then
-- DOWNLOAD_TEMP=/tmp/lxc-download.$$
-- mkdir -p "${DOWNLOAD_TEMP}"
--else
-- DOWNLOAD_TEMP=$(mktemp -d)
-+if ! grep -qw '/tmp' /proc/mounts; then
-+ if ! type mktemp >/dev/null 2>&1; then
-+ DOWNLOAD_TEMP=/tmp/lxc-download.$$
-+ mkdir -p $DOWNLOAD_TEMP
-+ else
-+ DOWNLOAD_TEMP=$(mktemp -d)
-+ fi
-+else # /tmp may be mounted in tmpfs / zram or noexec
-+ DOWNLOAD_TEMP=$(mktemp -d -p $LXC_PATH)
- fi
-
- # Simply list images