pine64-pinephone: remove old u-boot legacy images from /boot on upgrade (MR 2494)

fixes #1228
This commit is contained in:
Clayton Craft 2021-09-07 14:08:48 -07:00
parent de98d83d47
commit 7c511d677e
No known key found for this signature in database
GPG key ID: 7A3461CA187CEA54
2 changed files with 10 additions and 2 deletions

View file

@ -6,7 +6,7 @@
# Co-Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=device-pine64-pinephone
pkgver=0.35
pkgrel=0
pkgrel=1
pkgdesc="PINE64 PinePhone"
url="https://postmarketos.org"
license="MIT"
@ -33,7 +33,7 @@ depends="
u-boot-tools
"
makedepends="devicepkg-dev"
install="$pkgname.post-install $pkgname.post-upgrade"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-upgrade"
source="
00_alsa_pinephone_dshare.conf
10-pinephone-proximity.rules

View file

@ -0,0 +1,8 @@
#!/bin/sh
# legacy u-boot images are no longer necessary, but were generated outside of
# packaging so remove them here to prevent a failed upgrade if /boot is too
# full
# see: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2449
rm /boot/uImage-postmarketos-allwinner 2>/dev/null 1>&2
rm /boot/uInitrd-postmarketos-allwinner 2>/dev/null 1>&2