summaryrefslogtreecommitdiff
path: root/build-iso
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-01 14:40:25 +0200
committerErich Eckner <git@eckner.net>2017-06-01 14:40:25 +0200
commit29dd1d07cf415a63aa510a6eb4d27bf64a1f598e (patch)
treee2cbdcee055b0dcca553576e81066ff865ed9302 /build-iso
downloadbuild-arch-iso-29dd1d07cf415a63aa510a6eb4d27bf64a1f598e.tar.xz
Initial commit
Diffstat (limited to 'build-iso')
-rwxr-xr-xbuild-iso37
1 files changed, 37 insertions, 0 deletions
diff --git a/build-iso b/build-iso
new file mode 100755
index 0000000..97de450
--- /dev/null
+++ b/build-iso
@@ -0,0 +1,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}"