Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/prepare_stage3.sh
blob: 2db5ece4a94fa9405f5f97f7685a48d787571640 (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
29
30
31
#!/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.

	# systemd-journal group for systemd
	getent group systemd-journal >/dev/null || groupadd -g 190 systemd-journal
	
	echo "Prepared the stage 3 build environment."
fi

echo "Stage 3 ready."