[3589] in SIPB_Linux_Development
Re: installer mods
daemon@ATHENA.MIT.EDU (Angie Kelic)
Fri Nov 30 15:23:56 2001
Message-Id: <200111302023.PAA01536@prowler.mit.edu>
To: Garry Zacheiss <zacheiss@MIT.EDU>
cc: Angie Kelic <sly@MIT.EDU>, linux-dev@MIT.EDU
In-Reply-To: Your message of "Fri, 30 Nov 2001 15:18:05 EST."
<200111302018.PAA21137@riff-raff.mit.edu>
Date: Fri, 30 Nov 2001 15:23:51 -0500
From: Angie Kelic <sly@MIT.EDU>
Sure no problem, the comment lines up there were for my
reference only since the file was ridiculously hard to find
and took a lot of searching. If you drop this in place can you
also please put /afs/athena/system/rhlinux/control/list-8.4.25
in /afs/sipb/system/rhlinux/redhat-6.2/RedHat/ ? (since I believe
that's the root directory for an afs install).
diff -u
--- installclass.py Fri Nov 30 15:20:54 2001
+++ /afs/sipb/system/rhlinux/redhat-6.2/RedHat/instimage/usr/lib/anaconda/installclass.py Tue Jun 19 09:45:28 2001
@@ -220,7 +220,7 @@
self.setPostScript('''
#!/bin/sh
-ATHENAVERSION=8.4.25
+ATHENAVERSION=8.4.0
ROOT=/
# Get network address:
@@ -290,10 +290,14 @@
fi
fi
-#Attempt at just copying the control list over, not sure if things are
-#still mounted at this point but we'll see.
-
-cp /mnt/source/list-$ATHENAVERSION /var/athena/release-rpms
+# 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
cp /tmp/install.log /var/athena/install.log
chmod 600 /var/athena/install.log
In message <200111302018.PAA21137@riff-raff.mit.edu>,
Garry Zacheiss writes:
>>> I have picked up installclass.py and made a couple mods
>
> Two comments:
>
>+# This file comes from:
>+# /afs/sipb/system/rhlinux/redhat-6.2/RedHat/instimage/usr/lib/anaconda
>
> This file is kept under RCS; use $Header$ if you want the
>pathname, not a comment.
>
>-rpm -qa --queryformat '/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' | \
>- grep -v '^kernel-smp' > /var/athena/release-rpms
>+#rpm -qa --queryformat '/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' | \
>+# grep -v '^kernel-smp' > /var/athena/release-rpms
>+
>
> Similarly, we're using version control; these lines should be
>removed if they're not needed, not just commented out.
>
> I don't know offhand if /mnt/source is still mounted at the time
>this is run. If you fix the two stylistic nits I've noted, I'd be happy
>to apply this patch to the afs copy of the installer for you to test,
>though.
>
>Garry