From ce6f1237c7fda39d303cf8b51138b24e8fe4fa00 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 1 Jun 2012 12:51:02 +1000 Subject: Rename gpfs-nas-postinstall.sh to install_gpfs_nas.sh and factor out GPFS fu The script name should say what it does, not what it might be used for... Also add setup_build.sh. Signed-off-by: Martin Schwenke --- base/all/root/scripts/gpfs-nas-postinstall.sh | 32 --------------------------- base/all/root/scripts/install_gpfs.sh | 16 ++++++++++++++ base/all/root/scripts/install_gpfs_nas.sh | 19 ++++++++++++++++ base/all/root/scripts/setup_build.sh | 17 ++++++++++++++ 4 files changed, 52 insertions(+), 32 deletions(-) delete mode 100755 base/all/root/scripts/gpfs-nas-postinstall.sh create mode 100755 base/all/root/scripts/install_gpfs.sh create mode 100755 base/all/root/scripts/install_gpfs_nas.sh create mode 100755 base/all/root/scripts/setup_build.sh (limited to 'base') diff --git a/base/all/root/scripts/gpfs-nas-postinstall.sh b/base/all/root/scripts/gpfs-nas-postinstall.sh deleted file mode 100755 index 1784e9d..0000000 --- a/base/all/root/scripts/gpfs-nas-postinstall.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# Make this explicit so we only get RHEL updates to make things nice -# and clear. This duplicates what happens in basic-postinstall.sh but -# we may have just rewound the cluster, so we might be running this on -# the node install of from kickstart. -echo "Updating from YUM repositories" -yum -y update - -# we have to force the base GPFS package first, due to the way gpfs updates work -echo "Installing GPFS base" -yum -y install gpfs.base-@@GPFS_BASE_VERSION@@.@@RHEL_ARCH@@ - -# then update it - -echo "Updating GPFS base" -yum -y update - -echo "Installing ctdb packages" -yum -y install ctdb ctdb-debuginfo ctdb-devel ctdb-tests - -echo "Installing samba packages" -yum -y install samba samba-debuginfo samba-client samba-doc - -echo "Installing remaining GPFS packages" -yum -y install gpfs.docs gpfs.gpl gpfs.msg.en_US - -echo "Rebuilding the GPFS modules" -(cd /usr/lpp/mmfs/src && make Autoconfig World InstallImages) - -echo "Installing rssh" -yum -y install rssh diff --git a/base/all/root/scripts/install_gpfs.sh b/base/all/root/scripts/install_gpfs.sh new file mode 100755 index 0000000..9eda202 --- /dev/null +++ b/base/all/root/scripts/install_gpfs.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# we have to force the base GPFS package first, due to the way gpfs updates work +echo "Installing GPFS base" +yum -y install gpfs.base-@@GPFS_BASE_VERSION@@.@@RHEL_ARCH@@ + +# then update it + +echo "Updating GPFS base" +yum -y update + +echo "Installing remaining GPFS packages" +yum -y install gpfs.docs gpfs.gpl gpfs.msg.en_US + +echo "Rebuilding the GPFS modules" +(cd /usr/lpp/mmfs/src && make Autoconfig World InstallImages) diff --git a/base/all/root/scripts/install_gpfs_nas.sh b/base/all/root/scripts/install_gpfs_nas.sh new file mode 100755 index 0000000..68cf0ab --- /dev/null +++ b/base/all/root/scripts/install_gpfs_nas.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# Make this explicit so we only get RHEL updates to make things nice +# and clear. This duplicates what happens in basic-postinstall.sh but +# we may have just rewound the cluster, so we might be running this on +# the node install of from kickstart. +echo "Updating from YUM repositories" +yum -y update + +$(dirname $0)/install_gpfs.sh + +echo "Installing ctdb packages" +yum -y install ctdb ctdb-debuginfo ctdb-devel ctdb-tests + +echo "Installing samba packages" +yum -y install samba samba-debuginfo samba-client samba-doc + +echo "Installing rssh" +yum -y install rssh diff --git a/base/all/root/scripts/setup_build.sh b/base/all/root/scripts/setup_build.sh new file mode 100755 index 0000000..2acccfa --- /dev/null +++ b/base/all/root/scripts/setup_build.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# +# Setup build node +# + +$(dirname $0)/install_gpfs.sh + +# Setup RPM development +echo "Installing RPM developing and setting up rpm build" +yum -y install rpmdevtools +rpmdev-setuptree + +# Packages required for samba development +echo "Installing Samba build dependencies" +yum -y install readline-devel libacl-devel \ + libxslt docbook-utils docbook-style-xsl -- cgit