summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-01-27 20:10:47 +0100
committerxengineering <me@xengineering.eu>2026-01-27 20:10:47 +0100
commit1b9f78e959b7a4e7dd7ed57fec83ad523d2034ff (patch)
tree295dd9eaa28981c2c74478b8dd1689a46ce8f8f5
parent865086a8b7bbfc34b0015e497a99cee589441cb9 (diff)
downloadwebsite-main.tar
website-main.tar.zst
website-main.zip
articles: arch-installation: Fix /etc/resolv.confHEADmain
This was not set because it cannot be set in a chroot (see Arch Wiki about [systemd-resolved][1] section 2.1 DNS). [1]: https://wiki.archlinux.org/title/Systemd-resolved
-rw-r--r--content/articles/arch-installation.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/articles/arch-installation.md b/content/articles/arch-installation.md
index ae54ef3..53d776f 100644
--- a/content/articles/arch-installation.md
+++ b/content/articles/arch-installation.md
@@ -150,6 +150,13 @@ to describe which filesystems should be mounted where during boot.
genfstab -L /mnt | tee /mnt/etc/fstab
```
+Before switching to the new system one setting regarding name resolution needs
+to be done from outside.
+
+```
+ln -sf ../run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
+```
+
Without actual booting a change root (`chroot`) command is used to use the new
system already.
@@ -176,7 +183,6 @@ DHCP=yes' > /etc/systemd/network/auto.network
systemctl enable nftables.service
systemctl enable systemd-networkd.service
systemctl enable systemd-resolved.service
-ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
systemctl enable iwd.service
systemctl enable systemd-timesyncd.service
```