diff options
| author | Martin Schwenke <martin@meltin.net> | 2009-04-03 15:26:39 +1100 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2009-04-03 15:26:39 +1100 |
| commit | 7eeb1aae640d0caad58f35352d452910f545174b (patch) | |
| tree | 412ce074dc0cb639ca942e29b08b77653ede4ed4 /base/root/scripts | |
| parent | dfc73d87b4287647d8c09fb8e9d87cbb7f337fdb (diff) | |
Rework some of the postinstall logic to make it easier to setup and
manage 2 level clusters, where each node's disk image has its own base
file. Such as cluster can be reset by simply recreating each node's
disk image. The main issue is that nbd can be unreliable and we try
to avoid using it from cron. Details:
* Rename force-net.sh to basic-postinstall.sh, and move repository
setup and initial yum update here from postinstall.sh.
* Rename postinstall.sh to SoFS-postinstall.sh, since it is now
SoFS-specific.
* The default value for POSTINSTALL_TEMPLATE is now "" - the SOFS
release files set it to SoFS-postinstall.sh. Set it back to "" in a
configuration file to build bare images that can be used as bases.
Other changes:
* Hack substitute_vars() so it uses /dev/null if passed a zero length
input file and so it echoes to stdout if no output file is given -
the latter allows inline use in command substitutions.
* The name of the install yum repository configuration file is now
taken from the basename of the YUM_TEMPLATE option.
* with_release() now prints a list of available releases if an
incorrect release is specified.
* Fix the -c option if a non-local file is given.
* Fix typo in SoFS.repo for SoFS-daily. It should now work.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts')
| -rwxr-xr-x | base/root/scripts/SoFS-postinstall.sh (renamed from base/root/scripts/postinstall.sh) | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/base/root/scripts/postinstall.sh b/base/root/scripts/SoFS-postinstall.sh index 51434a3..159154a 100755 --- a/base/root/scripts/postinstall.sh +++ b/base/root/scripts/SoFS-postinstall.sh @@ -1,12 +1,10 @@ #!/bin/bash -echo "setting up SoFS repos" - -cat << EOF > /etc/yum.repos.d/SOFS.repo -@@YUM_REPOS@@ -EOF - -echo "Updating from SoFS repositories" +# Make this explicit so we only get non-SoFS 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 echo "Trying install of scsi-target-utils" |
