From 8f451c73088c05fe511e2d992fe60997fb1e37d4 Mon Sep 17 00:00:00 2001
From: artoo <flower_of_life@gmx.net>
Date: Sun, 28 Sep 2014 20:00:08 +0200
Subject: [PATCH] mount resolv.conf to avoid build failure

---
 mkmanjaroroot.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mkmanjaroroot.in b/mkmanjaroroot.in
index 6c25a09..9cbc6be 100644
--- a/mkmanjaroroot.in
+++ b/mkmanjaroroot.in
@@ -158,6 +158,8 @@ chroot_mount(){
 	[ -e "${working_dir}/dev/pts" ] || mkdir "${working_dir}/dev/pts"
 	mount -t devpts devpts "${working_dir}/dev/pts"
 
+	mount -B /etc/resolv.conf "${working_dir}/etc/resolv.conf"
+
 	[ -e "${cache_dirs[0]}" ] || mkdir -p "${cache_dirs[0]}"
 	[ -e "${working_dir}/${cache_dirs[0]}" ] || mkdir -p "${working_dir}/${cache_dirs[0]}"
 	mount -B "${cache_dirs[0]}" "${working_dir}/${cache_dirs[0]}"
@@ -177,6 +179,7 @@ chroot_umount(){
 	umount "${working_dir}/dev/pts"
 	umount "${working_dir}/dev/shm"
 	umount "${working_dir}/dev"
+	umount "${working_dir}/etc/resolv.conf"
 	umount "${working_dir}/${cache_dirs[0]}"
 	[ -n "${host_mirror_path}" ] && umount "${working_dir}/${host_mirror_path}"
 }
-- 
GitLab