mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-04 06:43:00 +02:00
Currently, it's not possible to run infix tests from an external project (based on infix) due to an incompatibility between the configuration used in the tests (the default configuration within the image generated by the external project) and the infix base configuration expected by the test cases. Therefore, a simple configuration specifically for testing purposes needs to be generated within an image. This test-config should always be generated but only loaded when the device is in test mode. Part of issue #568
49 lines
1.8 KiB
Plaintext
49 lines
1.8 KiB
Plaintext
# Defaults for /usr/libexec/confd/bootstrap -*-conf-*-
|
|
# Copy and mofify this file to your br2-external overlay
|
|
|
|
PATH=/usr/libexec/confd/:$PATH
|
|
INIT_DATA=/etc/sysrepo/factory-default.json
|
|
SEARCH=/usr/share/yang/modules/confd:/usr/share/yang/modules/libnetconf2:/usr/share/yang/modules/libyang:/usr/share/yang/modules/netopeer2:/usr/share/yang/modules/sysrepo
|
|
|
|
CFG_PATH_=/cfg
|
|
SYS_PATH_=/etc
|
|
RUN_PATH_=/run/confd
|
|
|
|
# Static defaults, base Infix and any br2-external derivative.
|
|
FACTORY_DEFAULTS_D=/usr/share/confd/factory.d
|
|
FAILURE_DEFAULTS_D=/usr/share/confd/failure.d
|
|
TEST_DEFAULTS_D=/usr/share/confd/test.d
|
|
|
|
# Generated config snippets, e.g., hostname, password, and interfaces.
|
|
FACTORY_D=$RUN_PATH_/factory.d
|
|
FAILURE_D=$RUN_PATH_/failure.d
|
|
TEST_D=$RUN_PATH_/test.d
|
|
|
|
# The default config snippets and generated snippets are collated into
|
|
# RAM-only name-config.gen , which are candidates for name-config.cfg
|
|
FACTORY_GEN=$RUN_PATH_/factory-config.gen
|
|
FAILURE_GEN=$RUN_PATH_/failure-config.gen
|
|
TEST_GEN=$RUN_PATH_/test-config.gen
|
|
|
|
# The resulting .cfg files can be peristent (factory-config) or not.
|
|
FACTORY_CFG=$SYS_PATH_/factory-config.cfg
|
|
FAILURE_CFG=$SYS_PATH_/failure-config.cfg
|
|
TEST_CFG=$SYS_PATH_/test-config.cfg
|
|
STARTUP_CFG=$CFG_PATH_/startup-config.cfg
|
|
|
|
# Uncomment this line in to create a bridge (br0) with all (classified
|
|
# 'group port') interfaces as bridge ports. The br0 interface will get
|
|
# an IPv6 EUI64 SLAAC address as well as an IPv4 ZeroConf address, and a
|
|
# DHCPv4 address if the device is attached to a LAN with a DHCP server.
|
|
#GEN_IFACE_OPTS="-b br0 -4 -d"
|
|
|
|
# Default hostname in Fail Secure mode, plus last three octets in the base
|
|
# MAC address, e.g. "failed-c0-ff-ee".
|
|
FAIL_HOSTNAME="failed"
|
|
TEST_HOSTNAME="test"
|
|
|
|
# Optional overrides by br2-external
|
|
if [ -f /etc/confdrc.local ]; then
|
|
. /etc/confdrc.local
|
|
fi
|