Patch to handle /etc/resolv.conf is a symlink
In order to avoid the following error message i created a symlink of /run/NetworkManager/resolv.conf in /etc/resolv.conf
But when using the manjaro-chroot script it fails to get my internet connection to chroot and shows mount point is a symbolic link to nowhere so i modified the script to check if /etc/resolv.conf is a symbolic link and if it is a symbolic link then use /run/NetworkManager/resolv.conf instead .
And now the script also shows the internet is not connected so internet access will not be available in chroot .
sudo manjaro-chroot -a ✔
[sudo] password for thenujan:
==> Mounting (Ubuntu) [/dev/sda2]
--> mount: [/mnt]
your /etc/resolv.conf is a symlink so using /run/NetworkManager/resolv.conf instead
root@manjaro-minion:/#
sudo manjaro-chroot -a 127 ✘ 51s
==> Mounting (Ubuntu) [/dev/sda2]
--> mount: [/mnt]
Internet is not connected you will not have internet connectivity inside chroot
root@manjaro-minion:/#
code that i added to util-mount.sh checks if connected to the internet by pinging google and if the internet is not connected then it doesn't mount /etc/resolv.conf or the /run/NetworkManager/resolv.conf .
if it is connected then it checks if the /etc/resolv.conf is a symlink,if it isnt a symlink then it mounts that file if it is a symlink,it uses /run/NetworkManager/resolv.conf instead
code that I added to manjaro-chroot does the same described above but when using manjaro-chroot manually da260aa088.patch