diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-03-08 11:21:34 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-03-08 11:25:48 +0800 |
commit | 835e40ce16b6043f6349cc37ff83ee701d961ee5 (patch) | |
tree | 3972016c966ea5795947a3d62b64ed07f2cd4651 /chapter02 | |
parent | e0fb1098a4b0f5059f029fd88eff78ca244beec1 (diff) |
Adjustments for /dev/pts
1. Declare UNIX98 PTY requirement in host system requirements and check
it in the script. All desktop or server distros should have it now,
but let's stop anyone from building on a embedded distro w/o UNIX98
PTY early...
2. Use Expect test suite as a guard against mishandled $LFS/dev/pts.
3. No need to test the basic function of Expect in Binutils anymore
because if ($LFS)/dev/pts is not good, the Expect test suite would
have failed.
Diffstat (limited to 'chapter02')
-rw-r--r-- | chapter02/hostreqs.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml index e3a06df4e..78a9c0561 100644 --- a/chapter02/hostreqs.xml +++ b/chapter02/hostreqs.xml @@ -105,6 +105,12 @@ compiling the kernel and configuring the boot loader (assuming the host uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para> + <para>We require the host kernel to support UNIX 98 pseudo terminal + (PTY). It should be enabled on all desktop or server distros shipping + Linux &min-kernel; or a newer kernel. If you are building a custom + host kernel, ensure <option>CONFIG_UNIX98_PTYS</option> is set to + <literal>y</literal> in the kernel configuration.</para> + </listitem> <listitem> @@ -230,6 +236,10 @@ ver_check Texinfo texi2any 4.7 ver_check Xz xz 5.0.0 ver_kernel &min-kernel; +if mount | grep -q 'devpts on /dev/pts' && [ -e /dev/ptmx ] +then echo "OK: Linux Kernel supports UNIX 98 PTY"; +else echo "ERROR: Linux Kernel does NOT support UNIX 98 PTY"; fi + alias_check() { if $1 --version 2>&1 | grep -qi $2 then printf "OK: %-4s is $2\n" "$1"; |