summaryrefslogtreecommitdiffstats
path: root/liveinst
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-05 10:21:39 -0400
committerChris Lumens <clumens@redhat.com>2009-05-05 10:56:43 -0400
commitae7e082b9ecb263fc5fe5544514e19433ff61d13 (patch)
treec213e487ff4966d30c9c67ce3ba1e5c6147c83b7 /liveinst
parentdf65775f86a0686a5422509f196a65fd6b26f743 (diff)
downloadanaconda-ae7e082b9ecb263fc5fe5544514e19433ff61d13.tar.gz
anaconda-ae7e082b9ecb263fc5fe5544514e19433ff61d13.tar.xz
anaconda-ae7e082b9ecb263fc5fe5544514e19433ff61d13.zip
Set ANACONDAVERSION on most livecd installs.
This should add the version number to exception reports for livecd installs launched by clicking the icon or menu option or whatever. It will not help the case where people run anaconda by hand from a command line.
Diffstat (limited to 'liveinst')
-rw-r--r--liveinst/liveinst.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/liveinst/liveinst.sh b/liveinst/liveinst.sh
index badb3f5aa..4f74d2e31 100644
--- a/liveinst/liveinst.sh
+++ b/liveinst/liveinst.sh
@@ -37,6 +37,7 @@ for i in raid0 raid1 raid5 raid6 raid456 raid10 dm-mod dm-zero dm-mirror dm-snap
export ANACONDA_PRODUCTNAME=$( cat /etc/system-release | cut -d ' ' -f 1 )
export ANACONDA_PRODUCTVERSION=$( cat /etc/system-release | sed -r -e 's/^.*([0-9]+) *\(.*$/\1/' )
export ANACONDA_BUGURL=${ANACONDA_BUGURL:="https://bugzilla.redhat.com/bugzilla/"}
+export ANACONDAVERSION=$(rpm -q --qf "%{VERSION}-%{RELEASE}" anaconda)
export PATH=/sbin:/usr/sbin:$PATH