linux-google-nyan: add a hack for depthcharge (MR 4074)

Prevent kernel self-decompression from overwriting initramfs

Co-authored-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
Anton Bambura 2023-05-11 12:18:18 +03:00
parent 08096700f0
commit 5bfe3ab5b5
No known key found for this signature in database
GPG key ID: 1441EAFE8D7F4C2D

View file

@ -61,6 +61,9 @@ package() {
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
# Prevent kernel self-decompression from overwriting initramfs
truncate -s 10M "$pkgdir"/boot/vmlinuz
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
}