summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig <c@cjennings.net>2024-11-09 15:17:47 -0600
committerCraig <c@cjennings.net>2024-11-09 15:17:47 -0600
commit942535fc98079bc1e29467a42f40a754632eda1f (patch)
tree68f4518d96cc9a15d04b1bbff8d26db4837c2519
parent17f0e5ba7cf911737e46afb49880918feedcc27a (diff)
initial version of arch iso build script with zfs modules
-rw-r--r--iso/create-archiso-zfs.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/iso/create-archiso-zfs.sh b/iso/create-archiso-zfs.sh
new file mode 100644
index 0000000..cb12ac3
--- /dev/null
+++ b/iso/create-archiso-zfs.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+#
+# create-archiso-zfs.sh
+# Craig Jennings <c@cjennings.net>
+# Creates an arch linux iso with zfs support.
+# This script must be run as root.
+
+pacman -Sy --noconfirm archiso
+mkdir ~/iso
+
+# copies the releng profile
+cp -r /usr/share/archiso/configs/releng/* ~/iso
+
+# add the archzfs repository to the pacman configuration
+echo -e '
+[archzfs]
+Server = https://archzfs.com/$repo/$arch
+SigLevel = Optional TrustAll' >> ~/iso/pacman.conf
+
+# tell archiso to install the zfs dkms module and zfs utils to resulting iso
+echo -e '
+linux-lts-headers
+linux-headers
+archzfs-dkms
+zfs-utils' >> ~/iso/packages.x86_64
+
+# build the iso. this takes some time
+mkarchiso -vo ~/iso/out ~/iso
+
+
+