feat: check /usr/lib/modules for modification

This commit is contained in:
chris 2020-04-16 15:16:45 +02:00
parent f554a025e1
commit 975243c51a
3 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,12 @@
pkgbase = check-boot-hook pkgbase = check-boot-hook
pkgdesc = Cancel package actions if /boot is not mounted pkgdesc = Cancel package actions if /boot is not mounted
pkgver = 0.0.1 pkgver = 0.0.2
pkgrel = 1 pkgrel = 1
url = https://git.zknt.org/chris/check-boot-hook url = https://git.zknt.org/chris/check-boot-hook
arch = any arch = any
license = MIT license = MIT
source = 95-check-boot.hook source = 95-check-boot.hook
sha256sums = a41f0f1c9715a3f9894dc39221ebae6e666b74e24c2db8586bbcf426be694f04 sha256sums = 6fc25b4b1dd3c1e3cf78640b616975aefc2f66faf5faa82a39cbc8c40c7762bd
pkgname = check-boot-hook pkgname = check-boot-hook

View File

@ -5,6 +5,7 @@ Operation = Remove
Type = File Type = File
Target = boot/* Target = boot/*
Target = usr/lib/initcpio/* Target = usr/lib/initcpio/*
Target = usr/lib/modules/*
[Action] [Action]
When = PreTransaction When = PreTransaction

View File

@ -1,13 +1,13 @@
# Maintainer: tercean <cg@zknt.org> # Maintainer: tercean <cg@zknt.org>
pkgname=check-boot-hook pkgname=check-boot-hook
pkgver=0.0.1 pkgver=0.0.2
pkgrel=1 pkgrel=1
pkgdesc="Cancel package actions if /boot is not mounted" pkgdesc="Cancel package actions if /boot is not mounted"
arch=('any') arch=('any')
url="https://git.zknt.org/chris/check-boot-hook" url="https://git.zknt.org/chris/check-boot-hook"
license=('MIT') license=('MIT')
source=("95-check-boot.hook") source=("95-check-boot.hook")
sha256sums=('a41f0f1c9715a3f9894dc39221ebae6e666b74e24c2db8586bbcf426be694f04') sha256sums=('6fc25b4b1dd3c1e3cf78640b616975aefc2f66faf5faa82a39cbc8c40c7762bd')
package() { package() {
install -Dm644 '95-check-boot.hook' "${pkgdir}/usr/share/libalpm/hooks/95-check-boot.hook" install -Dm644 '95-check-boot.hook' "${pkgdir}/usr/share/libalpm/hooks/95-check-boot.hook"