History log of /lxc/templates/lxc-download.in
Revision Date Author Comments Expand
e1adf44ef2c0828ea9031b2225b32fe543a99cde 20-Mar-2017 Tai Kedzierski <dch.tai@gmail.com>

Change variable check to match existing style Signed-off-by: Tai Kedzierski <dch.tai@gmail.com>

bff08b8d265c0a1a896b3462ed0124f97f81fcd6 20-Mar-2017 Tai Kedzierski <dch.tai@gmail.com>

lxc-download.in / Document keyserver change in help Signed-off-by: Tai Kedzierski <dch.tai@gmail.com>

c586a4dcc923ce6bbe0304642bd738d7b5faff21 20-Mar-2017 Tai Kedzierski <dch.tai@gmail.com>

lxc-download.in / allow setting keyserver from env Checks if DOWNLOAD_KEYSERVER has already been set in the environment before setting a value Signed-off-by: Tai Kedzierski <dch.tai@gmail.com>

fbe7891bd38e5db9d2cb97f5779f546c9d0bf959 03-Oct-2016 Roman Mueller <roman.mueller@gmail.com>

Fix spelling of CentOS in the templates Signed-off-by: Roman Mueller <roman.mueller@gmail.com>

3b9494bd64334d9c02a4fd2f9af04fa839830667 26-Aug-2016 Stéphane Graber <stgraber@ubuntu.com>

Use full GPG fingerprint instead of long IDs. With how easy it is to create a collision on a short ID nowadays and given that the user doesn't actually have to remember or manually enter the key ID, lets just use the full fingerprint from now on. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

9fd38724d9cedc0ce110c8efdf6bfe2ea772d372 17-Mar-2016 Stéphane Graber <stgraber@ubuntu.com>

download: Bump to compat level 3 Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

6dc6f80bfd7cb169948f2ef9a95dcf6d2edee853 11-Jun-2015 Kevin Carter <kevin.carter@rackspace.com>

Added container-cache option to templates This change adds in the container-cache option within the mainline default lxc templates. The pupose here is to allow a template to pull from a location that may not be `@LOCALSTATEDIR@/cache/lxc` Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>

6e53ca56a40d114bc672bb0edb99535d6ba2d763 10-Mar-2015 Stuart Cardall <developer@it-offshore.co.uk>

fix lxc-console on centos / oracle unprivileged containers Signed-off-by: Stuart Cardall <developer@it-offshore.co.uk>

7d540a266389ab981c87a64050b0ba050e147e15 16-Jan-2015 Michael Adam <obnox@samba.org>

lxc-download: improve help text. --help and --list are special in the sense that they are independent of the other options and exit early. Document them separately. Signed-off-by: Michael Adam <obnox@samba.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

308f4f391a0a0f2bd29a44a7b2be1e43abc61912 16-Jan-2015 Michael Adam <obnox@samba.org>

lxc-download: make --list more useful. Make it possible to use --list without having to specify --dist, --release, and --arch, which does not make a lot of sense. Signed-off-by: Michael Adam <obnox@samba.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

e145b7bb6d62fe3ba279ec0730117edea9c2d538 16-Jan-2015 Michael Adam <obnox@samba.org>

lxc-download: fix typo in help text. Signed-off-by: Michael Adam <obnox@samba.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

3cd988ccdbbb5b5794b19ad1165e48168c2dd1d9 23-Sep-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Make --keyserver actually work Reported-by: NeilGreenwood <neil.greenwood@gmail.com> Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

acabe1faee82d44db391345a8a51b9dec3dc0229 31-Jul-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Have wget retry 3 times This forces wget to retry if it gets a network error. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

ce7aee4d913e4c181502e3c2e6373c30a3db55b9 18-Jun-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Bump compat to 2 after OpenSUSE OpenSUSE is now ready for the download template in the master branch, however it's not going to be compatible with older LXC as they lack the needed config files, so bump the compat level to 2 to indicate that the current lxc-download can deal with the current OpenSUSE containers. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

809a1539a3d83d0ea6f277519e6d43e75ccf1013 03-Jun-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Attempt to get the GPG key 3 times This is to deal with the GPG pool occasionaly yielding broken servers. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

e6ee584a15cebe1be9713c7c89681dba7f65ab63 01-Apr-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Set a 30s timeout for wget request Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>

9f15e86afa60f9f29658a3e7f60104a5bc23e86b 01-Mar-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Fix in_userns again The use of a subshell was causing various failures, re-arrange not to use one. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

