Author: bryan
Date: Thu Aug 15 19:53:28 2013
New Revision: 10318
Log:
Add explanatory text for new devpts mount options
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter06/kernfs.xml
Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml Thu Aug 15 17:17:53 2013 (r10317)
+++ trunk/BOOK/chapter01/changelog.xml Thu Aug 15 19:53:28 2013 (r10318)
@@ -39,6 +39,10 @@
<para>2013-08-15</para>
<itemizedlist>
<listitem>
+ <para>[bryan] - Add explanation for new devpts mount
+ options</para>
+ </listitem>
+ <listitem>
<para>[bdubbs] - Update several pages to fix regression
test failures.</para>
</listitem>
Modified: trunk/BOOK/chapter06/kernfs.xml
==============================================================================
--- trunk/BOOK/chapter06/kernfs.xml Thu Aug 15 17:17:53 2013 (r10317)
+++ trunk/BOOK/chapter06/kernfs.xml Thu Aug 15 19:53:28 2013 (r10318)
@@ -72,6 +72,34 @@
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys</userinput></screen>
+ <variablelist>
+ <title>The meaning of the mount options for devpts:</title>
+
+ <varlistentry>
+ <term><parameter>gid=5</parameter></term>
+ <listitem>
+ <para>This ensures that all devpts-created device nodes are owned by
+ group ID 5. This is the ID we will use later on for the <systemitem
+ class="groupname">tty</systemitem> group. We use the group ID
instead
+ of a name, since the host system might use a different ID for its
+ <systemitem class="groupname">tty</systemitem> group.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><parameter>mode=0620</parameter></term>
+ <listitem>
+ <para>This ensures that all devpts-created device nodes have mode
0620
+ (user readable and writable, group writable). Together with the
+ option above, this ensures that devpts will create device nodes that
+ meet the requirements of grantpt(), meaning the Glibc
+ <command>pt_chown</command> helper binary (which is not installed by
+ default) is not necessary.</para>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+
<para>In some host systems, <filename>/dev/shm</filename> is a
symbolic link to <filename class="directory">/run/shm</filename>.
Inside a chroot environment, this temporary file system needs
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page