diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-12-10 14:43:00 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-12-10 14:43:00 (EST) |
commit | 8e7e12101693b971e210a5d538e5e8c9a9151c7f (patch) | |
tree | fca9a7802cfea615340e356b490a212b1f0b2120 | |
parent | 717ab825704d2f16f9be1ab1eb74e2026468e961 (diff) |
-rwxr-xr-x | debeagle.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/debeagle.sh b/debeagle.sh index 64485df..ab6ea26 100755 --- a/debeagle.sh +++ b/debeagle.sh @@ -262,12 +262,15 @@ install_debian() linux_version="$(printf '%s\n' \ "${archives}/"linux-image-*-armmp_*_armhf.deb | sed \ "s|^${archives}/linux-image-\\(.*-armmp\\)_.*\$|\1|")" - ar p "${archives}/"linux-image-*-armmp_*_armhf.deb data.tar.xz | \ - tar -xJO "./boot/vmlinuz-${linux_version}" \ - >"${boot_mp}/vmlinuz" + ( + cd "${root_mp}" + ar p var/cache/apt/archives/linux-image-*-armmp_*.deb \ + data.tar.xz | tar -xJ + ) mkimage -A arm -O linux -T kernel -C none \ -a 0x80008000 -e 0x80008000 -n "Linux ${linux_version}" \ - -d "${boot_mp}/vmlinuz" "${root_mp}/boot/uImage" + -d "${root_mp}/boot/vmlinuz-${linux_version}" \ + "${root_mp}/boot/uImage" cp "${root_mp}/boot/uImage" "${boot_mp}/uImage" umount "${boot_mp}" |