update linux-phicomm-n1 to 5.5.8-2, fix #2

This commit is contained in:
Archlinux-Jerry Build Bot 2020-03-08 13:09:21 +08:00
parent 5f5b8002f2
commit df08474967
3 changed files with 7 additions and 4 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=1
pkgrel=2
arch=('aarch64')
url="http://www.kernel.org/"
license=('GPL2')
@ -28,7 +28,7 @@ source+=("http://www.kernel.org/pub/linux/kernel/v5.x/patch-${pkgver}.xz")
md5sums=('0a78b1dc48dc032fe505b170c1b92339'
'caa2dbc19116d818e6d0d46baeca961b'
'24e1591eba356a657ca6ddb1efcd99f8'
'66e0ae63183426b28c0ec0c7e10b5e16'
'30130b4dcd8ad4364ddbfd56c3058d5e'
'ce6c81ad1ad1f8b333fd6077d47abdaf'
'bdeb5fb852fd92b4e76b4796db500dd4'
'74fdb27ae62f3ea870a86ff3546764e5')

View file

@ -2,9 +2,12 @@ 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
fi
}
post_remove() {
rm -f boot/initramfs-%PKGBASE%.img
rm -f boot/initramfs-%PKGBASE%-fallback.img
}

View file

@ -3,7 +3,7 @@
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="%KERNVER%"
PRESETS=('default' 'fallback')
PRESETS=('default')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-%PKGBASE%.img"