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
d2938916
Unverified
Commit
d2938916
authored
Nov 20, 2020
by
Andrew Deng
Committed by
Christian Brauner
Dec 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added standard resolver option to the lxc-download.in shell script
Signed-off-by:
Andrew Deng
<
adeng1433@gmail.com
>
parent
434f12c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lxc-download.in
templates/lxc-download.in
+7
-0
No files found.
templates/lxc-download.in
View file @
d2938916
...
...
@@ -47,6 +47,7 @@ DOWNLOAD_USE_CACHE="false"
DOWNLOAD_VALIDATE
=
"true"
DOWNLOAD_VARIANT
=
"default"
DOWNLOAD_TEMP
=
DOWNLOAD_STANDARD_RESOLVER
=
"false"
LXC_MAPPED_GID
=
LXC_MAPPED_UID
=
...
...
@@ -130,6 +131,10 @@ gpg_setup() {
mkdir
-p
"
${
DOWNLOAD_TEMP
}
/gpg"
chmod
700
"
${
DOWNLOAD_TEMP
}
/gpg"
if
[
"
${
DOWNLOAD_STANDARD_RESOLVER
}
"
=
"true"
]
;
then
echo
"standard-resolver"
>
"
${
DOWNLOAD_TEMP
}
/gpg/dirmngr.conf"
fi
export
GNUPGHOME
=
"
${
DOWNLOAD_TEMP
}
/gpg"
success
=
...
...
@@ -222,6 +227,7 @@ Optional arguments:
[ --no-validate ]: Disable GPG validation (not recommended)
[ --flush-cache ]: Flush the local copy (if present)
[ --force-cache ]: Force the use of the local copy even if expired
[ --standard-resolver ]: Force the use of the standard resolver
LXC internal arguments (do not pass manually!):
[ --name <name> ]: The container name
...
...
@@ -260,6 +266,7 @@ while :; do
--no-validate
)
DOWNLOAD_VALIDATE
=
"false"
;
shift
1
;;
--flush-cache
)
DOWNLOAD_FLUSH_CACHE
=
"true"
;
shift
1
;;
--force-cache
)
DOWNLOAD_FORCE_CACHE
=
"true"
;
shift
1
;;
--standard-resolver
)
STANDARD_RESOLVER
=
"true"
;
shift
1
;;
--name
)
LXC_NAME
=
"
$2
"
;
shift
2
;;
--path
)
LXC_PATH
=
"
$2
"
;
shift
2
;;
--rootfs
)
LXC_ROOTFS
=
"
$2
"
;
shift
2
;;
...
...
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