summaryrefslogtreecommitdiff
path: root/scripts/create-archiso-zfs.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-11-11 08:35:57 -0600
committerCraig Jennings <c@cjennings.net>2024-11-11 08:36:11 -0600
commit6d3e5b049560cb1b9c1118a335b22b5aacdc5a6c (patch)
tree2363f2ed032b13c861d1abd9fcf6438f9b91e326 /scripts/create-archiso-zfs.sh
parentba912e8163bacd27ed85b993bee1084c71cd2cdf (diff)
moving things around
Diffstat (limited to 'scripts/create-archiso-zfs.sh')
-rw-r--r--scripts/create-archiso-zfs.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/create-archiso-zfs.sh b/scripts/create-archiso-zfs.sh
new file mode 100644
index 0000000..3028468
--- /dev/null
+++ b/scripts/create-archiso-zfs.sh
@@ -0,0 +1,33 @@
+#!/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-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
+pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
+
+pacman -Syu --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-headers
+archzfs-dkms
+zfs-utils' >> ~/iso/packages.x86_64
+
+# build the iso. this takes some time
+mkarchiso -vo ~/iso/out ~/iso
+
+
+