[3602] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

final installer changes

daemon@ATHENA.MIT.EDU (Angie Kelic)
Sun Dec 2 01:00:08 2001

Message-Id: <200112020600.BAA01921@cutter-john.mit.edu>
To: linux-dev@MIT.EDU
Date: Sun, 02 Dec 2001 01:00:00 -0500
From: Angie Kelic <sly@MIT.EDU>

tested, seems to work and do everything we want
Installed machines have a correct release-rpms file
so that update_ws 9.0 just works (TM).

Test at will.

Note:  The line that has ATHENAVERSION= in it needs
to be changed by hand whenever the rpm list is updated.
The rest does what it needs to.

The comments should explain why various things were done.

--- /mit/sly/installclass.py.src        Fri Nov 30 18:32:16 2001
+++ installclass.py     Sat Dec  1 20:14:18 2001
@@ -220,7 +220,7 @@
        self.setPostScript('''
 #!/bin/sh
 
-ATHENAVERSION=8.4.0
+ATHENAVERSION=8.4.25
 ROOT=/
 
 # Get network address:
@@ -290,14 +290,20 @@
   fi
 fi
 
-# This is a kluge and requires knowing how rpmupdate parses the
-# release-rpms file.  It also assumes we are not doing any custom
-# installs, since it lists every installed rpm in release-rpms.
-# rpmupdate knows that any rpm listed in release-rpms was all
-# installed by the release, and if the release doesn't think the rpm
-# should be installed any more, rpmupdate will remove it.
-rpm -qa --queryformat '/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' | \
-       grep -v '^kernel-smp' > /var/athena/release-rpms
+#This copies the correct version of release-rpms out of afs using the
+#web (we need to export the variable before python can use it)
+
+ATHENA_URL="http://web.mit.edu/afs/athena/system/rhlinux/control/list-$ATHENAVERSION"
+export ATHENA_URL
+
+# Named is necessary for python to be able to do a lookup of web.
+# Syslog is necessary to keep named from sending lots of stuff to console
+# and making a disaster of the text install screens.
+
+/sbin/syslogd
+
+/etc/athena/named
+
+python -c "import os, urllib; open('/var/athena/release-rpms', 'w').write(urllib.urlopen(os.environ['ATHENA_URL']).read())"
 
 cp /tmp/install.log /var/athena/install.log
 chmod 600 /var/athena/install.log




home help back first fref pref prev next nref lref last post