From eeb558968d02b8b46b73d0b01613271fa77a76bf Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 5 Dec 2011 15:16:43 -0500 Subject: mkinitcpio: add VERSION stamp to image This is mostly a debugging aid. lsinitcpio will be taught to read this. Signed-off-by: Dave Reisner --- mkinitcpio | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mkinitcpio b/mkinitcpio index ec54408..4411ff3 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -10,6 +10,8 @@ # in case of embedded spaces, quote all path names and string comparisons # +declare -r version=%VERSION% + shopt -s extglob # Settings @@ -35,7 +37,7 @@ unset GREP_OPTIONS CDPATH usage() { cat < "$BUILDROOT/VERSION" + pushd "$BUILDROOT" >/dev/null find . -print0 | bsdcpio $( (( QUIET )) && echo '--quiet' ) -0oH newc | -- cgit v1.2.3-24-g4f1b