blob: 30284688f92ffed1a7e3c078a2ea7dc7b45e4fde (
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
|
#!/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
|