From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 31 20:30:19 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62E4C16A41F for ; Mon, 31 Oct 2005 20:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91C9443D49 for ; Mon, 31 Oct 2005 20:30:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9VKUIF3035136 for ; Mon, 31 Oct 2005 20:30:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9VKUIYQ035132; Mon, 31 Oct 2005 20:30:18 GMT (envelope-from gnats) Resent-Date: Mon, 31 Oct 2005 20:30:18 GMT Resent-Message-Id: <200510312030.j9VKUIYQ035132@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joerg Pulz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DC8A16A41F for ; Mon, 31 Oct 2005 20:27:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 380BC43D46 for ; Mon, 31 Oct 2005 20:27:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9VKRKUp091447 for ; Mon, 31 Oct 2005 20:27:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j9VKRKBB091446; Mon, 31 Oct 2005 20:27:20 GMT (envelope-from nobody) Message-Id: <200510312027.j9VKRKBB091446@www.freebsd.org> Date: Mon, 31 Oct 2005 20:27:20 GMT From: Joerg Pulz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: conf/88293: /etc/rc.initdiskless broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2005 20:30:19 -0000 >Number: 88293 >Category: conf >Synopsis: /etc/rc.initdiskless broken >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 31 20:30:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Joerg Pulz >Release: FreeBSD 6.0-RC1 >Organization: TU-Munich / ZWE FRM-II >Environment: FreeBSD localhost 6.0-RC1 FreeBSD 6.0-RC1 #0: Sun Oct 9 20:32:57 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 >Description: Setting up a FreeBSD diskless client with read-only root filesystem is not working if one is using /conf/base/etc.cpio.gz as /etc base. The first problem is the use of the pax(1) command to extract the etc.cpio.gz file into the mfs for /etc. pax(1) is bailing out with > pax: Invalid combination of options: -f -p -r -x If the "-x cpio" option is removed pax(1) is working correctly and is determining the archive type automatically. The next problem is related to pax(1) too but only happens with a read-only /tmp via NFS. pax(1) tries to create a temporary file to store directory times in /tmp. If /tmp comes read-only (together with / via NFS) pax(1) is bailing out again. Unfortunately, it is not possible to create an mfs based /tmp without hacking rc.initdiskless as mounting filesystems from /etc/fstab or creating an mfs based /tmp via /etc/rc.d/tmp is done later. The same applies to FreeBSD-5.4 and /etc/rc.d/initdiskless. >How-To-Repeat: Follow the instructions for diskless(8) to setup the whole thing. Generate an appropriate /conf/base/etc.cpio.gz from your distribution /etc dir. PXEboot the client and wait for rc.initdiskless to kick in. >Fix: The first problem can be fixed by removing "-x cpio" from the pax(1) invocation line in rc.initdiskless. The second problem can be fixed by forcing the execution of "/etc/rc.d/tmp start" in /etc/rc before rc.initdiskless is started. >Release-Note: >Audit-Trail: >Unformatted: