From owner-freebsd-current Wed Feb 19 11: 7:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 803CB37B405 for ; Wed, 19 Feb 2003 11:07:27 -0800 (PST) Received: from Shenton.org (23.ebbed1.client.atlantech.net [209.190.235.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 36EF343FA3 for ; Wed, 19 Feb 2003 11:07:26 -0800 (PST) (envelope-from chris@Shenton.Org) Received: (qmail 85604 invoked by uid 1000); 19 Feb 2003 19:07:23 -0000 To: Matthew Dillon Cc: current@FreeBSD.ORG Subject: Re: Diskless: 5.0R scripts, boot, NFS mount problems I didn't have in 4.7S References: <87el65pi4e.fsf@Pectopah.shenton.org> <200302191844.h1JIiUIh004070@apollo.backplane.com> From: Chris Shenton Date: 19 Feb 2003 14:07:23 -0500 In-Reply-To: <200302191844.h1JIiUIh004070@apollo.backplane.com> Message-ID: <8765rg1444.fsf@Pectopah.shenton.org> Lines: 78 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Dillon writes: > 4.x and -current use the same mechanism, except 4.x uses MFS and > -current uses MD. 4.x uses /etc/diskless[12] while 5.x (by default) uses /etc/rc.d/(init)?diskless. The latter is works very differently than the former. > Ignore the handbook. Try 'man diskless'. Ouch, will try the man. > kenv is only used in current's rc.diskless scripts, and it > resides in /bin on -current. Not on mine: chris@Pectopah<103> whereis kenv kenv: /usr/bin/kenv /usr/share/man/man1/kenv.1.gz /usr/src/bin/kenv chris@Pectopah<104> ls /bin/kenv ls: /bin/kenv: No such file or directory chris@Pectopah<105> uname -a FreeBSD Pectopah.shenton.org 5.0-RELEASE-p1 FreeBSD 5.0-RELEASE-p1 #0: Sun Feb 16 16:10:36 EST 2003 root@Pectopah.shenton.org:/usr/obj/usr/src/sys/Pectopah i386 And the /usr/bin/kenv needs the elf libraries to run, it's not static, so shouldn't live in /sbin and can't run on a diskless box until /usr is mounted. > Basically what you do is create a files and directories in > /conf/base and /conf/default which are used to populate the > MFS/MD root and other directories. I have included my setup > at the end. Which startup scripts are you running, old diskless[12] or new rc.d/(init)?diskless ? Thanks for your examples, I'll plow through them tonight. But -- more below -- these sure look like 4.x-compatible stuff, not 5.0. > /conf/base: > total 5 > drwxr-xr-x 2 root wheel 512 Dec 21 10:37 dev > drwxr-xr-x 2 root wheel 512 Dec 19 22:22 etc > -rw-r--r-- 1 root wheel 11 Dec 20 15:38 etc.remove > drwxr-xr-x 2 root wheel 512 Dec 20 14:31 root > -rw-r--r-- 1 root wheel 12 Dec 20 15:38 root.remove > > /conf/base/dev: > total 2 > -rw-r--r-- 1 root wheel 18 Dec 21 10:37 diskless_remount > -rw-r--r-- 1 root wheel 6 Dec 19 22:22 md_size The etc.remove and md_size are used by 4.x's diskless[12] but NOT by the 5.x /etc/rc.d/(init?)diskless scripts. Are you using the old startup rc stuff, possibly changing the default value in /etc/defaults/rc.conf: rc_ng="YES" # Set to NO to disable new-style rc scripts. If so and it works for you, I can certainly do the same. But I'd still like to figure how to get the 5.x rc.d/* scripts to do their thing. Actually, I don't see any code to look for that md_size or diskless_remount in either of 5.0's rc.diskless[12] or rc.d/(init)?diskless. I do know that what you're describing is in 4.x's rc.diskless[12], and I did have that working on a 4.7S system. That's why I'm having so much trouble with the 5.0 diskless boot -- everything's changed. Lemme know if I'm way off base but it sounds like you're describing a 4.x diskless boot and my problem's with 5.0. Thanks a bunch! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message