Commit 707e1ec8 authored by Guido Gunther's avatar Guido Gunther
Browse files

Add script to automatically unzip newly installed kernels

Our uboot wants uncompressed kernels. Make sure this happens on kernel
package updates.
parent ab01895d
Pipeline #3013 passed with stage
in 1 minute and 58 seconds
......@@ -14,6 +14,8 @@ install:
install -m 0644 etc/modules-load.d/librem5-devkit.conf $(DESTDIR)/etc/modules-load.d/
mkdir -p $(DESTDIR)/etc/modprobe.d/
install -D -m 0644 etc/modprobe.d/librem5-devkit.conf $(DESTDIR)/etc/modprobe.d/
mkdir -p $(DESTDIR)/etc/kernel/postinst.d/
install -D -m 0755 etc/kernel/postinst.d/update-Image $(DESTDIR)/etc/kernel/postinst.d/
%.html: %.org
emacs --batch -nw $< -f org-html-export-to-html --kill
......
#!/bin/sh
# see Chapter 8 of Debian Linux Kernel Handbook
set -e
abi="$1"
_vmlinuz="${2:-/boot/vmlinuz-$abi}"
gunzip -c "${_vmlinuz}" > /boot/Image.tmp
mv -f /boot/Image.tmp /boot/Image
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment