32 lines
878 B
Bash
32 lines
878 B
Bash
#!/bin/sh
|
|
|
|
#if [[ -z $1 || -z $2 ]]; then
|
|
if [[ -z $1 ]]; then
|
|
echo -e "ERREUR : paramétre(s) manquant(s) "
|
|
echo -e "Passer en paramétre : "
|
|
echo -e "1. Nom du profil (ex : ckubeos)"
|
|
# echo -e "2. Version de l'Alpine (forcé à edge pour le moment)"
|
|
echo ""
|
|
exit 1
|
|
else
|
|
PROFILENAME=$1
|
|
ALPINE_VERSION=$2
|
|
|
|
# Create output dir
|
|
if test ! -d ~/iso; then
|
|
echo "Creating output dir"
|
|
mkdir -p ~/iso
|
|
fi
|
|
|
|
echo "ISO generation"
|
|
cd ~/aports/scripts/
|
|
sh mkimage.sh --tag $ALPINE_VERSION \
|
|
--outdir /home/build/iso \
|
|
--arch x86_64 \
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/v$ALPINE_VERSION/main \
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/v$ALPINE_VERSION/community \
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
|
--profile $PROFILENAME
|
|
fi
|