From owner-freebsd-current Fri Feb 22 14:32:31 2002 Delivered-To: freebsd-current@freebsd.org Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by hub.freebsd.org (Postfix) with ESMTP id 2F9F937B400; Fri, 22 Feb 2002 14:32:24 -0800 (PST) Received: from user-1120bjg.dsl.mindspring.com ([66.32.46.112] helo=europa2) by blount.mail.mindspring.net with smtp (Exim 3.33 #1) id 16eOEp-0006FE-00; Fri, 22 Feb 2002 17:32:23 -0500 Message-Id: <3.0.6.32.20020222173051.00dabac0@imatowns.com> X-Sender: ggombert@imatowns.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 22 Feb 2002 17:30:51 -0500 To: obrien@freebsd.org, current@freebsd.org From: Glenn Gombert Subject: Re: changes to rc.diskless* In-Reply-To: <20020221200050.A78243@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The rc.diskless1/2 scripts *do* need some work, I finally got my diskless kernel booting (with help from Matt and Robert Watson) but it was a lot of 'trial and error' to do so"...but well worthwhile to boot diskless (test/experimental) kernels for developmental purposes ..... At 08:00 PM 2/21/2002 -0800, David O'Brien wrote: >The existing very bazaar and local policy in rc.diskless1 is Just Wrong; >and looks like no other Unix diskless configuration I've ever seen. I >plan on committing this patch to negate this. > >The use of an MFS /var should also be settable. Otherwise installing >ports(packages) is just a total PITA. > > >Index: rc.diskless1 >=================================================================== >RCS file: /home/ncvs/src/etc/rc.diskless1,v >retrieving revision 1.13 >diff -u -r1.13 rc.diskless1 >--- rc.diskless1 17 Jan 2002 00:10:28 -0000 1.13 >+++ rc.diskless1 22 Feb 2002 03:52:41 -0000 >@@ -92,13 +92,14 @@ > done > echo "Interface ${bootp_ifc} IP-Address ${bootp_ipa} Broadcast ${bootp_ipbca}" > >+if [ -d /conf/default/etc ]; then >+ mount_md 4096 /etc 0 >+ chkerr $? "MFS mount on /etc" >+ /bin/chmod 755 /etc > >-mount_md 4096 /etc 0 >-chkerr $? "MFS mount on /etc" >-/bin/chmod 755 /etc >- >-/bin/cp -Rp /conf/default/etc/* /etc >-chkerr $? "cp /conf/default/etc to /etc MFS" >+ /bin/cp -Rp /conf/default/etc/* /etc >+ chkerr $? "cp /conf/default/etc to /etc MFS" >+fi > > # Allow for override files to replace files in /etc. Use /conf/*/etc to find > # the override files. First choice is default files that # always override, >@@ -113,6 +114,11 @@ > cp -Rp /conf/${i}/etc/* /etc > fi > done >+ >+# Since we are starting with a very fresh /etc on an MFS: >+if [ -d /conf/default/etc ]; then >+ newaliases >+if > > # Tell /etc/rc to run the specified script after it does its mounts but > # before it does anything else. >Index: rc.diskless2 >=================================================================== >RCS file: /home/ncvs/src/etc/rc.diskless2,v >retrieving revision 1.15 >diff -u -r1.15 rc.diskless2 >--- rc.diskless2 26 Dec 2001 17:18:39 -0000 1.15 >+++ rc.diskless2 22 Feb 2002 03:56:18 -0000 >@@ -56,7 +56,7 @@ > fi > > echo "+++ mount_md of /var" >-mount_md ${varsize:=65536} /var 1 >+mount_md ${varsize:=32m} /var 1 > > echo "+++ populate /var using /etc/mtree/BSD.var.dist" > /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var >@@ -83,7 +83,7 @@ > # so if /var/tmp == /tmp, then you don't get a vi.recover. > # > if [ ! -h /tmp ]; then >- mount_md ${tmpsize:=20480} /tmp 2 >+ mount_md ${tmpsize:=64m} /tmp 2 > chmod 01777 /tmp > fi > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > Glenn Gombert ggombert@imatowns.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message