blob: 97de450e31d92166b108a3e46513bd5ba9b15459 (
plain)
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
|
#!/bin/bash
if [ "$1" == "32" ]; then
iso_tools="archiso32"
elif [ "$1" == "dual" ]; then
iso_tools="archiso-dual"
else
(
echo 'usage:'
echo " $0 32"
echo " $0 dual"
) | tee -a /tmp/error-log
exit 1
fi
set -e
[ -b /dev/loop0 ] || \
mknod /dev/loop0 b 7 0
pacman -Rs --noconfirm archiso32 || true
pacman -Rs --noconfirm archiso-dual || true
pacman -Syu --noconfirm "${iso_tools}"
cd /usr/share/archiso/configs/releng
rm --one-file-system -rf out work
mkdir out work
echo 'building iso ...'
./build.sh &> /root/${iso_tools}-log
echo '... done.'
pacman -Rs --noconfirm "${iso_tools}"
|