diff --git a/dib/ironic-python-agent-tls/pre-finalize.d/10-configure-ipa-tls b/dib/ironic-python-agent-tls/pre-finalize.d/10-configure-ipa-tls index 005a3bb..aef36d5 100755 --- a/dib/ironic-python-agent-tls/pre-finalize.d/10-configure-ipa-tls +++ b/dib/ironic-python-agent-tls/pre-finalize.d/10-configure-ipa-tls @@ -1,7 +1,12 @@ #!/bin/bash -# /etc/ironic-python-agent.d/ is created by the ironic-python-agent-ramdisk element -KEYDIR=$TMP_BUILD_DIR/mnt/etc/ironic-python-agent.d +# This is the path inside the ramdisk, referenced in config files +INSIDEDIR=/etc/ironic-python-agent.d/ + +# but when copying files from outside the ramdisk, we have to use the mounted +# DIB filesystems +KEYDIR=$TMP_BUILD_DIR/mnt/$INSIDEDIR + CONFFILE=$KEYDIR/10-configure-tls.conf CACONFFILE=$KEYDIR/11-configure-client-cert-ca.conf @@ -18,8 +23,8 @@ cat <