summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-03-08 00:48:04 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-08 00:48:04 +0000
commit051d2ced7461758ae8b07d6e6dec304d2f682525 (patch)
treeb946612fd5e157abc2e29a0b971f6b4b7aa82a41 /abuild.in
parentf1dfa5542882dfa0493772ce8c11d50858e1131f (diff)
downloadabuild-051d2ced7461758ae8b07d6e6dec304d2f682525.tar.gz
abuild-051d2ced7461758ae8b07d6e6dec304d2f682525.tar.bz2
abuild-051d2ced7461758ae8b07d6e6dec304d2f682525.tar.xz
abuild-051d2ced7461758ae8b07d6e6dec304d2f682525.zip
rootbld: if networking is enabled, copy resolv.conf into the build root
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in4
1 files changed, 4 insertions, 0 deletions
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}