Record the version of Genkernel used to build a given initramfs.
authorRobin H. Johnson <robbat2@gentoo.org>
Sat, 13 Oct 2012 18:33:23 +0000 (18:33 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Sat, 13 Oct 2012 18:33:23 +0000 (18:33 +0000)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
gen_initramfs.sh

index 29fa65246de39fd26275b7ecd60f28724b24face..f986ed4f202b5a5e7b50349d1f015b28f48d87c1 100755 (executable)
@@ -88,6 +88,7 @@ append_base_layout() {
        mknod -m 600 ttyS0 c 4 64
 
        date -u '+%Y%m%d-%H%M%S' > ${TEMP}/initramfs-base-temp/etc/build_date
+       echo "Genkernel $GK_V" > ${TEMP}/initramfs-base-temp/etc/build_id
 
        cd "${TEMP}/initramfs-base-temp/"
        log_future_cpio_content