From a7648353635bc6abeeaac803ff08067a98ffa2d7 Mon Sep 17 00:00:00 2001 From: Archlinux-Jerry Build Bot Date: Mon, 9 Mar 2020 15:54:47 +0800 Subject: [PATCH] update linux-phicomm-n1 to 5.5.8-3, fix linux-phicomm-n1.install --- linux-phicomm-n1/PKGBUILD | 2 +- linux-phicomm-n1/linux-phicomm-n1.install | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/linux-phicomm-n1/PKGBUILD b/linux-phicomm-n1/PKGBUILD index 5bdbd9d..f3a51a5 100644 --- a/linux-phicomm-n1/PKGBUILD +++ b/linux-phicomm-n1/PKGBUILD @@ -8,7 +8,7 @@ _srcname=linux-5.5 _kernelname=${pkgbase#linux} _desc="AArch64 kernel for Phicomm N1" pkgver=5.5.8 -pkgrel=2 +pkgrel=3 arch=('aarch64') url="http://www.kernel.org/" license=('GPL2') diff --git a/linux-phicomm-n1/linux-phicomm-n1.install b/linux-phicomm-n1/linux-phicomm-n1.install index f4a68ef..bb60c9f 100644 --- a/linux-phicomm-n1/linux-phicomm-n1.install +++ b/linux-phicomm-n1/linux-phicomm-n1.install @@ -2,12 +2,15 @@ post_upgrade() { if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then echo "WARNING: /boot appears to be a separate partition but is not mounted." fi - if (( $(vercmp $2 5.5.8-2) < 0 )); then - echo '==> Fallback initramfs is not used, so it is being deleted now.' - rm -f boot/initramfs-%PKGBASE%-fallback.img + if (( $(vercmp $2 5.5.8-3) < 0 )); then + echo '==> Fallback initramfs is not used, so it is being deleted now.' + echo -n '==> Please DO merge your mkinitcpio preset' + echo ' if you have it changed before,' + echo '==> otherwise your device will not boot again.' + rm -f boot/initramfs-linux-phicomm-n1-fallback.img fi } post_remove() { - rm -f boot/initramfs-%PKGBASE%.img + rm -f boot/initramfs-linux-phicomm-n1.img }