czechlight-cfg-fs: add YANG install script
Let's move cla-sysrepo's install-yang shell script to this package.
Normally, all the packages would have installed these YANGs by
themselves, but because there's no shared state in rootfs, only
in /cfg, so that's where all these modifications belong
Change-Id: Ia5f4ade46098d66a92d940366659e44f9ea74456
diff --git a/package/czechlight-cfg-fs/Config.in b/package/czechlight-cfg-fs/Config.in
index e47d42f..40e6409 100644
--- a/package/czechlight-cfg-fs/Config.in
+++ b/package/czechlight-cfg-fs/Config.in
@@ -1,11 +1,14 @@
config BR2_PACKAGE_CZECHLIGHT_CFG_FS
- bool "Prepare persistent /cfg partition and /etc overlay"
+ bool "Prepare persistent /cfg partition and /etc overlay. Install required YANG models."
depends on BR2_INIT_SYSTEMD
+ depends on BR2_PACKAGE_NETOPEER2
help
This is required for RAUC to work properly. It creates a blank FS
image, configures systemd to mount it, and ensures that its contents
get restored to /etc at boot. The /etc is set up as a RW overlay on
top of a read-only rootfs.
+ This takes care of installing YANG files used by czechlight system
+ daemons into sysrepo.
if BR2_PACKAGE_CZECHLIGHT_CFG_FS