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.
23 lines
464 B
Bash
23 lines
464 B
Bash
#!/usr/bin/env bash
|
|
rm -fv *.iso
|
|
|
|
if [[ "$1" == "" ]]; then
|
|
WORKDIR=$(mktemp -d)
|
|
else
|
|
WORKDIR="$1"
|
|
if [[ ! -d "$WORKDIR" ]]; then
|
|
mkdir -p "$WORKDIR"
|
|
fi
|
|
fi
|
|
|
|
# Copy pacman config to the airootfs
|
|
cp crystal/pacman.conf crystal/.
|
|
cp crystal/packages.x86_64 crystal/.
|
|
|
|
echo "Built on $(date +"%D @ %T EST")" > crystal/airootfs/etc/buildstamp
|
|
|
|
time sudo ./mkarchiso -v -w $WORKDIR -o . crystal
|
|
|
|
sudo rm -rf $WORKDIR
|
|
sudo chown $USER:$USER *.iso
|