diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-03-08 00:48:04 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-03-08 00:48:04 +0000 |
commit | 051d2ced7461758ae8b07d6e6dec304d2f682525 (patch) | |
tree | b946612fd5e157abc2e29a0b971f6b4b7aa82a41 /abuild.in | |
parent | f1dfa5542882dfa0493772ce8c11d50858e1131f (diff) | |
download | abuild-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.in | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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} |