summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebeagle.sh11
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}"