2022-07-26 00:07:28 +02:00
|
|
|
set -e
|
|
|
|
|
2022-07-25 15:57:25 +02:00
|
|
|
build="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
|
|
|
|
|
2022-07-26 00:07:28 +02:00
|
|
|
# add custom repository to pacman.conf
|
|
|
|
cat >> $build/$profile/pacman.conf <<EOF
|
|
|
|
[mkessler-arch]
|
|
|
|
Server = https://mkessler-arch.maximilian-kessler.de
|
|
|
|
EOF
|
|
|
|
|
2022-07-25 15:57:25 +02:00
|
|
|
# install additional packages used by installer script
|
|
|
|
cat >> $build/$profile/packages.x86_64 <<EOF
|
|
|
|
pacman-contrib
|
|
|
|
dialog
|
2022-07-25 21:53:53 +02:00
|
|
|
mkessler-signing-key
|
2022-07-25 15:57:25 +02:00
|
|
|
EOF
|
|
|
|
|
2022-07-25 16:11:31 +02:00
|
|
|
sudo mkarchiso -v -w $work -o "${out}" $build/$profile
|
2022-07-25 15:57:25 +02:00
|
|
|
|
|
|
|
echo "Successfully built arch installation image in ${out}"
|
|
|
|
sudo rm -r $work
|
|
|
|
rm -r $build
|