[PATCH 3/4] Add support to specify the keyring to be used while bootstraping
From: Otavio Salvador <otavio at ossystems.com.br>
A new configuration variable 'LIVE_BOOTSTRAP_KEYRING' has been add to
allow bootstraping to use a different keyring to validate the releases
files.
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
helpers/lh_bootstrap_cdebootstrap | 5 +++++
helpers/lh_config | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/helpers/lh_bootstrap_cdebootstrap b/helpers/lh_bootstrap_cdebootstrap
index 4cd4f03..f0161d5 100755
--- a/helpers/lh_bootstrap_cdebootstrap
+++ b/helpers/lh_bootstrap_cdebootstrap
@@ -63,6 +63,11 @@ then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --suite-config=${LIVE_BOOTSTRAP_CONFIG}"
fi
+if [ -n "${LIVE_BOOTSTRAP_KEYRING}" ]
+then
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --keyring=${LIVE_BOOTSTRAP_KEYRING}"
+fi
+
if [ "${LIVE_PACKAGES_LISTS}" != "minimal" ] && [ "${LIVE_PACKAGES_LISTS}" != "mini" ]
then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
diff --git a/helpers/lh_config b/helpers/lh_config
index 7985f77..bef0be7 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -187,6 +187,10 @@ LIVE_DISTRIBUTION="${LIVE_DISTRIBUTION}"
# (Default: empty)
LIVE_BOOTSTRAP_CONFIG="${LIVE_BOOTSTRAP_CONFIG}"
+# \$LIVE_BOOTSTRAP_KEYRING: set distribution keyring
+# (Default: empty)
+LIVE_BOOTSTRAP_KEYRING="${LIVE_BOOTSTRAP_KEYRING}"
+
# \$LIVE_BOOTSTRAP_FLAVOUR: select flavour to use
# (Default: ${LIVE_BOOTSTRAP_FLAVOUR})
LIVE_BOOTSTRAP_FLAVOUR="${LIVE_BOOTSTRAP_FLAVOUR}"
Reply to: