diff options
| author | Martin Schwenke <martin@meltin.net> | 2012-06-01 12:51:02 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2012-06-01 12:51:02 +1000 |
| commit | ce6f1237c7fda39d303cf8b51138b24e8fe4fa00 (patch) | |
| tree | 680b04a8f59df975f21e349d9620004dd0f54c86 /base | |
| parent | 1bce6bc6b69e6e1eaa14f7b0b2e085967e904df2 (diff) | |
| download | autocluster-ce6f1237c7fda39d303cf8b51138b24e8fe4fa00.tar.gz autocluster-ce6f1237c7fda39d303cf8b51138b24e8fe4fa00.tar.xz autocluster-ce6f1237c7fda39d303cf8b51138b24e8fe4fa00.zip | |
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 <martin@meltin.net>
Diffstat (limited to 'base')
| -rwxr-xr-x | base/all/root/scripts/install_gpfs.sh | 16 | ||||
| -rwxr-xr-x | base/all/root/scripts/install_gpfs_nas.sh (renamed from base/all/root/scripts/gpfs-nas-postinstall.sh) | 17 | ||||
| -rwxr-xr-x | base/all/root/scripts/setup_build.sh | 17 |
3 files changed, 35 insertions, 15 deletions
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/gpfs-nas-postinstall.sh b/base/all/root/scripts/install_gpfs_nas.sh index 1784e9d..68cf0ab 100755 --- a/base/all/root/scripts/gpfs-nas-postinstall.sh +++ b/base/all/root/scripts/install_gpfs_nas.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/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 @@ -7,14 +7,7 @@ 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 +$(dirname $0)/install_gpfs.sh echo "Installing ctdb packages" yum -y install ctdb ctdb-debuginfo ctdb-devel ctdb-tests @@ -22,11 +15,5 @@ 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/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 |
