Changeset ce11e97


Ignore:
Timestamp:
02/05/2024 05:08:42 PM (3 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el
Children:
1fde756b
Parents:
1541b7c
git-author:
Xi Ruoyao <xry111@…> (02/05/2024 04:15:33 PM)
git-committer:
Xi Ruoyao <xry111@…> (02/05/2024 05:08:42 PM)
Message:

kernfs: Use a separate devpts filesystem for chroot environment

IIRC we switched from separate devpts to bind mount, and matched the UID
of tester with the host UID owning the TTY, to satisify the Bash test
suite. But now we are always using UID 101 for tester and expect to
spawn a PTY for Bash test suite (so when building LFS in a TTY owned by
the root user of the host tester won't be UID 0). Thus we can switch
back to a separate devpts mount which is cleaner and safer.

And we are already using a separate devpts mount in Chapter 11.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/kernfs.xml

    r1541b7c rce11e97  
    6464      <para>Now mount the remaining virtual kernel file systems:</para>
    6565
    66 <screen><userinput>mount -v --bind /dev/pts $LFS/dev/pts
     66      <!-- Do not put any option after $LFS/${mountpoint} or jhalfs cannot
     67           handle it! -->
     68
     69<screen><userinput>mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts
    6770mount -vt proc proc $LFS/proc
    6871mount -vt sysfs sysfs $LFS/sys
    6972mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
    70 <!--
     73
    7174    <variablelist>
    7275      <title>The meaning of the mount options for devpts:</title>
     
    9699
    97100    </variablelist>
    98 -->
     101
    99102      <para>In some host systems, <filename>/dev/shm</filename> is a
    100103      symbolic link to a directory, typically
Note: See TracChangeset for help on using the changeset viewer.