Put version info into /etc/os-release

We will use these data for showing meaningful and (mostly) accurate
version information via NETCONF, eventually.

I a;sp want the version info to be visible in actual binaries as well,
so let's instruct Buildroot to keep .git around. That is not as simple
as, e.g.:

 CLA_SYSREPO_OVERRIDE_SRCDIR_RSYNC_EXCLUSIONS = --include .git

...because in the CI setup, these directories are already git submodules
of something, and therefore their .git uses a relative path, and one
cannot easily copy it around. Instead, query the actual original path
and put the result into a new .gitdir file. That should work on both the
CI system and a random developer's setup which might not be using
submodules for projects they are working on.

Change-Id: I4760d0ecaa23a1ea5cf591a6cf76bc76d5139b9b
diff --git a/configs/czechlight_clearfog_defconfig b/configs/czechlight_clearfog_defconfig
index 56741f3..9c24c20 100644
--- a/configs/czechlight_clearfog_defconfig
+++ b/configs/czechlight_clearfog_defconfig
@@ -20,7 +20,7 @@
 # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
 BR2_ROOTFS_USERS_TABLES="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/users"
 BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/overlay/ $(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/clearfog/overlay/"
-BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/clearfog/copy-boot-scr.sh"
+BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/clearfog/copy-boot-scr.sh $(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/common/os-release.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh ${BR2_EXTERNAL_CZECHLIGHT_PATH}/board/czechlight/clearfog/usb-flash-genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BR2_EXTERNAL_CZECHLIGHT_PATH)/board/czechlight/clearfog/genimage.cfg"
 BR2_LINUX_KERNEL=y