diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-21 20:43:55 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-21 20:43:55 +0000 |
commit | a3af16ff5f132dedee5aeced6f9ce23d1e4e3110 (patch) | |
tree | 3237e5db9f0f040e3c22e8d97f742087aa36b712 /chapter06/kernfs.xml | |
parent | c34291aaae31bcdfa7f3071f4651154bd53590be (diff) |
Merge latest trunk updates to systemd branch
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10365 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/kernfs.xml')
-rw-r--r-- | chapter06/kernfs.xml | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/chapter06/kernfs.xml b/chapter06/kernfs.xml index b46f72437..3e8d6d332 100644 --- a/chapter06/kernfs.xml +++ b/chapter06/kernfs.xml @@ -68,10 +68,38 @@ mknod -m 666 $LFS/dev/null c 1 3</userinput></screen> <para>Now mount the remaining virtual kernel filesystems:</para> -<screen><userinput>mount -vt devpts devpts $LFS/dev/pts +<screen><userinput>mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620 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 |