Eclipse Kura™ is a versatile framework to supercharge your edge devices, streamlining the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud.
This PR modifies thecustomize-installation.sh script that is called only on generic profiles to apply the network interface names patch even on devices that have templates for snapshot_0.xml and iptables. This is to avoid applying a configuration with the wrong interface name when the standard interface enumeration changes.
Related Issue: N/A.
Description of the solution adopted: N/A.
Screenshots: N/A.
Manual Tests: To test the behavior, setup a Raspberry PI and:
Enable the consistent interface naming using raspi-config -> Advanced Options menu and reboot. eth0 will change to something else.
Install Kura.
Inspect the installation logs, without this PR files snapshot_0.xml and iptables are not patched. Those files still have eth0 as interface name since the template for the raspberry has been picked up.
Reboot, without this PR the device will be unreachable due to the interface naming mismatch.
By testing this PR, logs in /opt/eclipse/kura/log/kura_install* on a fresh installation should show that the patch has been applied to:
This PR modifies the
customize-installation.sh
script that is called only on generic profiles to apply the network interface names patch even on devices that have templates forsnapshot_0.xml
andiptables
. This is to avoid applying a configuration with the wrong interface name when the standard interface enumeration changes.Related Issue: N/A.
Description of the solution adopted: N/A.
Screenshots: N/A.
Manual Tests: To test the behavior, setup a Raspberry PI and:
raspi-config
->Advanced Options
menu and reboot.eth0
will change to something else.snapshot_0.xml
andiptables
are not patched. Those files still haveeth0
as interface name since the template for the raspberry has been picked up.By testing this PR, logs in
/opt/eclipse/kura/log/kura_install*
on a fresh installation should show that the patch has been applied to:/opt/eclipse/kura/user/snapshots/snapshot_0.xml
/opt/eclipse/kura/.data/snapshot_0.xml
/opt/eclipse/kura/.data/iptables
Any side note on the changes made: N/A.