1
0
mirror of https://github.com/bin456789/reinstall.git synced 2025-06-24 05:09:52 +00:00

core: 修复 initrd 阶段没写入 ipv6 dns

fixes 
This commit is contained in:
bin456789 2024-08-19 11:08:07 +08:00
parent f82c9ad784
commit ae012a79f1
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

@ -292,7 +292,7 @@ if $ipv4_has_internet && ! { [ -e /etc/resolv.conf ] && grep -F '.' /etc/resolv.
echo "nameserver $ipv4_dns1" >>/etc/resolv.conf echo "nameserver $ipv4_dns1" >>/etc/resolv.conf
echo "nameserver $ipv4_dns2" >>/etc/resolv.conf echo "nameserver $ipv4_dns2" >>/etc/resolv.conf
fi fi
if $ipv4_has_internet && ! { [ -e /etc/resolv.conf ] && grep -F ':' /etc/resolv.conf; }; then if $ipv6_has_internet && ! { [ -e /etc/resolv.conf ] && grep -F ':' /etc/resolv.conf; }; then
echo "nameserver $ipv6_dns1" >>/etc/resolv.conf echo "nameserver $ipv6_dns1" >>/etc/resolv.conf
echo "nameserver $ipv6_dns2" >>/etc/resolv.conf echo "nameserver $ipv6_dns2" >>/etc/resolv.conf
fi fi