From 975243c51a95b591845afcd82e592052cd67fdfd Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 16 Apr 2020 15:16:45 +0200 Subject: [PATCH] feat: check /usr/lib/modules for modification --- .SRCINFO | 4 ++-- 95-check-boot.hook | 1 + PKGBUILD | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index dfacec7..e2d5b9d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,12 +1,12 @@ pkgbase = check-boot-hook pkgdesc = Cancel package actions if /boot is not mounted - pkgver = 0.0.1 + pkgver = 0.0.2 pkgrel = 1 url = https://git.zknt.org/chris/check-boot-hook arch = any license = MIT source = 95-check-boot.hook - sha256sums = a41f0f1c9715a3f9894dc39221ebae6e666b74e24c2db8586bbcf426be694f04 + sha256sums = 6fc25b4b1dd3c1e3cf78640b616975aefc2f66faf5faa82a39cbc8c40c7762bd pkgname = check-boot-hook diff --git a/95-check-boot.hook b/95-check-boot.hook index 60a458f..ff81cbb 100644 --- a/95-check-boot.hook +++ b/95-check-boot.hook @@ -5,6 +5,7 @@ Operation = Remove Type = File Target = boot/* Target = usr/lib/initcpio/* +Target = usr/lib/modules/* [Action] When = PreTransaction diff --git a/PKGBUILD b/PKGBUILD index c595ee0..2da0423 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,13 +1,13 @@ # Maintainer: tercean pkgname=check-boot-hook -pkgver=0.0.1 +pkgver=0.0.2 pkgrel=1 pkgdesc="Cancel package actions if /boot is not mounted" arch=('any') url="https://git.zknt.org/chris/check-boot-hook" license=('MIT') source=("95-check-boot.hook") -sha256sums=('a41f0f1c9715a3f9894dc39221ebae6e666b74e24c2db8586bbcf426be694f04') +sha256sums=('6fc25b4b1dd3c1e3cf78640b616975aefc2f66faf5faa82a39cbc8c40c7762bd') package() { install -Dm644 '95-check-boot.hook' "${pkgdir}/usr/share/libalpm/hooks/95-check-boot.hook"