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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to