index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-15 11:15:58 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-15 11:15:58 +0100 |
commit | 80afdd710922f82171bb9250c33dca18475f42ca (patch) | |
tree | 2c604fc7cd126de2d039021e98356c1344e88a5f /prepare_stage3_repo.sh | |
parent | 69f68ac358363ac31110fa1a1956539be60af313 (diff) |
-rwxr-xr-x | prepare_stage3_repo.sh | 28 |
diff --git a/prepare_stage3_repo.sh b/prepare_stage3_repo.sh new file mode 100755 index 0000000..7b4fdcb --- /dev/null +++ b/prepare_stage3_repo.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# shellcheck source=./default.conf +. "./default.conf" + +# prepare the i486-build for stage 3 + +if test ! -d $STAGE3_CHROOT; then + mkdir $STAGE3_CHROOT + mkdir -p $STAGE3_PACKAGES +fi + +if test ! -d $STAGE3_BUILD; then + + # prepare the build enviroment + + mkdir $STAGE3_BUILD + cd $STAGE3_BUILD || exit 1 + + # TODO: actually build a stage2 hdd from the build artifacts of + # stage 2, for now we just copy the vm from stage1 after building + # and installing all packages from stage 2 and use it as new build + # machine. + + echo "Prepared the stage 3 build environment." +fi + +echo "Stage 3 ready." |