Loading PKGBUILD +11 −7 Original line number Diff line number Diff line # Maintainer: Sébastien Luttringer <seblu@seblu.net> pkgname=(kernel-install-hook kernel-install-compat kernel-install-grub) pkgver=2019.03.07 pkgver=2024.10.07 pkgrel=1 arch=('any') url='https://git.seblu.net/archlinux/kernel-install-poc' Loading @@ -12,12 +12,12 @@ source=('hook.sh' '50-mkinitcpio-compat.install' '90-loaderentry-compat.install' '95-grub-update.install') md5sums=('036439d45eb9384296e46dabec8874fc' '8e60d4df3f8386a8972b5a1b25e1b680' '44a72eae076d1c208ffee49a07ce7e09' '78f5fe7e8881ff261466fb074d1e7c79' '1c1b5ad42ad0a6ccae278c57deb92299' 'cc4481b32207b8f4066971ccdaa20174') sha224sums=('01cff51f05c8b381117a564569a68df8e4a15fbc97a7804c5f0bb99f' 'ae0813a7f42a11efb02c03c7ab80671ff756b17109f4481fbe756bcb' '32fbc4e69a3c9a6d917aed2f9e3b7a05b63a1bec8bd5002e6067b731' 'caaec9eeb5d6616d2e9fcbfa4255d0fcddd7d43af19e95319a683889' 'f7aa11f7f92713734919497c5e8aa53c4786e1676bb9518c1123d56c' 'c94240e8716f39361ad0249354cc1bb3860c7b1d898589d26bdb4755') package_kernel-install-hook() { pkgdesc='kernel-install hook to run when install/remove kernels' Loading @@ -29,6 +29,10 @@ package_kernel-install-hook() { install -m644 hook.install "$pkgdir"/usr/share/libalpm/hooks/90-kernel-install.hook install -m644 hook.remove "$pkgdir"/usr/share/libalpm/hooks/90-kernel-remove.hook install -Dm755 hook.sh "$pkgdir"/usr/bin/kernel-install-hook # disable mkinitcpio hooks which conflicts with kernel-install install -dm755 "$pkgdir"/etc/pacman.d/hooks ln -s /dev/null "$pkgdir"/etc/pacman.d/hooks/60-mkinitcpio-remove.hook ln -s /dev/null "$pkgdir"/etc/pacman.d/hooks/90-mkinitcpio-install.hook } package_kernel-install-compat() { Loading hook.install +1 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ Operation = Install Operation = Upgrade Type = File Target = usr/lib/kernel/vmlinuz-* Target = usr/lib/modules/*/vmlinuz [Action] Description = kernel-install add Loading hook.remove +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ Operation = Remove Type = File Target = usr/lib/kernel/vmlinuz-* Target = usr/lib/modules/*/vmlinuz [Action] Description = kernel-install remove Loading Loading
PKGBUILD +11 −7 Original line number Diff line number Diff line # Maintainer: Sébastien Luttringer <seblu@seblu.net> pkgname=(kernel-install-hook kernel-install-compat kernel-install-grub) pkgver=2019.03.07 pkgver=2024.10.07 pkgrel=1 arch=('any') url='https://git.seblu.net/archlinux/kernel-install-poc' Loading @@ -12,12 +12,12 @@ source=('hook.sh' '50-mkinitcpio-compat.install' '90-loaderentry-compat.install' '95-grub-update.install') md5sums=('036439d45eb9384296e46dabec8874fc' '8e60d4df3f8386a8972b5a1b25e1b680' '44a72eae076d1c208ffee49a07ce7e09' '78f5fe7e8881ff261466fb074d1e7c79' '1c1b5ad42ad0a6ccae278c57deb92299' 'cc4481b32207b8f4066971ccdaa20174') sha224sums=('01cff51f05c8b381117a564569a68df8e4a15fbc97a7804c5f0bb99f' 'ae0813a7f42a11efb02c03c7ab80671ff756b17109f4481fbe756bcb' '32fbc4e69a3c9a6d917aed2f9e3b7a05b63a1bec8bd5002e6067b731' 'caaec9eeb5d6616d2e9fcbfa4255d0fcddd7d43af19e95319a683889' 'f7aa11f7f92713734919497c5e8aa53c4786e1676bb9518c1123d56c' 'c94240e8716f39361ad0249354cc1bb3860c7b1d898589d26bdb4755') package_kernel-install-hook() { pkgdesc='kernel-install hook to run when install/remove kernels' Loading @@ -29,6 +29,10 @@ package_kernel-install-hook() { install -m644 hook.install "$pkgdir"/usr/share/libalpm/hooks/90-kernel-install.hook install -m644 hook.remove "$pkgdir"/usr/share/libalpm/hooks/90-kernel-remove.hook install -Dm755 hook.sh "$pkgdir"/usr/bin/kernel-install-hook # disable mkinitcpio hooks which conflicts with kernel-install install -dm755 "$pkgdir"/etc/pacman.d/hooks ln -s /dev/null "$pkgdir"/etc/pacman.d/hooks/60-mkinitcpio-remove.hook ln -s /dev/null "$pkgdir"/etc/pacman.d/hooks/90-mkinitcpio-install.hook } package_kernel-install-compat() { Loading
hook.install +1 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ Operation = Install Operation = Upgrade Type = File Target = usr/lib/kernel/vmlinuz-* Target = usr/lib/modules/*/vmlinuz [Action] Description = kernel-install add Loading
hook.remove +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ Operation = Remove Type = File Target = usr/lib/kernel/vmlinuz-* Target = usr/lib/modules/*/vmlinuz [Action] Description = kernel-install remove Loading