Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/prepare_stage4_repo.sh
blob: dbad677acbf26e6d1712da1f0217ff677a2b681b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

# shellcheck source=./default.conf
. "./default.conf"

# prepare the i486-build for stage 4

if test ! -d $STAGE4_CHROOT; then
	mkdir $STAGE4_CHROOT
	mkdir -p $STAGE4_PACKAGES
fi

if test ! -d $STAGE4_BUILD; then

	# prepare the build enviroment
	
	mkdir $STAGE4_BUILD
	cd $STAGE4_BUILD || exit 1

	# TODO: actually build a STAGE4 hdd from the build artifacts of
	# stage 3, for now we just copy the vm from stage2 after building
	# and installing all packages from stage 3 and use it as new build
	# machine.
	
	echo "Prepared the stage 4 build environment."
fi

echo "Stage 4 ready."