summaryrefslogtreecommitdiffstats
path: root/base/root/scripts
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-10-01 17:16:51 +1000
committerMartin Schwenke <martin@meltin.net>2009-10-01 17:16:51 +1000
commit734759caf0709b52e358dd61bcc4bfe4dc60907e (patch)
treedb566b62c995cababd0febba009040e7a0cc3ad8 /base/root/scripts
parent11927a064abbe61f6b4a59bc0f07d6b7f0fcccfd (diff)
Move list of extra SoFS packages to new config variable SOFS_EXTRA_PACKAGES.
Having this list of packages hardcoded in the postinstall script is a maintenance nightmare. This does the same thing using a variable, with the default value in releases/SoFS.common. Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts')
-rwxr-xr-xbase/root/scripts/SoFS-postinstall.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/base/root/scripts/SoFS-postinstall.sh b/base/root/scripts/SoFS-postinstall.sh
index b689b7a..c332d7a 100755
--- a/base/root/scripts/SoFS-postinstall.sh
+++ b/base/root/scripts/SoFS-postinstall.sh
@@ -61,12 +61,9 @@ service nfslock start
echo "Installing keyutils-libs-devel.i386"
yum -y install keyutils-libs-devel.i386
-# Install extra packages depending on the version.
-sofs_version=@@SOFS_VERSION@@
-case "$sofs_version" in
- 1.*)
- :
- ;;
- *)
- yum install -y ibmnas-cim-providers "ibmcim*" perfcol sdstat
-esac
+
+# Install extra packages...
+sofs_extra_packages="@@SOFS_EXTRA_PACKAGES@@"
+if [ -n "$sofs_extra_packages" ] ; then
+ yum install -y $sofs_extra_packages
+fi