Index: bootscripts/ChangeLog
===================================================================
--- bootscripts/ChangeLog	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ bootscripts/ChangeLog	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -1,2 +1,6 @@
+2024-07-12 Xi Ruoyao <xry111@xry111.site>
+   * In mountvirtfs, recreate /dev/fd correctly if it's already created
+     by the initramfs.
+
 2024-07-06 Bruce Dubbs <bdubbs@linuxfromscratch.org>
    * Add logic to init-functions to only print escape sequences
Index: bootscripts/lfs/init.d/mountvirtfs
===================================================================
--- bootscripts/lfs/init.d/mountvirtfs	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ bootscripts/lfs/init.d/mountvirtfs	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -84,5 +84,5 @@
 
       log_info_msg2 " ${INFO}/dev/fd"
-      ln -sf /proc/self/fd   /dev/fd     || failed=1
+      ln -sfn /proc/self/fd  /dev/fd     || failed=1
 
       if [ -e /proc/kcore ]; then
Index: chapter01/changelog.xml
===================================================================
--- chapter01/changelog.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter01/changelog.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -42,4 +42,46 @@
 
     <listitem>
+      <para>2024-07-15</para>
+      <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Update to iana-etc-20240701. Addresses
+          <ulink url='&lfs-ticket-root;5006'>#5006</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to vim-9.1.0580. Addresses
+          <ulink url='&lfs-ticket-root;4500'>#4500</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to automake-1.17. Fixes
+          <ulink url='&lfs-ticket-root;5520'>#5520</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to gdbm-1.24. Fixes
+          <ulink url='&lfs-ticket-root;5515'>#5515</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to linux-6.9.9. Fixes
+          <ulink url='&lfs-ticket-root;5517'>#5517</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to less-661. Fixes
+          <ulink url='&lfs-ticket-root;5513'>#5513</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to meson-1.5.0. Fixes
+          <ulink url='&lfs-ticket-root;5519'>#5519</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to setuptools-70.3.0. Fixes
+          <ulink url='&lfs-ticket-root;5514'>#5514</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to util-linux-2.40.2. Fixes
+          <ulink url='&lfs-ticket-root;5516'>#5516</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>2024-07-01</para>
       <itemizedlist>
Index: chapter01/whatsnew.xml
===================================================================
--- chapter01/whatsnew.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter01/whatsnew.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -36,7 +36,7 @@
       <para>Autoconf-&autoconf-version;</para>
     </listitem>-->
-    <!--<listitem>
+    <listitem>
       <para>Automake-&automake-version;</para>
-    </listitem>-->
+    </listitem>
     <!--<listitem>
       <para>Bash-&bash-version;</para>
@@ -96,7 +96,7 @@
        <para>GCC-&gcc-version;</para>
     </listitem>
-    <!--<listitem>
+    <listitem>
        <para>GDBM-&gdbm-version;</para>
-    </listitem>-->
+    </listitem>
     <listitem>
       <para>Gettext-&gettext-version;</para>
@@ -143,8 +143,8 @@
     <listitem>
       <para>Kmod-&kmod-version;</para>
-   </listitem>
-    <!--<listitem>
+    </listitem>
+    <listitem>
       <para>Less-&less-version;</para>
-    </listitem>-->
+    </listitem>
     <!--<listitem>
       <para>LFS-Bootscripts-&lfs-bootscripts-version;</para>
Index: chapter03/packages.xml
===================================================================
--- chapter03/packages.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter03/packages.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -715,5 +715,5 @@
 
     <varlistentry>
-      <term>Systemd Man Pages(&systemd-version;) - <token>&systemd-man-size;</token>:</term>
+      <term>Systemd Man Pages (&systemd-version;) - <token>&systemd-man-size;</token>:</term>
       <listitem>
         <para>Home page: <ulink url="&systemd-home;"/></para>
Index: chapter05/binutils-pass1.xml
===================================================================
--- chapter05/binutils-pass1.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter05/binutils-pass1.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -77,4 +77,5 @@
              --enable-gprofng=no \
              --disable-werror    \
+             --enable-new-dtags  \
              --enable-default-hash-style=gnu</userinput></screen>
 
@@ -135,4 +136,15 @@
 
       <varlistentry>
+        <term><parameter>--enable-new-dtags</parameter></term>
+        <listitem>
+          <para>This makes the linker use the <quote>runpath</quote> tag for
+          embedding library search paths into executables and shared libraries,
+          instead of the traditional <quote>rpath</quote> tag.  It makes
+          debugging dynamically linked executables easier and works around
+          potential issues in the test suite of some packages.</para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
         <term><parameter>--enable-default-hash-style=gnu</parameter></term>
         <listitem>
Index: chapter06/binutils-pass2.xml
===================================================================
--- chapter06/binutils-pass2.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter06/binutils-pass2.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -74,4 +74,5 @@
     --disable-werror           \
     --enable-64-bit-bfd        \
+    --enable-new-dtags         \
     --enable-default-hash-style=gnu</userinput></screen>
 
Index: chapter08/binutils.xml
===================================================================
--- chapter08/binutils.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter08/binutils.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -58,4 +58,5 @@
              --disable-werror    \
              --enable-64-bit-bfd \
+             --enable-new-dtags  \
              --with-system-zlib  \
              --enable-default-hash-style=gnu</userinput></screen>
Index: chapter08/cleanup.xml
===================================================================
--- chapter08/cleanup.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter08/cleanup.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -13,5 +13,5 @@
   <para>Finally, clean up some extra files left over from running tests:</para>
 
-<screen><userinput>rm -rf /tmp/*</userinput></screen>
+  <screen><userinput>rm -rf /tmp/{*,.*}</userinput></screen>
 
   <para>There are also several files in the /usr/lib and /usr/libexec
Index: chapter08/systemd.xml
===================================================================
--- chapter08/systemd.xml	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ chapter08/systemd.xml	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -226,8 +226,6 @@
     <!-- test-namespace needs /run/systemd/inaccessible/sock, which only exists
          after initializing the system with systemd.  -->
-    <para>Three tests: <literal>systemd:core / test-namespace</literal>,
-                       <literal>test-loopback</literal>, and 
-                       <literal>test-copy</literal>,
-    are known to fail in the LFS chroot environment.  Some other tests may
+    <para>One test named <literal>systemd:core / test-namespace</literal>
+    is known to fail in the LFS chroot environment.  Some other tests may
     fail because they depend on various kernel configuration options.</para>
 
Index: packages.ent
===================================================================
--- packages.ent	(revision b56430b6918bb03101b86c387923a3cdce90ef39)
+++ packages.ent	(revision e148af0796b653aadf52f323e56d7fa39ac72060)
@@ -39,9 +39,9 @@
 <!ENTITY autoconf-fin-sbu "less than 0.1 SBU (about &autoconf-fin-sbu-tests; SBU with tests)">
 
-<!ENTITY automake-version "1.16.5">
-<!ENTITY am-minor-version "1.16">
-<!ENTITY automake-size "1,565 KB">
+<!ENTITY automake-version "1.17">
+<!ENTITY am-minor-version "1.17">
+<!ENTITY automake-size "1,614 KB">
 <!ENTITY automake-url "&gnu;automake/automake-&automake-version;.tar.xz">
-<!ENTITY automake-md5 "4017e96f89fca45ca946f1c5db6be714">
+<!ENTITY automake-md5 "7ab3a02318fee6f5bd42adfc369abf10">
 <!ENTITY automake-home "&gnu-software;automake/">
 <!ENTITY automake-fin-du "115 MB">
@@ -238,8 +238,8 @@
 <!ENTITY libstdcpp-tmpp1-sbu "0.2 SBU">
 
-<!ENTITY gdbm-version "1.23">
-<!ENTITY gdbm-size "1,092 KB">
+<!ENTITY gdbm-version "1.24">
+<!ENTITY gdbm-size "1,168 KB">
 <!ENTITY gdbm-url "&gnu;gdbm/gdbm-&gdbm-version;.tar.gz">
-<!ENTITY gdbm-md5 "8551961e36bf8c70b7500d255d3658ec">
+<!ENTITY gdbm-md5 "c780815649e52317be48331c1773e987">
 <!ENTITY gdbm-home "&gnu-software;gdbm/">
 <!ENTITY gdbm-fin-du "13 MB">
@@ -318,8 +318,8 @@
 <!ENTITY gzip-fin-sbu "0.3 SBU">
 
-<!ENTITY iana-etc-version "20240612">
+<!ENTITY iana-etc-version "20240701">
 <!ENTITY iana-etc-size "590 KB">
 <!ENTITY iana-etc-url "https://github.com/Mic92/iana-etc/releases/download/&iana-etc-version;/iana-etc-&iana-etc-version;.tar.gz">
-<!ENTITY iana-etc-md5 "e89d8925bf0180ad71da055c55738cf3">
+<!ENTITY iana-etc-md5 "d9ce95852cab1024eae4e40bc9ba1b49">
 <!ENTITY iana-etc-home "https://www.iana.org/protocols">
 <!ENTITY iana-etc-fin-du "4.8 MB">
@@ -374,13 +374,13 @@
 <!ENTITY kmod-fin-sbu "less than 0.1 SBU">
 
-<!ENTITY less-version "643">
-<!ENTITY less-size "579 KB">
+<!ENTITY less-version "661">
+<!ENTITY less-size "634 KB">
 <!ENTITY less-url "https://www.greenwoodsoftware.com/less/less-&less-version;.tar.gz">
-<!ENTITY less-md5 "cf05e2546a3729492b944b4874dd43dd">
+<!ENTITY less-md5 "44f54b6313c5d71fa1ac224d8d84766a">
 <!ENTITY less-home "https://www.greenwoodsoftware.com/less/">
 <!ENTITY less-fin-du "12 MB">
 <!ENTITY less-fin-sbu "less than 0.1 SBU">
 
-<!ENTITY lfs-bootscripts-version "20240706">      <!-- Scripts depend on this format -->
+<!ENTITY lfs-bootscripts-version "20240717">      <!-- Scripts depend on this format -->
 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
@@ -432,10 +432,10 @@
 <!ENTITY linux-major-version "6">
 <!ENTITY linux-minor-version "9">
-<!ENTITY linux-patch-version "7">
+<!ENTITY linux-patch-version "9">
 <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
 <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
-<!ENTITY linux-size "140,725 KB">
+<!ENTITY linux-size "140,754 KB">
 <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
-<!ENTITY linux-md5 "05d341be44220843c0cd5c1f11887919">
+<!ENTITY linux-md5 "15bd6e9fea3d295a3919efe5495bc8b7">
 <!ENTITY linux-home "https://www.kernel.org/">
 <!-- measured for 6.5.3 / gcc-13.2.0 on x86_64 with -j4 : minimum is
@@ -503,8 +503,8 @@
 <!ENTITY markupsafe-fin-sbu "less than 0.1 SBU">
 
-<!ENTITY meson-version "1.4.1">
-<!ENTITY meson-size "2,184 KB">
+<!ENTITY meson-version "1.5.0">
+<!ENTITY meson-size "2,205 KB">
 <!ENTITY meson-url "&github;/mesonbuild/meson/releases/download/&meson-version;/meson-&meson-version;.tar.gz">
-<!ENTITY meson-md5 "543a78b55b2d162135e75623b85a59c6">
+<!ENTITY meson-md5 "caa086c7659cce6a4eb604f93793019c">
 <!ENTITY meson-home "https://mesonbuild.com">
 <!ENTITY meson-fin-du "42 MB">
@@ -637,8 +637,8 @@
 <!ENTITY sed-fin-sbu "0.3 SBU">
 
-<!ENTITY setuptools-version "70.1.1">
-<!ENTITY setuptools-size "2,239 KB">
+<!ENTITY setuptools-version "70.3.0">
+<!ENTITY setuptools-size "2,279 KB">
 <!ENTITY setuptools-url "&pypi-src;/s/setuptools/setuptools-&setuptools-version;.tar.gz">
-<!ENTITY setuptools-md5 "ca9b74245ee9acf0fa34b02c03ec6f47">
+<!ENTITY setuptools-md5 "2ba75817d4b434bb6e3d67d48a808457">
 <!ENTITY setuptools-home "&pypi-home;/setuptools/">
 <!ENTITY setuptools-fin-du "20 MB">
@@ -734,8 +734,8 @@
 
 <!ENTITY util-linux-minor "2.40">
-<!ENTITY util-linux-version "2.40.1"> <!-- 2.33.x -->
-<!ENTITY util-linux-size "8,617 KB">
+<!ENTITY util-linux-version "2.40.2"> <!-- 2.33.x -->
+<!ENTITY util-linux-size "8,648 KB">
 <!ENTITY util-linux-url "&kernel;linux/utils/util-linux/v&util-linux-minor;/util-linux-&util-linux-version;.tar.xz">
-<!ENTITY util-linux-md5 "42ca7b92a3d77087de362f43ac29a3df">
+<!ENTITY util-linux-md5 "88faefc8fefced097e58142077a3d14e">
 <!ENTITY util-linux-home "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/">
 <!ENTITY util-linux-tmp-du "172 MB">
@@ -744,8 +744,8 @@
 <!ENTITY util-linux-fin-sbu "0.5 SBU">
 
-<!ENTITY vim-version "9.1.0478">
+<!ENTITY vim-version "9.1.0580">
 <!-- <!ENTITY vim-majmin "90"> -->
 <!ENTITY vim-docdir "vim/vim91">
-<!ENTITY vim-size "17,508 KB">
+<!ENTITY vim-size "17,568 KB">
 <!ENTITY vim-url "https://github.com/vim/vim/archive/v&vim-version;/vim-&vim-version;.tar.gz">
 <!-- N.B. LFS 9.0 uses
@@ -761,5 +761,5 @@
      us v8.1.1846. -->
 <!--<!ENTITY vim-url "&anduin-sources;/vim-&vim-version;.tar.gz">-->
-<!ENTITY vim-md5 "7d56919d58592c041ab61f45584e6f90">
+<!ENTITY vim-md5 "3e871c0773a6c2a491d3d730475b5698">
 <!ENTITY vim-home "https://www.vim.org">
 <!ENTITY vim-fin-du "236 MB">
