Bug 112406 - rc.sysinit mounts /dev/pts twice, incorrectly
Summary: rc.sysinit mounts /dev/pts twice, incorrectly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-19 03:33 UTC by H. Peter Anvin
Modified: 2014-03-17 02:41 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-12-19 03:57:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description H. Peter Anvin 2003-12-19 03:33:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630

Description of problem:
/etc/rc.d/rc.sysinit mounts /dev/pts, and does so incorrectly:

mount -n -t devpts /dev/pts /dev/pts

[Note no mount options.]

... later on, it does so again, with the -f option:

mount -f /dev/pts

[mount options taken from /etc/fstab.]  On 2.4, this will overmount
the first instance of devpts with a second one, which is a bit
useless.  On 2.6, the latter operation is a noop, so devpts continues
to be mounted with default options only... which is not what you want.

Either umount /dev/pts before mounting it again, mount it correctly
the first time, or pass -o remount to the second instance.


Version-Release number of selected component (if applicable):
initscripts-7.42-1

How reproducible:
Always

Steps to Reproduce:
1. Install a 2.6 kernel
2. Check the permissions on /dev/pts/*
3.
    

Actual Results:  /dev/pts/* entries have default permissions, not the
one specified in /etc/fstab (usually "gid=5,mode=620").


Additional info:

Comment 1 Bill Nottingham 2003-12-19 03:57:43 UTC
Please install the 7.43-1 update. :)

Comment 2 Bill Nottingham 2003-12-19 03:58:16 UTC
Erm, 7.42.2-1.


Note You need to log in before you can comment on or make changes to this bug.