Skip to content
Snippets Groups Projects
Commit 318abc90 authored by Stefan Heimersheim's avatar Stefan Heimersheim
Browse files

script to extract kernel image

parent a3d8533a
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
deb="linux-image-unsigned-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb"
name="vmlinuz-5.0.5-050005-generic"
wget "https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/$deb"
ar -x $deb data.tar.xz
rm $deb
tar -xOvf data.tar.xz ./boot/$name --wildcards > $name
rm data.tar.xz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment