From owner-freebsd-bugs Tue Apr 17 9:30:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 69CB537B443 for ; Tue, 17 Apr 2001 09:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3HGU1j86003; Tue, 17 Apr 2001 09:30:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CBBCB37B440 for ; Tue, 17 Apr 2001 09:20:57 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3HGKvq85183; Tue, 17 Apr 2001 09:20:57 -0700 (PDT) (envelope-from nobody) Message-Id: <200104171620.f3HGKvq85183@freefall.freebsd.org> Date: Tue, 17 Apr 2001 09:20:57 -0700 (PDT) From: bbauman@wgate.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/26649: diskless client can't share root with server Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26649 >Category: misc >Synopsis: diskless client can't share root with server >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 17 09:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Bruce Bauman >Release: 4.3-RC >Organization: WorldGate Communications >Environment: >Description: The rc.diskless2 script creates a /dev on the client by doing a mount_mfs followed by a cpio of the server's /dev. This won't work because /dev/zero can't be copied to the client's /dev since it provides an infinite supply of data. Other devices have similar problems. >How-To-Repeat: Share the root filesystem between the boot server and client in a diskless configuration. No workee. >Fix: Rather than using cpio, we copy MAKEDEV to /tmp, then mount_mfs, then MAKEDEV the appropriate device nodes in the client's /dev. Works like a charm and allows you reduce the clutter in the diskless client's /dev. DEVFS would have been a possible solution for us, but we use dhclient on the diskless clients. dhclient relies on bpf, and bpf won't work with DEVFS, so although it is a more elegant solution, it wouldn't work for us. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message