This repository was archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlxde-x64.sh
More file actions
executable file
·54 lines (45 loc) · 1.41 KB
/
lxde-x64.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
DESKTOP="lxde"
echo "========================="
echo "| ${DESKTOP} VOID x86_64 |"
echo " ------------------------"
CURRENT=https://alpha.de.repo.voidlinux.org/current
MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib
NONFREE=https://alpha.de.repo.voidlinux.org/current/nonfree
FILENAME="void-live-${DESKTOP}-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} \
-r ${NONFREE} \
-p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \
-T "Void Linux ${DESKTOP} Unofficial" \
-o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso
if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then
retries=${1}
until [[ $retries -gt 2 ]];do
echo "Retrying build ${retries}"
((retries++))
bash ${0} ${retries}
done
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
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