summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_linux-image
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:12 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:19:41 +0100
commit504c05c3a63de0af4fd0e876274afc039c5c0ed1 (patch)
tree5a29d0f82735a131c9319b5b825c57b740584d13 /helpers/lh_binary_linux-image
parent37a5c53ddd2825bf6b0ce521908a63d419683981 (diff)
downloadlive-build-504c05c3a63de0af4fd0e876274afc039c5c0ed1.zip
live-build-504c05c3a63de0af4fd0e876274afc039c5c0ed1.tar.gz
Adding live-helper 1.0~a15-1.
Diffstat (limited to 'helpers/lh_binary_linux-image')
-rwxr-xr-xhelpers/lh_binary_linux-image18
1 files changed, 8 insertions, 10 deletions
diff --git a/helpers/lh_binary_linux-image b/helpers/lh_binary_linux-image
index 306590d..c6bb3f8 100755
--- a/helpers/lh_binary_linux-image
+++ b/helpers/lh_binary_linux-image
@@ -60,17 +60,12 @@ case "${LIVE_BINARY_IMAGES}" in
;;
tar|usb-hdd)
+ DESTDIR="binary/live"
+
# Workaround for syslinux (<< 3.36) which doesn't support long file/path names
- if [ "${LIVE_DISTRIBUTION}" = "etch" ] || [ "${LIVE_DISTRIBUTION}" = "lenny" ]
+ if [ "${LIVE_DISTRIBUTION}" = "etch" ] && [ "${LIVE_BOOTLOADER}" = "syslinux" ]
then
- if [ "${LIVE_BOOTLOADER}" = "syslinux" ]
- then
- DESTDIR="binary"
- else
- DESTDIR="binary/live"
- fi
- else
- DESTDIR="binary/live"
+ DESTDIR="binary"
fi
;;
esac
@@ -84,14 +79,17 @@ then
case "${LIVE_ARCHITECTURE}" in
amd64)
DESTDIR="${DESTDIR}.amd"
+ LINUX="vmlinuz"
;;
i386)
DESTDIR="${DESTDIR}.386"
+ LINUX="vmlinuz"
;;
powerpc)
DESTDIR="${DESTDIR}.ppc"
+ LINUX="vmlinux"
;;
esac
fi
@@ -101,7 +99,7 @@ fi
mkdir -p "${DESTDIR}"
# Installing linux-image
-cp chroot/boot/vmlinuz* "${DESTDIR}"
+cp chroot/boot/"${LINUX}"* "${DESTDIR}"
cp chroot/boot/initrd.img* "${DESTDIR}"
# Creating stage file