Commit 58b67e3f authored by Guido Gunther's avatar Guido Gunther
Browse files

funtions: Decompress kernel to vmlinuz

`make bindeb-pkg` produces a compressed kernel so make sure
it gets uncompressed. This can also be dropped once we switch
to Debian's kernel.
parent 67dd39fc
......@@ -923,6 +923,14 @@ case "$method" in
"generic")
kernel="$kfile"
initrd="$ifile"
kernel_filetype=$(file -iLb "$kfile" | cut -f 1 -d ";")
if [ "$kernel_filetype" = "application/gzip" ]; then
echo "Uncompression kernel"
gunzip -c "$kernel" > "$tmpdir/vmlinuz"
kernel="$tmpdir/vmlinuz"
fi
if [ "$dtb_append" = "yes" ]; then
dtb=$(find_dtb_file)
append_dtb "$kernel" "$dtb" "$tmpdir/kernel"
......
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