From owner-cvs-src@FreeBSD.ORG Sun Dec 3 23:50:30 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F25CC16A403; Sun, 3 Dec 2006 23:50:29 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BB6443C9D; Sun, 3 Dec 2006 23:50:00 +0000 (GMT) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kB3NoTne038747; Sun, 3 Dec 2006 23:50:29 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from luigi@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kB3NoT5L038745; Sun, 3 Dec 2006 23:50:29 GMT (envelope-from luigi) Message-Id: <200612032350.kB3NoT5L038745@repoman.freebsd.org> From: Luigi Rizzo Date: Sun, 3 Dec 2006 23:50:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc rc.initdiskless X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 23:50:30 -0000 luigi 2006-12-03 23:50:29 UTC FreeBSD src repository Modified files: etc rc.initdiskless Log: - put some common code in a function handle_remount(); - add better checks on non-existing directories to prevent error messages at run time; - introduce a function log() to help debugging diskless booting when things don't work; - modify the parsing of diskless_remount so you can add mount_nfs options after the pathname. You could use 'remount' to do something similar, but this way is more convenient because you don't have to hardwire the server name in the command. - document the above. I have been running the above in a diskless lab since february on RELENG_6. MFC after: 1 week Revision Changes Path 1.52 +43 -38 src/etc/rc.initdiskless