From 9a0dee86fc59eb94982ba654138e6661b38e6e41 Mon Sep 17 00:00:00 2001 From: Josip Ponjavic Date: Sat, 12 Oct 2019 00:08:07 +0200 Subject: [PATCH] 5.3.6-2 (clr 5.3.1-843) remove initramfs remove hook file --- .SRCINFO | 4 +--- 99-linux.hook | 9 --------- PKGBUILD | 6 +----- linux.install | 5 +++++ 4 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 99-linux.hook diff --git a/.SRCINFO b/.SRCINFO index 9d7b7b0..9b1c6b0 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = linux-clear pkgver = 5.3.6 - pkgrel = 1 + pkgrel = 2 url = https://github.com/clearlinux-pkgs/linux arch = x86_64 license = GPL2 @@ -20,7 +20,6 @@ pkgbase = linux-clear source = add-acs-overrides.patch::https://aur.archlinux.org/cgit/aur.git/plain/add-acs-overrides.patch?h=linux-vfio source = 60-linux.hook source = 90-linux.hook - source = 99-linux.hook source = linux.preset validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886 validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E @@ -32,7 +31,6 @@ pkgbase = linux-clear sha256sums = dbf4ac4b873ce6972e63b78d74ddba18f2701716163bb7f4b4fe5e909346a6e1 sha256sums = 452b8d4d71e1565ca91b1bebb280693549222ef51c47ba8964e411b2d461699c sha256sums = c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636 - sha256sums = ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37 sha256sums = ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65 pkgname = linux-clear diff --git a/99-linux.hook b/99-linux.hook deleted file mode 100644 index 416cb94..0000000 --- a/99-linux.hook +++ /dev/null @@ -1,9 +0,0 @@ -[Trigger] -Type = File -Operation = Remove -Target = boot/vmlinuz-%PKGBASE% - -[Action] -Description = Remove %PKGBASE% initramfs files... -When = PreTransaction -Exec = /usr/bin/rm -f /boot/initramfs-%PKGBASE%.img /boot/initramfs-%PKGBASE%-fallback.img diff --git a/PKGBUILD b/PKGBUILD index 25a4a26..7e87181 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -68,7 +68,7 @@ _srcname=linux-${_major} _clr=${_major}.1-843 pkgbase=linux-clear pkgver=${_major}.${_minor} -pkgrel=1 +pkgrel=2 arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux" license=('GPL2') @@ -84,7 +84,6 @@ source=( 'add-acs-overrides.patch::https://aur.archlinux.org/cgit/aur.git/plain/add-acs-overrides.patch?h=linux-vfio' '60-linux.hook' # pacman hook for depmod '90-linux.hook' # pacman hook for initramfs regeneration - '99-linux.hook' # pacman hook for remove initramfs 'linux.preset' # standard config files for mkinitcpio ramdisk ) @@ -234,8 +233,6 @@ _package() { "$pkgdir/usr/share/libalpm/hooks/60-${pkgbase}.hook" sed "$subst" ../90-linux.hook | install -Dm644 /dev/stdin \ "$pkgdir/usr/share/libalpm/hooks/90-${pkgbase}.hook" - sed "$subst" ../99-linux.hook | install -Dm644 /dev/stdin \ - "$pkgdir/usr/share/libalpm/hooks/99-${pkgbase}.hook" msg2 "Fixing permissions..." chmod -Rc u=rwX,go=rX "$pkgdir" @@ -335,7 +332,6 @@ sha256sums=('78f3c397513cf4ff0f96aa7d09a921d003e08fa97c09e0bb71d88211b40567b2' 'dbf4ac4b873ce6972e63b78d74ddba18f2701716163bb7f4b4fe5e909346a6e1' '452b8d4d71e1565ca91b1bebb280693549222ef51c47ba8964e411b2d461699c' 'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636' - 'ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37' 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65') validpgpkeys=( diff --git a/linux.install b/linux.install index 0840849..4027ea0 100644 --- a/linux.install +++ b/linux.install @@ -32,3 +32,8 @@ post_upgrade() { fi done } + +post_remove() { + rm -f boot/initramfs-%PKGBASE%.img + rm -f boot/initramfs-%PKGBASE%-fallback.img +}