You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iso/build_iso.sh

31 lines
882 B
Bash

rm -fv *.iso
prof="crystal"
if [[ "$1" == "" ]]; then
printf "cli/gui : "
read MODE
else
MODE="$1"
fi
if [[ "$MODE" == "cli" ]]; then
sed -i 's/gnome/#gnome/g' ${prof}/packages.x86_64
sed -i 's/mesa/#mesa/g' ${prof}/packages.x86_64
sed -i 's/systemctl/#systemctl/g' chrooted.sh
fi
WORKDIR=$(mktemp -d)
# idk if this would've happened automatically?
cp ${prof}/pacman.conf ${prof}/airootfs/etc/.
cp ${prof}/packages.x86_64 ${prof}/airootfs/etc/packages.x86_64
cp /etc/pacman.d/mirrorlist ${prof}/airootfs/etc/pacman.d/.
echo "Built on $(date +"%D @ %T EST")" > ${prof}/airootfs/etc/buildstamp
time sudo ./mkarchiso -v -w $WORKDIR -o . ${prof}
sudo rm -rf $WORKDIR
if [[ "$MODE" == "cli" ]]; then
sed -i 's/#gnome/gnome/g' ${prof}/packages.x86_64
sed -i 's/#mesa/mesa/g' ${prof}/packages.x86_64
sed -i 's/#systemctl/systemctl/g' chrooted.sh
fi