Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 04:59:32 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        freebsd-sparc64@freebsd.org
Subject:   Newer installworld_nk script (64-bit time_t)
Message-ID:  <p06020492bc37ea2f63e9@[128.113.24.47]>
In-Reply-To: <p06020488bc34f63a34f9@[128.113.24.47]>
References:  <200312212239.38557.craig@xfoil.gank.org> <p0602040fbc0cf0dddf9e@[128.113.24.47]> <p06020426bc1fe1f269d8@[128.113.24.47]> <20040106095942.O66232@beagle.fokus.fraunhofer.de> <20040106182824.GA42422@dragon.nuxi.com> <p0602042abc2138069732@[128.113.24.47]> <20040107174346.GA50142@dragon.nuxi.com> <p06020452bc2549a6ba9e@[128.113.24.47]> <20040111093043.GA11120@dragon.nuxi.com> <p06020462bc280acc00da@[128.113.24.47]> <p06020488bc34f63a34f9@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:42 PM -0500 1/21/04, Garance A Drosihn wrote:
>At 3:41 AM -0500 1/12/04, I (Garance) wrote:
>>
>>http://people.freebsd.org/~gad/time-64/installworld_nk
>>
>>Is the magic script.  Probably a little more elaborate than it
>>needs to be, but I had plenty of extra time while waiting for
>>'make buildworld' to finish...
>
>Fwiw, I just made to minor changes to this script, to make it a
>little more user-friendly.  The option for "yes, go ahead and
>do the installworld" actually works now...

Well, thanks to a combination of events, I ended up having to a
few extra hours to work on this, so I've gone through another
few rounds of improvements to the script.

http://people.freebsd.org/~gad/time-64/installworld_nk

Is the newest version of the script.  It has not been used
on an "upgrade sparc64 from 32BTT to 64BTT" run, but it has
been extensively tested with a few dozen installworlds on
my dual-athlon system (which is just a *little* faster than
my Ultra-10).

By being more and more restrictive with my PATH settings, I
tracked down a few more files that are prudent to copy, and I
realized that some steps should be done in a different order.
I also added a -S option, which causes the script to use
symlinks to most executables it is pulling from /usr/obj,
instead of copying them all.  So, even though I'm bringing in
more files, the /tmp/install-nk* directory is now only 200K to
250K when -S is used.  I also added more tests and improved
some of the script-debugging features.  There is also a -M
option, which causes the installworld to be done with PATH
set to *only* the /tmp/install-nk* directory.

I also tested this version (on i386) by:
     boot into single user
     script /var/tmp/somefile
     make installworld         <- standard make target
     EOF
     script /var/tmp/otherfile
     ./installworld_nk         <- magic alternative
     EOF
repeating that several times with different options to the script.
I then did 'diff's on all the outputs, to make sure that they all
seemed to do exactly the same thing.  As far as those script
outputs are concerned, the same commands were executed with the
exact same outputs.

Older versions of the script are still available in that same
directory, but right now this is the most heavily-tested one
(except that it hasn't actually been used for a 32->64 upgrade).

I think it's an interesting exercise to try to make this script
as bullet-proof as possible.  I'm sure that it's adequate for
immediate need, but I'd like to see how far it could go.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06020492bc37ea2f63e9>