Merge "Support no_check_certificate=True subcloud install option"
This commit is contained in:
commit
c26aacc831
|
@ -1523,6 +1523,13 @@ if [ "${controller}" = true ] ; then
|
|||
ilog "Using ostree remote: ${instbr} ${insturl}"
|
||||
ostree --repo=${repo} remote add ${instbr} ${insturl}
|
||||
fi
|
||||
# Check for noverifyssl in boot arguments.
|
||||
# Note: even if noverifyssl is not set, we still don't have proper support
|
||||
# for SSL certificates (which would require configuring cert paths here).
|
||||
if grep -q noverifyssl /proc/cmdline 2>/dev/null; then
|
||||
ilog "Configuring ostree for unverified SSL"
|
||||
ostree config --repo=${repo} set "remote \"${instbr}\"".tls-permissive true
|
||||
fi
|
||||
|
||||
ilog "ostree --repo=${repo} pull --depth=-1 --mirror ${instbr}:${instbr}"
|
||||
ostree --repo=${repo} pull --depth=-1 --mirror ${instbr}:${instbr}
|
||||
|
|
Loading…
Reference in New Issue