Created
November 17, 2023 23:14
-
-
Save digitalsignalperson/edcefe85992cfa23b75edd498eca5011 to your computer and use it in GitHub Desktop.
example for how to install linux-rt-lts and zfs-dkms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great. Works for
linux-rpi
onaarch64
as well.