From owner-freebsd-hackers Tue Jun 20 10:12:27 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA29195 for hackers-outgoing; Tue, 20 Jun 1995 10:12:27 -0700 Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA29189 for ; Tue, 20 Jun 1995 10:12:23 -0700 Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id TAA03957 for hackers@freebsd.org; Tue, 20 Jun 1995 19:20:21 +0200 From: Luigi Rizzo Message-Id: <199506201720.TAA03957@labinfo.iet.unipi.it> Subject: About diskless & nfs /usr support To: hackers@freebsd.org Date: Tue, 20 Jun 1995 19:20:20 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1415 Sender: hackers-owner@freebsd.org Precedence: bulk As usual I am fighting with diskless support... My setup would include: - a readonly root partition on the server - a readonly /usr partition on the server - a writable /home partition on the server - an mfs partition for all the writable files usually on the root partition (/var, /tmp, maybe /dev, /etc) - swap on a dos file What I would like to come out is an "rc" and "netstart" files which are equally good for DISKLESS, nfs-mounted /usr (say CLIENT), and a full local system (say SERVER). 1) What is the best way to distinguish between a DISKLESS system and a system with a local root ? Parsing /etc/fstab, or testing if hostname is set when entering /etc/rc ? This is needed in /etc/rc, where we have the sequence umount -a >/dev/null 2>&1 mount -a -t nonfs which probably doesn't work if / is nfs-mounted, where we need only mount -a. 2) in /etc/netstart there are, among others, invocations to sysctl, routed, gated. These are all in /usr. We should either move them in /etc/rc, or move the "mount -t nfs" in /etc/netstart. Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 ====================================================================