fda03e44e6dbe7bd13f68e0751b08e0fe5584106 27-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Ignore return code from subshell The previous change fixed parsing of multiple uid/gid ranges by using a while loop, however a failure in that loop will cause the script to exit (due to -e), so we need to ignore the return value of the commands inside that loop. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

a1b6244eb510affcd448a9ddf25603e532f4dec6 26-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Detect unpriv created by real root This adds yet another case in the in_userns function detecting the case where an unprivileged container is created by the real uid 0, in which case we want to share the system wide cache but still use the unprivileged templates and unpack method. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

96283b546081e7ff709968378fca25cb44f1ab6c 19-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

templates: Fix bashisms in common code Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

f74e080cf75f958b3e52dff9e858fd722f66301e 17-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Support nested containers in unpriv This adds detection for the case where we are root in an unprivileged container and then run LXC from there. In this case, we want to download to the system location, ignore the missing uid/gid ranges and run templates that are userns-ready. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

ef9512b491f12ffd64030b15300dcfc448f516e0 06-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Use port-80 pool for gpg over http Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

207bf0e475f1dc6e9a2dac2cee3a209b56427855 06-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

templates: Make sure usual locations are in PATH Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

4eb706b3ce9891f86ff3f9b5b5d063922df9f6b6 06-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Fix previous change The previous change to support http proxies only worked when http_proxy was set... Instead add some detection code and only use :80 when using http_proxy. That's a bit of a workaround, but it's the only way I could find to get GPG to work with http_proxy. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

2262880d633c440eb17aefd271d571312a0fd31e 06-Feb-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Force hkp on port 80 (for http proxies) Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

2133f58c66ab7627a4159fafbb75106c556b014d 04-Feb-2014 Serge Hallyn <serge.hallyn@ubuntu.com>

create: pass --mapped-gid to templates next to --mapped-uid That way templates can fix group ownership alongside uid ownership. Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

b56661fead638d40eaee54d9134063098e4fa51c 27-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Tweak cache location - Also include the variant in the path - Fix invalid LXC_CACHE_BASE - Drop redundant code Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

843a58743e6ba9e8efa61aede4cdf32be43af114 25-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Fix to work without mktemp mktemp isn't always available in busybox. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

b0f0932a944abf6425e9f185dea9c6d9ba6e8436 22-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Add interactive mode Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

41670b35b0d7a11c7fa7d04e2535495dc90b76a9 15-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Fix undefined DOWNLOAD_FORCE_CACHE Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

c1becef2d2d96ce2c782d2b0eb19b24dcd6026d9 15-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: Fix wrong option parsing Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

0d656b0549e67635ad9c24474b82dfa26e1f4512 15-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

lxc-download: POSIX doesn't specify -f for chown Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

9accc2efea59a685942501c13e8eb7a21f74a5f6 14-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Improve cache handling This adds a new --force-cache parameter which will force use of the cache even for expired images. An expired image is now only flushed from the cache once a new one is successfuly downloaded (to avoid destroying the local cache when the host doesn't have internet connectivity). The ID of the build in cache is also tracked so that we don't re-download something we already have (should only happen if we don't have a new build published by the time the previous one expires). Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

10a5fab6f3ad5cab234b198da31633e41c8ee364 14-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Support listing available images Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

fecf101cc4352e9bf60ed3477196146a65b5c4f6 14-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Don't use an hardcoded exclude list Instead of hardcoding --exclude=./dev/*, use a new metadata file "excludes" which lists all the paths or patterns to exclude during extraction (one per line). Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

33aa351ac13936fb2549403f18a44fed32b2edfb 14-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Fix download_sig logic Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>

fad967669817061cda3aafc40be04dcb712a4767 14-Jan-2014 Dwight Engen <dwight.engen@oracle.com>

download: don't download signatures when --no-validate given - show full path to failed download location - change test to -f in case meta.tar.xz:templates has a blank line it won't attempt to sed a directory Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

71d3a6590fe665421d7a0026d699b0654ddfc7f6 13-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

download: Initial template This adds a new template called "download". It's a fairly simple template with a minimal set of dependency which will grab any pre-built image available on https://images.linuxcontainers.org Note that the serverside is still work in progress (missing SSL support). Access is done over https by default with a warning being emitted if fallback to http was required (may be needed for testing, when behind proxy and with private servers). All index files and tarballs are gpg-signed with the default pubkeyid contained in the template itself. The main benefit of this template is to be entirely distribution-agnostic, any template that can be integrated with the server build infrastructure will then work on any LXC machine when using the download template. This template is also compatible with user namespaces and will hopefully help widden the number of distros that may work in unprivileged LXC. This commit also bundles a small change to the template configs to have the ubuntu template (used by the download template) to work with unprivileged LXC. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>