From 709ace4c927c7ff08ebf81b1cf6386eb28c107ae Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Apr 2020 13:30:47 -0400 Subject: [PATCH] Fix CA bundle in install Once transitioning to install, the CA bundle was lost, because the symlink lead out of sysroot. Fix by prepending sysroot if symlink --- misc/confluent-prepivot.sh.rh8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/confluent-prepivot.sh.rh8 b/misc/confluent-prepivot.sh.rh8 index 5cdefe25..3cf93cc6 100644 --- a/misc/confluent-prepivot.sh.rh8 +++ b/misc/confluent-prepivot.sh.rh8 @@ -1,2 +1,7 @@ #!/bin/bash -cat /etc/pki/tls/certs/ca-bundle.crt > /sysroot/etc/pki/tls/certs/ca-bundle.crt +BUNDLENAME=/sysroot/etc/pki/tls/certs/ca-bundle.crt +while [ -h $BUNDLENAME ]; do + BUNDLENAME=/sysroot/$(readlink $BUNDLENAME) +done + +cat /etc/pki/tls/certs/ca-bundle.crt > $BUNDLENAME