[lfs] branch trunk updated: systemd: network: Add a note about temporary static resolv.conf for the chroot environment
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <175294424408.7018.13132192152926155369@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository lfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 91a62d09e systemd: network: Add a note about temporary static resolv.conf for the chroot environment
91a62d09e is described below
commit 91a62d09e50b88ea45c308c78c2fdb534fb11e0c
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Jul 20 00:55:31 2025 +0800
systemd: network: Add a note about temporary static resolv.conf for the chroot environment
I still think this is obvious but it seems some people are surprised by
"unknown host" in chroot. Let's just note it before they propose a
change for every BLFS package of which the build process requires an
Internet connection.
---
chapter09/networkd.xml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/chapter09/networkd.xml b/chapter09/networkd.xml
index eb348ec1e..7c947a9eb 100644
--- a/chapter09/networkd.xml
+++ b/chapter09/networkd.xml
@@ -213,6 +213,21 @@ EOF</userinput></screen>
<filename>/run/systemd/resolve/stub-resolv.conf</filename>. So it's
unnecessary to create a <filename>/etc/resolv.conf</filename>
manually.</para>
+
+ <note>
+ <para>
+ If you want to use <command>systemd-resolved</command> for the
+ LFS system but you need to access the Internet in the chroot
+ environment (for example, for building a BLFS package of which the
+ build process requires an Internet connection), create the
+ <filename>/etc/resolv.conf</filename> file following the
+ static configuration below for the chroot environment so the name
+ resolution will work in the chroot environment. When you exit
+ the chroot environment, remove it so
+ <command>systemd-resolved</command> will create the symlink on
+ boot.
+ </para>
+ </note>
<!--Create a
symlink in <filename>/etc</filename> to use the generated file:</para>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page