From 5eabf98c5e2bcb6a2a1ad5da385253acca03cdcd Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 5 Aug 2009 04:28:23 +0200 Subject: [PATCH] Provide information about grml-live version and Debian/suite through /etc/grml_live_version --- debian/changelog | 4 +++- etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup | 4 ++-- grml-live | 9 ++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index dd7227d..70c7646 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,8 +13,10 @@ grml-live (0.9.21) UNRELEASED; urgency=low * grml_cleanup_chroot: drop the /usr/include/linux checks. * 90-update-alternatives: use wm-ng as default x-window-manager. [Closes: issue716] + * Provide information about grml-live version and Debian/suite + through /etc/grml_live_version in the generated ISO. [Closes: issue637] - -- Michael Prokop Wed, 05 Aug 2009 04:19:14 +0200 + -- Michael Prokop Wed, 05 Aug 2009 04:27:20 +0200 grml-live (0.9.20) unstable; urgency=low diff --git a/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup b/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup index 9cfbd29..03c153b 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup @@ -33,8 +33,8 @@ cat > $target/etc/apt/sources.list << EOF EOF # retrieve build information ($SUITE): -if [ -r $target/etc/grml/grml-live-build-info ] ; then - . $target/etc/grml/grml-live-build-info +if [ -r $target/etc/grml_live_version ] ; then + . $target/etc/grml_live_version fi # if we stil do not know which Debian suite we are building assume "stable" diff --git a/grml-live b/grml-live index f100066..dc36d24 100755 --- a/grml-live +++ b/grml-live @@ -447,11 +447,10 @@ if [ -n "$BUILD_DIRTY" ]; then else [ -n "$CHROOT_OUTPUT" ] || CHROOT_OUTPUT="$OUTPUT/grml_chroot" - # inform fai about the suite we build - if [ -n "$SUITE" ] ; then - [ -d "$CHROOT_OUTPUT/etc/grml" ] || mkdir -p "$CHROOT_OUTPUT/etc/grml" - echo "SUITE=$SUITE" > "$CHROOT_OUTPUT/etc/grml/grml-live-build-info" - fi + # provide inform fai about the ISO we build + echo '# This file has been generated by grml-live.' > "$CHROOT_OUTPUT/etc/grml_live_version" + [ -n "$GRML_LIVE_VERSION" ] && echo "GRML_LIVE_VERSION=$GRML_LIVE_VERSION" >> "$CHROOT_OUTPUT/etc/grml_live_version" + [ -n "$SUITE" ] && echo "SUITE=$SUITE" >> "$CHROOT_OUTPUT/etc/grml_live_version" if [ -n "$UPDATE" -o -n "$BUILD_ONLY" ] ; then FAI_ACTION=softupdate -- 2.1.4