From 051d2ced7461758ae8b07d6e6dec304d2f682525 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 8 Mar 2018 00:48:04 +0000 Subject: rootbld: if networking is enabled, copy resolv.conf into the build root --- abuild.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 37810d8..c42d4e2 100644 --- a/abuild.in +++ b/abuild.in @@ -2139,6 +2139,10 @@ rootbld() { cp /etc/abuild.conf /etc/group /etc/passwd "$BUILD_ROOT/etc" cp /etc/apk/keys/* "$BUILD_ROOT/etc/apk/keys" + if options_has "net"; then + cp /etc/resolv.conf "$BUILD_ROOT/etc" + fi + local version="edge" buildhost="edge" gitref if gitref="$(expr "$(git symbolic-ref --short HEAD)" : '\([0-9]\+\(\.[0-9]\+\)*\)-')"; then version=v${gitref} -- cgit v1.2.3-70-g09d2