main/postmarketos-mkinitfs: don't rm vmlinuz-* (MR 2501)
Adjust post-upgrade script to not remove vmlinuz-*. This causes problems with devices using kernels from Alpine, where the kernel is not installed to /boot/vmlinuz, as it is now the case in postmarketOS, but e.g. in /boot/vmlinuz-rpi. The intention was to clean up files when migrating from the old postmarketos-mkinitfs to the new one (>= 1.0.0). However, the /boot/vmlinuz* files are managed by apk, so they should already get removed. Add -v, so it prints a message when removing a file from /boot.
This commit is contained in:
parent
380ef23882
commit
e048839588
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
|
||||
pkgname=postmarketos-mkinitfs
|
||||
pkgver=1.0.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||
url="https://postmarketos.org"
|
||||
depends="
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
# full than it needs to be, and things like copying files atomically in the new
|
||||
# mkinitfs may not have enough space to do the atomic copy
|
||||
echo "Cleaning up old boot files..."
|
||||
for f in /boot/boot.img-* /boot/vmlinuz-* /boot/initramfs-*-extra* /boot/initramfs-*[!-extra]; do
|
||||
[ -f "$f" ] && rm "$f"
|
||||
for f in /boot/boot.img-* /boot/initramfs-*-extra* /boot/initramfs-*[!-extra]; do
|
||||
[ -f "$f" ] && rm -v "$f"
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue