Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
69556eaf
Unverified
Commit
69556eaf
authored
Feb 25, 2018
by
Stéphane Graber
Committed by
GitHub
Feb 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2187 from itoffshore/alpine
fix download template for /tmp as tmpfs or noexec
parents
c8a5adcd
edb5452c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lxc-download.in
templates/lxc-download.in
+8
-3
No files found.
templates/lxc-download.in
View file @
69556eaf
...
@@ -46,6 +46,7 @@ DOWNLOAD_URL=
...
@@ -46,6 +46,7 @@ DOWNLOAD_URL=
DOWNLOAD_USE_CACHE
=
"false"
DOWNLOAD_USE_CACHE
=
"false"
DOWNLOAD_VALIDATE
=
"true"
DOWNLOAD_VALIDATE
=
"true"
DOWNLOAD_VARIANT
=
"default"
DOWNLOAD_VARIANT
=
"default"
DOWNLOAD_TEMP
=
LXC_MAPPED_GID
=
LXC_MAPPED_GID
=
LXC_MAPPED_UID
=
LXC_MAPPED_UID
=
...
@@ -311,11 +312,15 @@ fi
...
@@ -311,11 +312,15 @@ fi
# Trap all exit signals
# Trap all exit signals
trap
cleanup EXIT HUP INT TERM
trap
cleanup EXIT HUP INT TERM
# /tmp may be mounted in tmpfs or noexec
if
mountpoint
-q
/tmp
;
then
DOWNLOAD_TEMP
=
"
${
LXC_PATH
}
"
fi
if
!
command
-V
mktemp
>
/dev/null 2>&1
;
then
if
!
command
-V
mktemp
>
/dev/null 2>&1
;
then
DOWNLOAD_TEMP
=
/tmp/lxc-download.
$$
DOWNLOAD_TEMP
=
"
${
DOWNLOAD_TEMP
}
/tmp/lxc-download.
$$
"
mkdir
-p
"
${
DOWNLOAD_TEMP
}
"
else
else
DOWNLOAD_TEMP
=
$(
mktemp
-d
)
DOWNLOAD_TEMP
=
"
${
DOWNLOAD_TEMP
}$(
mktemp
-d
)
"
fi
fi
# Simply list images
# Simply list images
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment