Don't rely on local dns
Could possibly be systemd-resolved or dnsmasq, etc. Broken on running pacstrap.
This commit is contained in:
parent
e5c82ad97f
commit
1dcf524b05
1 changed files with 6 additions and 1 deletions
5
vps2arch
5
vps2arch
|
@ -58,7 +58,12 @@ download_and_extract_bootstrap() {
|
|||
sha1sum -c sha1sums.txt || exit 1
|
||||
tar -xpzf "$filename"
|
||||
rm -f "$filename"
|
||||
|
||||
if grep -E '^nameserver\s+127\.' /etc/resolv.conf > /dev/null; then
|
||||
echo "nameserver 8.8.8.8" > "/root.$cpu_type/etc/resolv.conf"
|
||||
else
|
||||
cp -L /etc/resolv.conf "/root.$cpu_type/etc"
|
||||
fi
|
||||
|
||||
# Mount options taked from arch-chroot script
|
||||
mount -t proc proc -o nosuid,noexec,nodev "/root.$cpu_type/proc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue