Date: Wed, 26 Nov 2003 21:39:20 -0500 From: Garance A Drosihn <drosih@rpi.edu> To: current@FreeBSD.org Subject: Change install-order? (upgrade from static to dynamic root) Message-ID: <p06002016bbeb08a060b8@[128.113.24.47]>
next in thread | raw e-mail | index | archive | help
I just installed 5.1-release on a sparc64, and then cvsup'ed
to the latest snapshot of -current. Since that update is such
a large jump in time, I was going from a system which had no
/rescue or /libexec to one which builds everything dynamically.
This gets one into a mess in the middle of installworld, where
suddenly almost everything dies with messages like:
"ELF interpreter /libexec/ld-elf.so.1 not found"
I know others have run into this problem, but there seems to be
nothing in UPDATING to warn people about it. Or at least, I
didn't see anything in /usr/src/UPDATING under sparc64.
Instead of warning people, I was wondering if there would be
any downside to having installworld always install /rescue
first (since that should not depend on anything else), and
install /libexec before installing executables.
- - - -
I did recover from that mess by taking advantage of tips given
in previous threads on this situation. I used the rescue
binary in to give me a few key commands, doing something like:
cd /usr/obj/usr/src/rescue/rescue
./rescue mkdir /usr/tempbin
./rescue ln rescue /usr/tempbin/cp
./rescue ln rescue /usr/tempbin/cat
./rescue ln rescue /usr/tempbin/ldconfig
./rescue ln rescue /usr/tempbin/ln
...etc...
PATH=/usr/tempbin
cd /usr/obj/usr/src/libexec/rtld-elf
cp -p * /libexec
ldconfig -m /lib
cd /usr/obj/usr/src/usr.bin/xinstall
cp -p xinstall /usr/bin/install
I may have missed a few steps there, but I think that got me
far enough along that I could 'make install's in /usr/src/lib
and /usr/src/libexec. Once I was confident that I had enough
working parts installed, I went back and repeated the
'make installworld'. Seems to have worked out OK.
--
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?p06002016bbeb08a060b8>
