diff options
| author | Christian Hesse <mail@eworm.de> | 2021-01-18 11:07:14 +0100 |
|---|---|---|
| committer | David Runge <dvzrv@archlinux.org> | 2021-01-26 21:59:01 +0000 |
| commit | a2c8dd31731916600c5e4eb6b7d08a8ff9e287d3 (patch) | |
| tree | 3497d56eab2867479ce830bdf075f11b94cd0778 | |
| parent | b30d1cad9bdf925b976b5d038a3ad741a70267c6 (diff) | |
| download | archiso-a2c8dd31731916600c5e4eb6b7d08a8ff9e287d3.tar.gz archiso-a2c8dd31731916600c5e4eb6b7d08a8ff9e287d3.tar.bz2 | |
archiso_pxe_common: remove resolv.conf before copy
Booting via PXE we want to keep our DNS configuration. So remove
/etc/resolv.conf in new root before copying the current file.
Without this systemd-resolved fallback nameservers are used and we see an
error message when the root ships a symbolic link to systemd-resolved's
stub-resolv.conf:
cp: not writing through dangling symlink '/new_root/etc/resolv.conf'
| -rw-r--r-- | archiso/initcpio/hooks/archiso_pxe_common | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index 2e567ec..a47b6c0 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -73,6 +73,7 @@ run_latehook () { ip link set "${netdev}" down done elif [ "${copy_resolvconf}" != "n" ] && [ -f /etc/resolv.conf ]; then + rm -f /new_root/etc/resolv.conf cp /etc/resolv.conf /new_root/etc/resolv.conf fi fi |
