From owner-freebsd-questions Thu Aug 24 7:32:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 0135237B423 for ; Thu, 24 Aug 2000 07:32:30 -0700 (PDT) Received: (from lowell@localhost) by be-well.ilk.org (8.9.3/8.9.3) id KAA38828; Thu, 24 Aug 2000 10:32:25 -0400 (EDT) (envelope-from lowell) To: freebsd-questions@freebsd.org Subject: Re: read only / filesystem References: <20000824002732.A45983@dogma.freebsd-uk.eu.org> <20000824101341.D66923@wantadilla.lemis.com> <20000824030506.A47310@dogma.freebsd-uk.eu.org> <20000824114638.D37314@wantadilla.lemis.com> From: Lowell Gilbert Date: 24 Aug 2000 10:32:24 -0400 In-Reply-To: Greg Lehey's message of "Thu, 24 Aug 2000 11:46:38 +0930" Message-ID: <44ya1mk9vr.fsf@lowellg.ne.mediaone.net> Lines: 53 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey writes: > On Thursday, 24 August 2000 at 3:05:06 +0100, j mckitrick wrote: > > they said > > chflags: /dev/ttyp0/ read-only file system > > > > no clue. do i modify ttys? > > No, I think I'd hunt down that chflags command and nuke it: > > $ grep chflags /etc/rc* > /etc/rc:chflags 0 /dev/tty[pqrsPQRS]* > > Just comment out that line. And the ones around it. Which clearly aren't needed if /dev is on a read-only filesystem, anyway. I can't think of an easy way to test for that case, or I'd suggest patching rc to handle it... A little less automagical, you could add a conf variable to handle it. Perhaps something like: *** rc~ Thu Aug 24 10:26:02 2000 --- rc Thu Aug 24 10:30:47 2000 *************** *** 212,220 **** # Whack the pty perms back into shape. # ! chflags 0 /dev/tty[pqrsPQRS]* ! chmod 666 /dev/tty[pqrsPQRS]* ! chown root:wheel /dev/tty[pqrsPQRS]* # Clean up left-over files # --- 212,226 ---- # Whack the pty perms back into shape. # ! case ${read_only_dev} in ! [Yy][eE][sS]) ! ;; ! *) ! chflags 0 /dev/tty[pqrsPQRS]* ! chmod 666 /dev/tty[pqrsPQRS]* ! chown root:wheel /dev/tty[pqrsPQRS]* ! ;; ! esac # Clean up left-over files # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message