Merge "Add DIB_DEBOOTSTRAP_EXTRA_ARGS environment variable"
This commit is contained in:
commit
d8b156dedf
@ -19,3 +19,8 @@ and Fedora.
|
|||||||
The `DIB_OFFLINE` or more specific `DIB_DEBIAN_USE_DEBOOTSTRAP_CACHE`
|
The `DIB_OFFLINE` or more specific `DIB_DEBIAN_USE_DEBOOTSTRAP_CACHE`
|
||||||
variables can be set to prefer the use of a pre-cached root filesystem
|
variables can be set to prefer the use of a pre-cached root filesystem
|
||||||
tarball.
|
tarball.
|
||||||
|
|
||||||
|
The `DIB_DEBOOTSTRAP_EXTRA_ARGS` environment variable may be used to
|
||||||
|
pass extra arguments to the debootstrap command used to create the
|
||||||
|
base filesystem image. If --keyring is is used in `DIB_DEBOOTSTRAP_EXTRA_ARGS`,
|
||||||
|
it will override `DIB_DEBIAN_KEYRING` if that is used as well.
|
||||||
|
@ -22,6 +22,7 @@ fi
|
|||||||
DISTRO_NAME=${DISTRO_NAME:-debian}
|
DISTRO_NAME=${DISTRO_NAME:-debian}
|
||||||
DIB_RELEASE=${DIB_RELEASE:-unstable}
|
DIB_RELEASE=${DIB_RELEASE:-unstable}
|
||||||
DIB_DEBIAN_ALT_INIT_PACKAGE=${DIB_DEBIAN_ALT_INIT_PACKAGE:-sysvinit}
|
DIB_DEBIAN_ALT_INIT_PACKAGE=${DIB_DEBIAN_ALT_INIT_PACKAGE:-sysvinit}
|
||||||
|
DIB_DEBOOTSTRAP_EXTRA_ARGS=${DIB_DEBOOTSTRAP_EXTRA_ARGS:-}
|
||||||
DEBOOTSTRAP_TARBALL=$DIB_IMAGE_CACHE/debootstrap-${DISTRO_NAME}-${DIB_DEBIAN_ALT_INIT_PACKAGE}-${DIB_RELEASE}-${ARCH}.tar.gz
|
DEBOOTSTRAP_TARBALL=$DIB_IMAGE_CACHE/debootstrap-${DISTRO_NAME}-${DIB_DEBIAN_ALT_INIT_PACKAGE}-${DIB_RELEASE}-${ARCH}.tar.gz
|
||||||
if [ -n "${DIB_DEBIAN_MIRROR:-}" ]; then
|
if [ -n "${DIB_DEBIAN_MIRROR:-}" ]; then
|
||||||
echo "Use of DIB_DEBIAN_MIRROR environment variable to configure mirror is deprecated."
|
echo "Use of DIB_DEBIAN_MIRROR environment variable to configure mirror is deprecated."
|
||||||
@ -48,6 +49,7 @@ else
|
|||||||
--arch=${ARCH} \
|
--arch=${ARCH} \
|
||||||
--include=${ADD_PACKAGES} \
|
--include=${ADD_PACKAGES} \
|
||||||
$KEYRING_OPT \
|
$KEYRING_OPT \
|
||||||
|
$DIB_DEBOOTSTRAP_EXTRA_ARGS \
|
||||||
$DIB_RELEASE \
|
$DIB_RELEASE \
|
||||||
$TARGET_ROOT \
|
$TARGET_ROOT \
|
||||||
$DIB_DISTRIBUTION_MIRROR \
|
$DIB_DISTRIBUTION_MIRROR \
|
||||||
|
Loading…
Reference in New Issue
Block a user