From owner-freebsd-current Tue Jul 16 19:41:56 2002 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 DF47A37B400 for ; Tue, 16 Jul 2002 19:41:54 -0700 (PDT) Received: from turbine.trit.org (turbine.trit.org [63.198.170.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DA3443E42 for ; Tue, 16 Jul 2002 19:41:54 -0700 (PDT) (envelope-from dima@trit.org) Received: from turbine.trit.org (localhost [127.0.0.1]) by turbine.trit.org (Postfix) with ESMTP id 575B23F6C for ; Wed, 17 Jul 2002 02:41:53 +0000 (UTC) To: current@freebsd.org Subject: Diskless creates bad /etc Date: Wed, 17 Jul 2002 02:41:53 +0000 From: Dima Dorfman Message-Id: <20020717024153.575B23F6C@turbine.trit.org> 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 Is anybody using diskless on -current? My computers need the attached patch to boot. The diskless rc scripts seem to create an /etc filesystem with too few inodes to hold what we now have in /etc; -current now has more than 255 files. dd@ref4% find /etc | wc -l find: /etc/isdn: Permission denied find: /etc/uucp: Permission denied 197 dd@ref5% find /etc | wc -l find: /etc/isdn: Permission denied find: /etc/uucp: Permission denied 366 (ref4 output provided for reference.) Any objections to the patch? Index: rc.diskless1 =================================================================== RCS file: /ref/cvsf/src/etc/rc.diskless1,v retrieving revision 1.16 diff -u -r1.16 rc.diskless1 --- rc.diskless1 22 Apr 2002 21:42:18 -0000 1.16 +++ rc.diskless1 17 Jul 2002 02:32:29 -0000 @@ -61,7 +61,7 @@ mount_md() { /sbin/mdconfig -a -t malloc -s $1 -u $3 /sbin/disklabel -r -w md$3 auto - /sbin/newfs /dev/md$3c + /sbin/newfs -i 4096 /dev/md$3c /sbin/mount /dev/md$3c $2 } Index: rc.d/initdiskless =================================================================== RCS file: /ref/cvsf/src/etc/rc.d/initdiskless,v retrieving revision 1.1 diff -u -r1.1 initdiskless --- rc.d/initdiskless 13 Jun 2002 22:14:36 -0000 1.1 +++ rc.d/initdiskless 17 Jul 2002 02:32:43 -0000 @@ -70,7 +70,7 @@ { /sbin/mdconfig -a -t malloc -s $1 -u $3 /sbin/disklabel -r -w md$3 auto - /sbin/newfs /dev/md$3c + /sbin/newfs -i 4096 /dev/md$3c /sbin/mount /dev/md$3c $2 } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message