Add an all-in-one script for container provisioning
Change-Id: Iaa3e8d8ceb539fa24379c90496b35706227a1f33
diff --git a/board/czechlight_i686_container/overlay/root/doit.sh b/board/czechlight_i686_container/overlay/root/doit.sh
new file mode 100755
index 0000000..3a1afb4
--- /dev/null
+++ b/board/czechlight_i686_container/overlay/root/doit.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -ex
+/etc/yang-setup/01-*/install-yang.sh
+/etc/yang-setup/02-*/install-yang.sh
+/etc/yang-setup/03-*/install-yang.sh
+sysrepoctl --install --yang /usr/share/cla-sysrepo/yang/dummy-amp.yang
+systemctl start sysrepod
+systemctl start sysrepo-plugind
+netopeer2-server -v2
+cla-sysrepod --module dummy-amp --toplevel amplifier --sr-bridge-log-level 5 --properties-log-level 5 --static-properties /usr/share/cla-sysrepo/static-data/dummy-amp.static.data
diff --git a/configs/czechlight_i686_container_defconfig b/configs/czechlight_i686_container_defconfig
index b241923..e78ee79 100644
--- a/configs/czechlight_i686_container_defconfig
+++ b/configs/czechlight_i686_container_defconfig
@@ -29,3 +29,4 @@
# BR2_PACKAGE_VIM_RUNTIME is not set
BR2_TARGET_ROOTFS_TAR_XZ=y
CZECHLIGHT_NETCONF=y
+BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight_i686_container/overlay/"