48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
|
#!/bin/bash
|
||
|
echo "========================="
|
||
|
echo "| BASE VOID x86_64 |"
|
||
|
echo " ------------------------"
|
||
|
CURRENT=https://alpha.de.repo.voidlinux.org/current
|
||
|
MUTILIB=https://alpha.de.repo.voidlinux.org/current
|
||
|
#NONFREE=https://repo.voidlinux.eu/current/nonfree
|
||
|
FILENAME="void-live-unofficial"
|
||
|
DATE=$(date +%Y%m%d)
|
||
|
KERNEL=$(uname -r)
|
||
|
BUILDDIR="$(pwd)/build"
|
||
|
|
||
|
#shift $((OPTIND - 1))
|
||
|
|
||
|
#: ${ARCH:=$(uname -m)}
|
||
|
|
||
|
sudo ./mklive.sh \
|
||
|
-a x86_64 \
|
||
|
-r ${CURRENT} \
|
||
|
-r ${MUTILIB} \
|
||
|
-p "$(grep '^[^#].' base-x64.packages)" \
|
||
|
-T "Void Linux Unofficial" \
|
||
|
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
|
||
|
|
||
|
|
||
|
if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then
|
||
|
echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!"
|
||
|
echo "ERR=1" > error-status.txt
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
if [ ! -f sha256sums.txt ];then
|
||
|
echo "Missing checksum file, aborting!"
|
||
|
echo "ERR=1" > error-status.txt
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ ! -d "${BUILDDIR}" ];then
|
||
|
mkdir ${BUILDDIR}
|
||
|
fi
|
||
|
|
||
|
mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build
|