pine64-pinephone: remove old u-boot legacy images from /boot on upgrade (MR 2494)
fixes #1228
This commit is contained in:
parent
de98d83d47
commit
7c511d677e
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue