diff options
author | Kyle K <kylek389@gmail.com> | 2020-05-12 23:46:20 -0500 |
---|---|---|
committer | Kyle K <kylek389@gmail.com> | 2020-05-12 23:46:20 -0500 |
commit | a2df918a8991857fc867fa7de8499da86b824b83 (patch) | |
tree | 426d606108d95844d510d6f5a46bd2a91cdb3ba5 /gentoox_build.sh | |
parent | 6146a5192e050e87cae3f7780e9085178939a501 (diff) | |
download | gentoox-a2df918a8991857fc867fa7de8499da86b824b83.tar.gz gentoox-a2df918a8991857fc867fa7de8499da86b824b83.tar.bz2 gentoox-a2df918a8991857fc867fa7de8499da86b824b83.zip |
adjust gentoox_build.sh to allow building GentooX from provided stage3-amd64-20200504.graphite.tar.xz stage3 tarball
Diffstat (limited to 'gentoox_build.sh')
-rwxr-xr-x | gentoox_build.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gentoox_build.sh b/gentoox_build.sh index b7ff564..b6e6d2c 100755 --- a/gentoox_build.sh +++ b/gentoox_build.sh @@ -23,6 +23,7 @@ username=gentoox userpassword=gentoox builddate="$(date +%Y%m%d).graphite" builddir="build-$(date +%Y%m%d)" +stage3tarball="stage3-amd64-20200504.graphite.tar.xz" KERNEL_CONFIG_DIFF="0001-kernel-config-cfs-r4.patch" binpkgs="$(pwd)/var/cache/binpkgs/" @@ -44,11 +45,15 @@ if [[ ! -f 'image/etc/gentoo-release' ]]; then mkdir image/ cd image/ - cp -v /var/tmp/catalyst/builds/default/stage3-amd64-$builddate.tar.xz . + if [[ -f "../../$stage3tarball" ]]; then + cp -v "../../$stage3tarball" . + else + cp -v /var/tmp/catalyst/builds/default/stage3-amd64-$builddate.tar.xz . + fi if [[ $? -ne 0 ]]; then echo "you need to build stage3 tarball that has gcc graphite support first via build-stage3.sh"; exit 1; fi echo 'extracting stage3 tarball...' - tar xJpf /var/tmp/catalyst/builds/default/stage3-amd64-$builddate.tar.xz --xattrs --numeric-owner + tar xJpf stage3* --xattrs --numeric-owner rm -f stage3* cp ../../$KERNEL_CONFIG_DIFF usr/src |