rootbld: if networking is enabled, copy resolv.conf into the build root

This commit is contained in:
William Pitcock 2018-03-08 00:48:04 +00:00
parent f1dfa55428
commit 051d2ced74
1 changed files with 4 additions and 0 deletions

View File

@ -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}