Skip to content

Commit 9c833dc

Browse files
nicofer00Nico Fernandez
andauthored
add Debian mirror component parameter (#12)
--------- Co-authored-by: Nico Fernandez <nicofernandez@dornerworks.com>
1 parent be635ab commit 9c833dc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

container/repositories/core/recipes/debian-bootstrap/recipe.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ priority = 10_000_000
44
[parameters]
55
suite = { default = "stable" }
66
snapshot = { default = "" }
7-
mirror = { default = "" }
7+
mirror = { default = "" }
8+
components = { default = "main" }

container/repositories/core/recipes/debian-bootstrap/steps/00-run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ if [ -n "${RECIPE_PARAM_SNAPSHOT}" ]; then
3232
OPTS+=("--aptopt=Apt::Key::gpgvcommand=/usr/libexec/mmdebstrap/gpgvnoexpkeysig")
3333
OPTS+=("--include=ca-certificates,mmdebstrap")
3434
elif [ -n "${RECIPE_PARAM_MIRROR}" ]; then
35-
TARGET_MIRROR="deb [trusted=yes] ${RECIPE_PARAM_MIRROR} ${RECIPE_PARAM_SUITE} main"
35+
TARGET_MIRROR="deb [trusted=yes] ${RECIPE_PARAM_MIRROR} ${RECIPE_PARAM_SUITE} ${RECIPE_PARAM_COMPONENTS}"
3636
fi
3737

3838
mmdebstrap \
3939
"${OPTS[@]}" \
4040
"${RECIPE_PARAM_SUITE}" \
4141
"${RUGIX_ROOT_DIR}" \
42-
${TARGET_MIRROR:+"$TARGET_MIRROR"}
42+
${TARGET_MIRROR:+"$TARGET_MIRROR"}

0 commit comments

Comments
 (0)