2022-07-26 00:07:28 +02:00
|
|
|
set -e
|
|
|
|
|
2022-07-29 12:11:02 +02:00
|
|
|
build="/tmp/archiso-profile-do-not-delete"
|
2022-07-25 15:57:25 +02:00
|
|
|
out="built-isos"
|
|
|
|
profile="releng"
|
|
|
|
work="/tmp/archiso-tmp"
|
|
|
|
|
|
|
|
mkdir -p $build
|
|
|
|
mkdir -p $out
|
|
|
|
|
|
|
|
cp -r /usr/share/archiso/configs/$profile/ $build
|
2023-10-14 20:25:29 +02:00
|
|
|
cp install-arch $build/$profile/airootfs/root/
|
2022-07-25 15:57:25 +02:00
|
|
|
|
|
|
|
# replace some files of releng profile wtih custom ones
|
|
|
|
# e.g. a custom pacman.conf
|
2023-10-14 20:25:29 +02:00
|
|
|
cp -r profile/. $build/$profile
|
2022-07-25 15:57:25 +02:00
|
|
|
|
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-12-02 02:32:15 +01:00
|
|
|
lynx
|
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}"
|