Revert "cccs: ccimx6ul: drop exception for `data` partition and client certificates"
If a target's DRM certificate is lost/erased before registering said target, the CCCS server will reject all connection attempts from the target. This can happen during development, as our installer scripts format the data partition where the certificate is stored by default (see commitc17af3fd47). Since the ccimx6ul uses sysvinit, we respawn the cccsd daemon via inittab if process ends unexpectedly (see commitb154154a7e). When the server always rejects connections due to a missing certificate, the cccsd daemon is constantly respawning and terminating prematurely. Said daemon is very CPU-intensive during initialization, so this causes the overall system's performance to be hindered. For now, to avoid this situation, use the CCCS endpoint that doesn't require a certificate in order to ensure stable connections even if the data partition gets formatted. https://onedigi.atlassian.net/browse/DEL-9892 https://onedigi.atlassian.net/browse/DEL-9894 This reverts commit4f8ed2d434. Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
f82ea20153
commit
619ca8b2a8
|
|
@ -87,6 +87,13 @@ do_install() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_install:append:ccimx6ul() {
|
||||||
|
if [ -z "${CCCS_CONF_PATH}" ]; then
|
||||||
|
sed -i "/url = \"edp12.devicecloud.com\"/c\url = \"remotemanager.digi.com\"" ${D}${sysconfdir}/cccs.conf
|
||||||
|
sed -i "/client_cert_path = \"\/mnt\/data\/drm_cert.pem\"/c\client_cert_path = \"\/etc\/ssl\/certs\/drm_cert.pem\"" ${D}${sysconfdir}/cccs.conf
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
pkg_postinst_ontarget:${PN}-daemon() {
|
pkg_postinst_ontarget:${PN}-daemon() {
|
||||||
# If dualboot is enabled, change the CCCSD download path and set on the fly to yes on the first boot
|
# If dualboot is enabled, change the CCCSD download path and set on the fly to yes on the first boot
|
||||||
if [ "$(fw_printenv -n dualboot 2>/dev/null)" = "yes" ]; then
|
if [ "$(fw_printenv -n dualboot 2>/dev/null)" = "yes" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue