mkessler-archiso/archiso/build_archiso.sh

34 lines
792 B
Bash
Raw Normal View History

2022-07-26 00:07:28 +02:00
set -e
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
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}"