On Wednesday 18 December 2002 06:12 am, Giorgos Keramidas wrote: > On 2002-12-18 09:35, Thomas Spreng <[EMAIL PROTECTED]> wrote: > > On Tue, Dec 17, 2002 at 05:50:07PM -0800, Kent Stewart wrote: > > > On Tuesday 17 December 2002 07:51 am, Matthew Seaman wrote: > > > > make installworld DESTDIR=/mnt > > > > > > > > installs everything relative to /mnt instead of / --- see > > > > jail(8) for some examples of doing just that. > > > > > > What I do is create /usr/src and /usr/obj as their own 1.5 GB > > > partitions. That is 4-5x larger than I need. Then, I can > > > NFS_mount them on any system as /usr/src and /usr/obj. You don't > > > have to play games with names, DESTDIR, or etc. > > > > why would you want /usr/obj nfs mounted as well? > > Because "make installworld" will find any compiled programs under > that path, and copy them to their destination. /usr/src doesn't > contain executables or libraries[1]. The sources from /usr/src are > compiled to executables and saved under /usr/obj.
This also works for the kernel. I name them for the short name used in /etc/hosts and I can "buildkernel KERNCONF=CORAL" on RUBY and do the installkernel and installworld on CORAL. If you have all 3 config files on ruby, you can add "KERNCONF=RUBY GENERIC CORAL" to ruby's /etc/make.conf, all 3 will be built on ruby. Since RUBY is 1st, a "make kernel" will build all 3 but install RUBY. > > If you don't have machines of completely different architectures, you > can buildworld once, then mount /usr/obj and /usr/src as many times > as you want and install the same userland/kernel to a lot of > machines. I have modified a computer and mismounted 2 IDE drives when I was reassemblying it. There were links that were apparently broken. I swapped them back but still couldn't do a builds after that. So, I just mounted the the 2 file systems from a running system and did the installs. I could do builds once more. I think I needed 15-20 minutes from the time I figured out what was wrong and had done the buildkernel for the sick computer to having a consistant running system. The installworld took a wee bit longer than the 4 minutes it usually takes but it worked. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message