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:
parent
08096700f0
commit
5bfe3ab5b5
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ package() {
|
||||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
||||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
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 \
|
install -D "$builddir"/include/config/kernel.release \
|
||||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue