[98067] in RedHat Linux List
Re: RH5.2 Upgrade Problem
daemon@ATHENA.MIT.EDU (Jan Carlson)
Fri Nov 6 13:05:18 1998
Date: Fri, 06 Nov 1998 13:03:08 -0500
From: Jan Carlson <janc@iname.com>
To: dlw@trailingedge.com
CC: RedHat Mailing List <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
This is a multi-part message in MIME format.
--------------6AE4412AF44786802F5B1EC2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Certain files on the CD need certain permissions.
Each directory comes with a file called .listing that
tells you the permissions needed by everything in that
directory. So I ran a script to do what the .listing
files say! It's ugly but it worked.
cd <top directory containing files for the cd>
find . -type d -print | grep -v " " | while read ddd
do
listingfix $ddd
done
(listingfix is attached)
David Williams wrote:
> Ok, I've downloaded the 5.2 tree from a mirror and compared it with
> the one on ftp.redhat.com and fixed up any differences. Then I
> burned a CD and tried to upgrade my 5.1 install. Everything
> seemed to go fine up to the point it wanted to install the boot
> loader at which point it tells me it can't run "/bin/insmod" as the file
> doesn't exist. This leaves my system in an incomplete state now
> running the older kernel without any modules. It gives me the
> same message if I try to create the boot disk during the install.
> Anyone know where I should look to correct this?
>
> Thanks.
>
> -----
> David Williams - Computer Packrat
> dlw@trailingedge.com
> http://www.trailingedge.com
--
Jan Carlson
janc@iname.com Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.1
--------------6AE4412AF44786802F5B1EC2
Content-Type: text/plain; charset=us-ascii;
name="listingfix"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="listingfix"
#!/bin/sh
echo $1 ============================
cd $1
cat .listing | grep '^[d-]' | cut -c 2-10,55- | sed 's/
//' | \
while read rwx file
do
mode=`echo $rwx | sed \
-e 's/---/0/g' \
-e 's/--x/1/g' \
-e 's/-w-/2/g' \
-e 's/-wx/3/g' \
-e 's/r-x/5/g' \
-e 's/r--/4/g' \
-e 's/rw-/6/g' \
-e 's/rwx/7/g'`
if [ `echo $mode | wc -c` -eq 4 ]
then
# echo /bin/chmod $rwx $mode $file
/bin/chmod $mode $file
else
NO $rwx $mode $file
sleep 5
fi
done
--------------6AE4412AF44786802F5B1EC2--
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.