33 lines
792 B
Bash
Executable file
33 lines
792 B
Bash
Executable file
set -e
|
|
|
|
build="/tmp/archiso-profile-do-not-delete"
|
|
out="built-isos"
|
|
profile="releng"
|
|
work="/tmp/archiso-tmp"
|
|
|
|
mkdir -p $build
|
|
mkdir -p $out
|
|
|
|
cp -r /usr/share/archiso/configs/$profile/ $build
|
|
cp installer/install-arch $build/$profile/airootfs/root/
|
|
|
|
# replace some files of releng profile wtih custom ones
|
|
# e.g. a custom pacman.conf
|
|
cp -r archiso/profile/. $build/$profile
|
|
|
|
# add custom repository to pacman.conf
|
|
cat >> $build/$profile/pacman.conf <<EOF
|
|
[mkessler-arch]
|
|
Server = https://mkessler-arch.maximilian-kessler.de
|
|
EOF
|
|
|
|
# install additional packages used by installer script
|
|
cat >> $build/$profile/packages.x86_64 <<EOF
|
|
pacman-contrib
|
|
dialog
|
|
mkessler-signing-key
|
|
EOF
|
|
|
|
sudo mkarchiso -v -w $work -o "${out}" $build/$profile
|
|
|
|
echo "Successfully built arch installation image in ${out}"
|