update linux-phicomm-n1 to 5.5.8-3, fix linux-phicomm-n1.install

This commit is contained in:
Archlinux-Jerry Build Bot 2020-03-09 15:54:47 +08:00
parent df08474967
commit a764835363
2 changed files with 8 additions and 5 deletions

View file

@ -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')

View file

@ -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
if (( $(vercmp $2 5.5.8-3) < 0 )); then
echo '==> Fallback initramfs is not used, so it is being deleted now.'
rm -f boot/initramfs-%PKGBASE%-fallback.img
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
}