28 lines
642 B
Bash
Executable file
28 lines
642 B
Bash
Executable file
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
|
|
|
|
# install additional packages used by installer script
|
|
cat >> $build/$profile/packages.x86_64 <<EOF
|
|
pacman-contrib
|
|
dialog
|
|
EOF
|
|
|
|
exit 0
|
|
|
|
sudo mkarchiso -v -o "${out}" $build/$profile -w $work
|
|
|
|
echo "Successfully built arch installation image in ${out}"
|
|
sudo rm -r $work
|
|
rm -r $build
|