mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
cli: Use recommended method for symlinking /etc/resolv.conf
This commit is contained in:
@@ -18,7 +18,8 @@ function post_debootstrap_tweaks() {
|
||||
if [[ -d "${SDCARD}"/etc/systemd/network ]]; then
|
||||
display_alert "Activating systemd-resolved" "Symlink resolv.conf to systemd-resolved's" "debug"
|
||||
run_host_command_logged rm -fv "${SDCARD}"/etc/resolv.conf
|
||||
run_host_command_logged ln -s /run/systemd/resolve/resolv.conf "${SDCARD}"/etc/resolv.conf
|
||||
# The method of symlinking to /run/systemd/resolve/stub-resolv.conf is recommended, see https://www.man7.org/linux/man-pages/man8/systemd-resolved.service.8.html
|
||||
run_host_command_logged ln -s /run/systemd/resolve/stub-resolv.conf "${SDCARD}"/etc/resolv.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user