From 21dd2f064f6f6471cad7d21baa9d60c8457db214 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 07:25:20 +0800 Subject: [PATCH 01/20] glibc: Makefile is not generated --- chapter08/glibc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 4f1ae2c36..8ea23bbdf 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -193,7 +193,7 @@ esac touch /etc/ld.so.conf - Fix the generated Makefile to skip an unneeded sanity check + Fix the Makefile to skip an unneeded sanity check that fails in the LFS partial environment: From bf6c6f818089b493bb04ac3ac969ffe52ee7271a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 07:49:33 +0800 Subject: [PATCH 02/20] tcl: update to tcl-8.6.12 (#5001) tdbc 1.1.2 -> 1.1.3 itcl 4.2.1 -> 4.2.2 --- chapter01/changelog.xml | 4 ++++ chapter01/whatsnew.xml | 4 ++-- chapter08/tcl.xml | 4 ++-- packages.ent | 10 +++++----- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 77a8de18f..b14068900 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,10 @@ 2022-02-04 + + [xry111] - Update to tcl-8.6.12. Fixes + #5001. + [thomas] - Remove sed from glibc instructions in chapter 8. It has been applied upstream. diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index d0d17f734..5beb5ccea 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -243,9 +243,9 @@ - + diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml index 7e5d4357f..4e03f8625 100644 --- a/chapter08/tcl.xml +++ b/chapter08/tcl.xml @@ -3,8 +3,8 @@ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ %general-entities; - - + + ]> diff --git a/packages.ent b/packages.ent index cc2f56bca..d9f02b03b 100644 --- a/packages.ent +++ b/packages.ent @@ -676,15 +676,15 @@ - + - + - + - - + + From d64d2255f5aaf2d7a3da1294509d6dbbdb7b4d54 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 08:02:35 +0800 Subject: [PATCH 03/20] dependencies: zstd can use LZ4 --- appendices/dependencies.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 58406d1bb..8783e5277 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -3225,7 +3225,9 @@ &external; - None + + LZ4 + From 51e4ab228f0ee130995291da9b7c119396c86909 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 08:16:37 +0800 Subject: [PATCH 04/20] gcc: add "or later" for "Glibc-2.34", as we have 2.35 now --- chapter08/gcc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index a37e37774..e3db3bf1f 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -43,7 +43,7 @@ At first, fix an issue breaking libasan.a building this package - with Glibc-2.34: + with Glibc-2.34 or later: sed -e '/static.*SIGSTKSZ/d' \ -e 's/return kAltStackSize/return SIGSTKSZ * 4/' \ From 889f3811e524af6c8046c01292c816151b4d0a3f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 11:37:16 +0800 Subject: [PATCH 05/20] Revert "gdbm: document gdbmtool tests fail, add -k" This reverts commit ae3f78a38237bbdd7937f5a770d2c9582fa242ed. No longer needed with gdbm-1.22 or later: https://git.gnu.org.ua/gdbm.git/commit/?id=5b62babd https://git.gnu.org.ua/gdbm.git/commit/?id=f586b159 --- chapter08/gdbm.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/chapter08/gdbm.xml b/chapter08/gdbm.xml index 93e1f6a11..431987f52 100644 --- a/chapter08/gdbm.xml +++ b/chapter08/gdbm.xml @@ -73,14 +73,12 @@ To test the results, issue: -make -k check - +make check + Install the package: make install From ab8c166cbb6543a710bcc1ec9dbbfeb980c9eb2a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 11:46:45 +0800 Subject: [PATCH 06/20] gdbm: update to gdbm-1.23 (#5000) --- chapter01/changelog.xml | 4 ++++ packages.ent | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index b14068900..7611a1534 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,10 @@ 2022-02-04 + + [xry111] - Update to gdbm-1.23. Fixes + #5000. + [xry111] - Update to tcl-8.6.12. Fixes #5001. diff --git a/packages.ent b/packages.ent index d9f02b03b..3201f4871 100644 --- a/packages.ent +++ b/packages.ent @@ -240,10 +240,10 @@ - - + + - + From f5923aa8b4f9b2498de9dc6a85bbf96b83fdf16b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 13:19:11 +0800 Subject: [PATCH 07/20] kmod: link to openssl --- appendices/dependencies.xml | 4 ++-- chapter01/changelog.xml | 4 ++++ chapter08/chapter08.xml | 2 +- chapter08/kmod.xml | 17 ++++++++++++++++- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 8783e5277..df37a27d1 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -1557,7 +1557,7 @@ &dependencies; Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, - Gzip, Make, Pkg-config, Sed, Xz, and Zlib + Gzip, Make, OpenSSL, Pkg-config, Sed, Xz, and Zlib @@ -2332,7 +2332,7 @@ &before; - Coreutils and Linux + Coreutils, Kmod, and Linux diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7611a1534..4ebaeacf7 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,10 @@ 2022-02-04 + + [xry111] - Move OpenSSL before Kmod and enable OpenSSL + for Kmod build. + [xry111] - Update to gdbm-1.23. Fixes #5000. diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index 7b638cc0d..152d7ea4d 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -58,10 +58,10 @@ + - diff --git a/chapter08/kmod.xml b/chapter08/kmod.xml index 4288f31d9..6fa626297 100644 --- a/chapter08/kmod.xml +++ b/chapter08/kmod.xml @@ -45,6 +45,7 @@ ./configure --prefix=/usr \ --sysconfdir=/etc \ + --with-openssl \ --with-xz \ --with-zstd \ --with-zlib @@ -53,7 +54,21 @@ The meaning of the configure options: - --with-xz, --with-zlib, --with-zstd + + --with-openssl + + + This option enables Kmod to handle PKCS7 signatures for + kernel modules. + + + + + + --with-xz, + --with-zlib, and + --with-zstd + These options enable Kmod to handle compressed kernel modules. From f26f74cb245515ca3c356fc6f99232f8ad440a30 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 13:28:35 +0800 Subject: [PATCH 08/20] kmod: update the status for test suite --- chapter08/kmod.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapter08/kmod.xml b/chapter08/kmod.xml index 6fa626297..728f59bc7 100644 --- a/chapter08/kmod.xml +++ b/chapter08/kmod.xml @@ -80,9 +80,9 @@ make - This package does not come with a test suite that can be run in the - LFS chroot environment. At a minimum the git program is required and - several tests will not run outside of a git repository. + The test suite of this package requires raw kernel headers + (not the sanitized kernel headers installed earlier), + which are beyond the scope of LFS. Install the package and create symlinks for compatibility with Module-Init-Tools (the package that previously handled From db2d98f7a9d866f0fa4445d0b96c74ba16302d70 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 17:15:38 +0800 Subject: [PATCH 09/20] man-db: update to man-db-2.10.0 (#5002) --- chapter01/changelog.xml | 4 ++++ chapter08/man-db.xml | 42 +++++++++++++++++++++++++---------------- packages.ent | 6 +++--- 3 files changed, 33 insertions(+), 19 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4ebaeacf7..155b12f50 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,10 @@ 2022-02-04 + + [xry111] - Update to man-db-2.10.0. Fixes + #5002. + [xry111] - Move OpenSSL before Kmod and enable OpenSSL for Kmod build. diff --git a/chapter08/man-db.xml b/chapter08/man-db.xml index b60e417e8..642a4e1df 100644 --- a/chapter08/man-db.xml +++ b/chapter08/man-db.xml @@ -43,24 +43,24 @@ Prepare Man-DB for compilation: -./configure --prefix=/usr \ +./configure --prefix=/usr \ --docdir=/usr/share/doc/man-db-&man-db-version; \ - --sysconfdir=/etc \ - --disable-setuid \ - --enable-cache-owner=bin \ - --with-browser=/usr/bin/lynx \ - --with-vgrind=/usr/bin/vgrind \ + --sysconfdir=/etc \ + --disable-setuid \ + --enable-cache-owner=bin \ + --with-browser=/usr/bin/lynx \ + --with-vgrind=/usr/bin/vgrind \ --with-grap=/usr/bin/grap -./configure --prefix=/usr \ +./configure --prefix=/usr \ --docdir=/usr/share/doc/man-db-&man-db-version; \ - --sysconfdir=/etc \ - --disable-setuid \ - --enable-cache-owner=bin \ - --with-browser=/usr/bin/lynx \ - --with-vgrind=/usr/bin/vgrind \ - --with-grap=/usr/bin/grap \ - --with-systemdtmpfilesdir= \ + --sysconfdir=/etc \ + --disable-setuid \ + --enable-cache-owner=bin \ + --with-browser=/usr/bin/lynx \ + --with-vgrind=/usr/bin/vgrind \ + --with-grap=/usr/bin/grap \ + --with-systemdtmpfilesdir= \ --with-systemdsystemunitdir= @@ -306,8 +306,8 @@ Installed directories - accessdb, apropos (link to whatis), catman, lexgrog, man, mandb, - manpath, and whatis + accessdb, apropos (link to whatis), catman, lexgrog, man, + man-recode, mandb, manpath, and whatis libman.so and libmandb.so (both in /usr/lib/man-db) /usr/lib/man-db, /usr/libexec/man-db, and /usr/share/doc/man-db-&man-db-version; @@ -373,6 +373,16 @@ + + man-recode + + Converts manual pages to another encoding + + man-recode + + + + mandb diff --git a/packages.ent b/packages.ent index 3201f4871..b3bb37721 100644 --- a/packages.ent +++ b/packages.ent @@ -467,10 +467,10 @@ - - + + - + From 50c357d36393e8250871e98af196ba3232320264 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 17:39:48 +0800 Subject: [PATCH 10/20] util-linux: revise contents and short descriptions * tailf is removed completely * fdformat is disabled by default, and we don't really have any reason to enable it (and we'll need to workaround the missing man page issue if we want to enable it) * irqtop, lsirq, scriptreplay, and uclampset added --- chapter08/util-linux.xml | 74 +++++++++++++++++++++++++--------------- 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index 78736fd58..e25601e97 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -127,15 +127,15 @@ su tester -c "make -k check" addpart, agetty, blkdiscard, blkid, blkzone, blockdev, cal, cfdisk, chcpu, chmem, choom, chrt, col, colcrt, colrm, column, ctrlaltdel, delpart, dmesg, - eject, fallocate, fdformat, fdisk, fincore, findfs, findmnt, flock, fsck, + eject, fallocate, fdisk, fincore, findfs, findmnt, flock, fsck, fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, - i386, ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb (link to + i386, ionice, ipcmk, ipcrm, ipcs, irqtop, isosize, kill, last, lastb (link to last), ldattach, linux32, linux64, logger, look, losetup, lsblk, lscpu, - lsipc, lslocks, lslogins, lsmem, lsns, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, + lsipc, lsirq, lslocks, lslogins, lsmem, lsns, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, mountpoint, namei, nsenter, partx, pivot_root, prlimit, readprofile, rename, renice, resizepart, rev, rfkill, rtcwake, script, - scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel, - swapoff (link to swapon), swapon, switch_root, taskset, ul, + scriptlive, scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel, + swapoff (link to swapon), swapon, switch_root, taskset, uclampset, ul, umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis, wipefs, x86_64, and zramctl libblkid.so, libfdisk.so, libmount.so, @@ -370,16 +370,6 @@ su tester -c "make -k check" - - fdformat - - Low-level formats a floppy disk - - fdformat - - - - fdisk @@ -569,6 +559,17 @@ su tester -c "make -k check" + + irqtop + + Displays kernel interrupt counter information in + top(1) style view + + irqtop + + + + isosize @@ -704,6 +705,16 @@ su tester -c "make -k check" + + lsirq + + Displays kernel interrupt counter information + + lsirq + + + + lslocks @@ -984,6 +995,16 @@ su tester -c "make -k check" + + scriptlive + + Re-run session typescripts using timing information + + scriptlive + + + + scriptreplay @@ -1088,18 +1109,6 @@ su tester -c "make -k check" - - tailf - - Tracks the growth of a log file; displays the last 10 lines - of a log file, then continues displaying any new entries in the - log file as they are created - - tailf - - - - taskset @@ -1110,6 +1119,17 @@ su tester -c "make -k check" + + uclampset + + Manipulate the utilization clamping attributes of the + system or a process + + uclampset + + + + ul From e954006b160330eba233e34a8ae7629853aa0f3d Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 17:43:07 +0800 Subject: [PATCH 11/20] util-linux: add --bindir and --sbindir The defaults are /bin and /sbin. We don't like them because of "DESTDIR on merged-usr system" issue. --- chapter08/util-linux.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index e25601e97..18ab04199 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -45,7 +45,9 @@ Prepare Util-linux for compilation: ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ + --bindir=/usr/bin \ --libdir=/usr/lib \ + --sbindir=/usr/sbin \ --docdir=/usr/share/doc/util-linux-&util-linux-version; \ --disable-chfn-chsh \ --disable-login \ @@ -61,7 +63,9 @@ runstatedir=/run ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ + --bindir=/usr/bin \ --libdir=/usr/lib \ + --sbindir=/usr/sbin \ --docdir=/usr/share/doc/util-linux-&util-linux-version; \ --disable-chfn-chsh \ --disable-login \ From 69c4524b6df4f5ac7b87e868afe55569b61752a8 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 17:51:34 +0800 Subject: [PATCH 12/20] systemd: remove unneeded LANG=en_US.UTF-8 settings They were added because ninja had printed warnings about "non UTF-8 locale". Current version of ninja no longer does this. --- chapter08/systemd.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index be7cb4e8b..94696ea97 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -58,7 +58,6 @@ mkdir -p build cd build -LANG=en_US.UTF-8 \ meson --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ @@ -173,11 +172,11 @@ meson --prefix=/usr \ Compile the package: -LANG=en_US.UTF-8 ninja +ninja Install the package: -LANG=en_US.UTF-8 ninja install +ninja install Install the man pages: From 490dc15317e18e4f87d2a2555adc6ce2c2a774ba Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 11:36:39 +0800 Subject: [PATCH 13/20] remove "+h" in bash commands in chroot (#4998) In the new cross-compilation approach, the $PATH in chroot does not contain '/tools/bin'. So "+h" is useless in chroot as the newly installed tools always replace the temporary counterpart at the same location. "+h" in chapter4/settingenviron.xml is kept deliberately. Currently $LFS/tools/bin only contains programs prefixed with "x86_64-lfs-linux-gnu-", and it's highly unlikely that any distro will ever ship a program named with such prefix. So it may seems that we can remove this "+h" as well. However, the situation may change in future and we can take this oppertunity to teach the advantage and disvantage of bash hash feature. --- chapter01/changelog.xml | 5 +++++ chapter04/settingenviron.xml | 8 +++++--- chapter07/chroot.xml | 7 ++----- chapter07/createfiles.xml | 9 +-------- chapter08/bash.xml | 8 +------- chapter08/revisedchroot.xml | 22 ---------------------- 6 files changed, 14 insertions(+), 45 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 155b12f50..217aad0d1 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,11 @@ 2022-02-04 + + [xry111] - Rename bash + +h directives in chroot. Fixes + #4998. + [xry111] - Update to man-db-2.10.0. Fixes #5002. diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml index 4c419d00a..b0c3441e5 100644 --- a/chapter04/settingenviron.xml +++ b/chapter04/settingenviron.xml @@ -64,9 +64,11 @@ EOF be used as soon as they are installed. By switching off the hash function, the shell will always search the PATH when a program is to be run. As such, the shell will find the newly compiled tools in - $LFS/tools as soon as they are - available without remembering a previous version of the same program in a - different location. + $LFS/tools/bin as soon as they are + available without remembering a previous version of the same program + provided by the host distro, in + /usr/bin or + /bin. diff --git a/chapter07/chroot.xml b/chapter07/chroot.xml index d018cb218..6404c0625 100644 --- a/chapter07/chroot.xml +++ b/chapter07/chroot.xml @@ -23,7 +23,7 @@ TERM="$TERM" \ PS1='(lfs chroot) \u:\w\$ ' \ PATH=/usr/bin:/usr/sbin \ - /bin/bash --login +h + /bin/bash --login The -i option given to the env command will clear all variables of the chroot environment. After that, only @@ -44,10 +44,7 @@ Notice that /tools/bin is not in the PATH. This means that the cross toolchain will no longer be - used in the chroot environment. This occurs when the shell does not - remember the locations of executed binaries—for this - reason, hashing is switched off by passing the +h option - to bash. + used in the chroot environment. Note that the bash prompt will say I have no name! This is normal because the diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 9c4f6ac54..009806b3f 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -184,14 +184,7 @@ install -o tester -d /home/tester files have been created, user name and group name resolution will now work: -exec /usr/bin/bash --login +h - - Note the use of the +h directive. This tells - bash not to use its internal path hashing. Without this - directive, bash would remember the paths to binaries it has - executed. To ensure the use of the newly compiled binaries as soon as they are - installed, the +h directive will be used for the duration - of this and the next chapter. +exec /usr/bin/bash --login The login, agetty, and init programs (and others) use a number of log diff --git a/chapter08/bash.xml b/chapter08/bash.xml index 36bbcf0d9..787882b59 100644 --- a/chapter08/bash.xml +++ b/chapter08/bash.xml @@ -94,13 +94,7 @@ EOF Run the newly compiled bash program (replacing the one that is currently being executed): - exec /usr/bin/bash --login +h - - - The parameters used make the bash - process an interactive login shell and continues to disable hashing so - that new programs are found as they become available. - + exec /usr/bin/bash --login diff --git a/chapter08/revisedchroot.xml b/chapter08/revisedchroot.xml index bc519d491..52c74a381 100644 --- a/chapter08/revisedchroot.xml +++ b/chapter08/revisedchroot.xml @@ -14,28 +14,6 @@ rm -rf /tmp/* - Now log out and reenter the chroot environment with an updated - chroot command. From now on, use this updated chroot command any time - you need to reenter the chroot environment after exiting: - -logout - -chroot "$LFS" /usr/bin/env -i \ - HOME=/root TERM="$TERM" \ - PS1='(lfs chroot) \u:\w\$ ' \ - PATH=/usr/bin:/usr/sbin \ - /usr/bin/bash --login - - Here the +h option is not used anymore, since - all the previous programs have been replaced: hashing is therefore - possible. - - If the virtual kernel file systems have been unmounted, either manually - or through a reboot, ensure that the virtual kernel file systems are mounted - when reentering the chroot. This process was explained in and . - There are also several files installed in the /usr/lib and /usr/libexec directories with a file name extension of .la. These are "libtool archive" files. As already said, they are only useful when linking with static From d79ba5b01ce191188c73e6793e2470c8f4143d79 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 5 Feb 2022 21:28:39 +0800 Subject: [PATCH 14/20] systemd network config: slightly reword about resolv.conf --- chapter09/networkd.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chapter09/networkd.xml b/chapter09/networkd.xml index 42c7dc730..ee9a34fbd 100644 --- a/chapter09/networkd.xml +++ b/chapter09/networkd.xml @@ -192,7 +192,12 @@ EOF When using systemd-resolved for DNS configuration, it creates the file - /run/systemd/resolve/resolv.conf. + /run/systemd/resolve/stub-resolv.conf. + And, if /etc/resolv.conf does not exist, it + will create it as a symlink to + /run/systemd/resolve/stub-resolv.conf so it's + unnecessary to create a /etc/resolv.conf + manually.