Remove depmod (is run by pacman automatically)

pull/254/head
Jan Houben 7 years ago
parent 0e93701f20
commit e93247c6ef
No known key found for this signature in database
GPG Key ID: 6866AADB974DD983
  1. 1
      src/spl/PKGBUILD.sh
  2. 20
      src/spl/spl.install.sh
  3. 14
      src/zfs/zfs.install.sh

@ -33,7 +33,6 @@ build() {
package_${spl_pkgname}() {
pkgdesc="Solaris Porting Layer kernel modules."
install=spl.install
provides=("spl")
groups=("${archzfs_package_group}")
conflicts=(${spl_conflicts})

@ -1,20 +0,0 @@
#!/bin/bash
cat << EOF > ${spl_pkgbuild_path}/spl.install
post_install() {
run_depmod
}
post_remove() {
run_depmod
}
post_upgrade() {
run_depmod
}
run_depmod() {
echo ">>> Updating SPL module dependencies"
depmod -a ${kernel_mod_path}
}
EOF

@ -1,21 +1,7 @@
#!/bin/bash
cat << EOF > ${zfs_pkgbuild_path}/zfs.install
post_install() {
check_initramfs
}
post_remove() {
check_initramfs 'remove'
}
post_upgrade() {
check_initramfs
}
check_initramfs() {
echo ">>> Updating ZFS module dependencies"
depmod -a ${kernel_mod_path}
MK_CONF=\$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo \$?);
if [[ \${MK_CONF} == '0' && \$1 == 'remove' ]]; then
echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"'

Loading…
Cancel
Save