From 119bc748313a07792baeda7ac0ee49f1e079f69c Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 22 Feb 2002 19:05:22 +0000 Subject: The existing bazaar and site-specific policy in rc.diskless1 is Just Wrong; and looks like no other Unix diskless configuration I've ever seen. Thus allow a more traditional /etc. Note, the use of an MFS /var should also be settable. Otherwise installing ports(packages) is just a total PITA. --- etc/rc.initdiskless | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'etc/rc.initdiskless') diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 30b4e4f..050628a 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -92,13 +92,14 @@ for i in ${iflist} ; do 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, @@ -114,6 +115,11 @@ for i in ${bootp_ipbca} ${bootp_ipa} ; do 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. # -- cgit v1.1