Skip to content

Instantly share code, notes, and snippets.

@digitalsignalperson
Created November 17, 2023 23:14
Show Gist options
  • Save digitalsignalperson/edcefe85992cfa23b75edd498eca5011 to your computer and use it in GitHub Desktop.
Save digitalsignalperson/edcefe85992cfa23b75edd498eca5011 to your computer and use it in GitHub Desktop.
example for how to install linux-rt-lts and zfs-dkms
if ! grep -qF "[archzfs]" /etc/pacman.conf; then
cat >> /etc/pacman.conf << 'EOF'
[archzfs]
Server = http://archzfs.com/$repo/x86_64
Server = http://mirror.sum7.eu/archlinux/archzfs/$repo/x86_64
Server = https://mirror.biocrafting.net/archlinux/archzfs/$repo/x86_64
EOF
fi
pacman-key -r F75D9D76
pacman-key --lsign-key F75D9D76
cat > /usr/share/libalpm/hooks/69-zfs-dkms.hook << 'EOF'
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = zfs-dkms
[Action]
Description = GPL-ify zfs-dkms
When = PostTransaction
Exec = /bin/sh -c "sed -i 's/CDDL/GPL/g' $(pacman -Ql zfs-dkms | grep META | cut -d' ' -f2)"
EOF
# https://github.com/openzfs/zfs/issues/15540
pacman -Syyu --noconfirm \
zfs-dkms zfs-utils \
linux-rt-lts linux-rt-lts-headers
@tsjk
Copy link

tsjk commented Jan 22, 2024

This is great. Works for linux-rpi on aarch64 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment