mirror of https://github.com/archzfs/archzfs
commit
c61e10899e
@ -1,12 +0,0 @@ |
||||
post_install() { |
||||
# https://bugs.archlinux.org/task/52901 |
||||
echo '>>> If DKMS fails to build ZFS, run this command:' |
||||
echo -e '# dkms install -m zfs/git -k <kernel_version>\n' |
||||
|
||||
echo 'If you are using ZFS on your root partition run this afterwards:' |
||||
echo '# mkinitcpio -P' |
||||
} |
||||
|
||||
post_upgrade() { |
||||
post_install "$1" |
||||
} |
@ -1,12 +0,0 @@ |
||||
post_install() { |
||||
# https://bugs.archlinux.org/task/52901 |
||||
echo '>>> If DKMS fails to build ZFS, run this command:' |
||||
echo -e '# dkms install -m zfs/0.7.5 -k <kernel_version>\n' |
||||
|
||||
echo 'If you are using ZFS on your root partition run this afterwards:' |
||||
echo '# mkinitcpio -P' |
||||
} |
||||
|
||||
post_upgrade() { |
||||
post_install "$1" |
||||
} |
@ -0,0 +1,12 @@ |
||||
[Trigger] |
||||
Operation = Install |
||||
Operation = Upgrade |
||||
Type = File |
||||
Target = usr/src/spl-*/dkms.conf |
||||
Target = usr/lib/modules/*/build/include/ |
||||
|
||||
[Action] |
||||
Description = Installing SPL |
||||
Depends = dkms |
||||
When = PostTransaction |
||||
Exec = /usr/lib/dkms/spl-dkms-alpm-hook |
@ -0,0 +1,28 @@ |
||||
#!/bin/bash |
||||
|
||||
# display what to run and run it quietly |
||||
run() { |
||||
echo "==> $*" |
||||
"$@" > /dev/null |
||||
} |
||||
|
||||
# compile spl for the given kernel |
||||
install_spl() { |
||||
local kernel="${1}" |
||||
for m in $(ls /usr/src); do |
||||
if [[ "${m}" =~ ^spl-(.*)$ ]]; then |
||||
run dkms install "spl/${BASH_REMATCH[1]}" -k "${kernel}" |
||||
fi |
||||
done |
||||
} |
||||
|
||||
# go through all kernels and run install_spl() |
||||
main() { |
||||
for kernel in $(ls /usr/lib/modules); do |
||||
if [[ -d "/usr/lib/modules/${kernel}/kernel" ]]; then |
||||
install_spl "${kernel}" |
||||
fi |
||||
done |
||||
} |
||||
|
||||
main |
@ -1,16 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
cat << EOF > ${zfs_dkms_pkgbuild_path}/zfs.install |
||||
post_install() { |
||||
# https://bugs.archlinux.org/task/52901 |
||||
echo '>>> If DKMS fails to build ZFS, run this command:' |
||||
echo -e '# dkms install -m zfs/${zfs_mod_ver} -k <kernel_version>\n' |
||||
|
||||
echo 'If you are using ZFS on your root partition run this afterwards:' |
||||
echo '# mkinitcpio -P' |
||||
} |
||||
|
||||
post_upgrade() { |
||||
post_install "\$1" |
||||
} |
||||
EOF |
Loading…
Reference in new issue