Commit 2834c647 authored by anonym's avatar anonym
Browse files

Unsafe Browser: bind-mount /etc/resolv-over-clearnet.conf.

... instead of copying it, so the chroot's DNS configuration stays
up-to-date in case we switch network or similar.

Will-fix: #7903
parent 68c763d1
......@@ -106,7 +106,7 @@ configure_chroot_browser "${CHROOT}" "${BROWSER_USER}" "${BROWSER_NAME}" \
# If /etc/resolv-over-clearnet.conf file is empty or doesn't exist, we
# have no clearnet DNS server.
if [ "$(stat --format=%s /etc/resolv-over-clearnet.conf || echo 0)" -gt 0 ]; then
cp /etc/resolv-over-clearnet.conf "${CHROOT}"/etc/resolv.conf
mount --bind /etc/resolv-over-clearnet.conf "${CHROOT}"/etc/resolv.conf
error "`gettext \"No DNS server was obtained through DHCP or manually configured in NetworkManager.\"`"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment