| 1 |
From: Mathias Gibbens <[email protected]> |
| 2 |
Description: Add a section describing how to create a container from an archived release |
| 3 |
Forwarded: not-needed |
| 4 |
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in |
| 5 |
index 5f63199..bab7f0a 100644 |
| 6 |
--- a/templates/lxc-debian.in |
| 7 |
+++ b/templates/lxc-debian.in |
| 8 |
@@ -723,7 +723,7 @@ Usage: $1 -h|--help -p|--path=<path> [-c|--clean] [-a|--arch=<arch>] [-r|--relea |
| 9 |
[-I|--interpreter-path=<interpreter path>] |
| 10 |
[-F | --flush-cache] [-S|--auth-key=<keyfile>] |
| 11 |
|
| 12 |
|
| 13 |
+Options: |
| 14 |
|
| 15 |
-h, --help print this help text |
| 16 |
-p, --path=PATH directory where config and rootfs of this VM will be kept |
| 17 |
@@ -732,6 +732,7 @@ Options : |
| 18 |
amd64, armhf, armel, powerpc. Defaults to host arch. |
| 19 |
-r, --release=RELEASE Debian release. Can be one of: buster, bullseye, bookworm, trixie, |
| 20 |
testing, sid. Defaults to current stable. |
| 21 |
+ For archived releases, see the section below. |
| 22 |
--mirror=MIRROR Debian mirror to use during installation. Overrides the MIRROR |
| 23 |
environment variable (see below). |
| 24 |
--keyring=KEYRING GPG keyring to authenticate the repository against. |
| 25 |
@@ -747,6 +748,19 @@ Options : |
| 26 |
Path of the binfmt interpreter to copy to the rootfs |
| 27 |
-F | --flush-cache Flush the debian release cache |
| 28 |
|
| 29 |
+Archived releases: |
| 30 |
+ |
| 31 |
+ It is possible to create containers for some archived Debian releases. As of February 2024, |
| 32 |
+ stretch works and jessie will create a container but doesn't automatically obtain an IP address. |
| 33 |
+ |
| 34 |
+ wheezy and earlier releases do NOT work. |
| 35 |
+ |
| 36 |
+ You must manually specify the --mirror and --keyring options like so: |
| 37 |
+ |
| 38 |
+ lxc-create -t debian -n stretch -- -r stretch \ |
| 39 |
+ --mirror=http://archive.debian.org/debian \ |
| 40 |
+ --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg |
| 41 |
+ |
| 42 |
Environment variables: |
| 43 |
|
| 44 |
MIRROR The Debian package mirror to use. See also the --mirror switch above. |