From owner-freebsd-stable Fri May 26 12:19:25 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 5BB5937B54F for ; Fri, 26 May 2000 12:19:21 -0700 (PDT) (envelope-from Gerhard.Sittig@gmx.net) Received: (qmail 26864 invoked by uid 0); 26 May 2000 19:19:18 -0000 Received: from p3ee0b22e.dip.t-dialin.net (HELO speedy.gsinet) (62.224.178.46) by mail03.rzmi.gmx.net with SMTP; 26 May 2000 19:19:18 -0000 Received: (from sittig@localhost) by speedy.gsinet (8.8.8/8.8.8) id VAA25722 for freebsd-stable@FreeBSD.ORG; Fri, 26 May 2000 21:18:02 +0200 Date: Fri, 26 May 2000 21:18:02 +0200 From: Gerhard Sittig To: FreeBSD-Stable Subject: restricting installworld to certain distributions Message-ID: <20000526211802.X2305@speedy.gsinet> Mail-Followup-To: FreeBSD-Stable Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Organization: System Defenestrators Inc. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a questions about how to restrict installworld in a way, so that only the formerly installed distributions get copied. If this belongs to -questions, please tell me so (although I'm not subscribed there and don't like to post to channels I don't read personally). Here's what I did: I have a "big" machine with 2GB of disk space dedicated to FreeBSD, so I - installed 3.3-RELEASE there - cvsupped to 3.4-STABLE (if it matters: contacted cvsup.de.freebsd.org around 2000/05/23 20.00.00 UTC, and it took some two hours to transfer the 40 MB of update data which makes it somewhat hard to tell "it's from *this* point in time":) - ran "make buildworld" and "make installworld" - built a kernel with "config -r", "make depend", "make all", "make install" - updated the /etc files as outlined in the handbook ("make DESTDIR=... distrib-dirs distributions" in /sys/etc, diff and cp or patch, diff once more to make sure) This brought me to a machine running 3.4-S in regards of the kernel and userland. So I went to export /usr with -alldirs and to mount /usr/src and /usr/obj on the smaller machine. The (soon to be) router has a 120MB disk only. That's why I just installed the bin distribution from 3.3-R there (i.e. the "minimal" skeleton and I didn't mind, since all the doc and stuff is available on the other machine). This (and a little swap space of 16 MB) left me with some 25 MB of free space on the drive after installation. But when I mounted /usr/src and /usr/obj of the "server" on the router and "make installworld" there all the stuff got installed that I didn't put there in the first place. Suddenly I have manpages around and only a few KB of free space, causing a log message every once in a while. Watching the logs grow I don't even know for how long the machine will be able to work reliably. Editor sessions and manpage invocations already stop with "fs full" failures. I guess you already know what I want to ask: Is there a way to just update the installed software "no matter how voluminous the /usr/src tree is"? Is there a way for installworld to have a look at the installed distributions? Or is there a way of "binary updating" the smaller machine which I just didn't find out about up to now? BTW: Is it a feature or an error when "make installworld" won't run when /usr/src and /usr/obj are mounted (and exported) readonly? I caught it bailing out at libsdbm.a. Don't know who else could be involved since I had to remount it rw to make installworld pass this one step. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message