diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:17 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | 0d0de885e32ff67d57bb7def451b62d75b8920ab (patch) | |
tree | cd4a159a86207401dbd5990bc0fa3c28825ab6f8 /helpers/lh_binary_usb-hdd | |
parent | c68c0a270832ca340429878ce6a0ab606d435b06 (diff) | |
download | live-build-0d0de885e32ff67d57bb7def451b62d75b8920ab.zip live-build-0d0de885e32ff67d57bb7def451b62d75b8920ab.tar.gz |
Adding live-helper 1.0~a22-1.
Diffstat (limited to 'helpers/lh_binary_usb-hdd')
-rwxr-xr-x | helpers/lh_binary_usb-hdd | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd index af4048c..f13896c 100755 --- a/helpers/lh_binary_usb-hdd +++ b/helpers/lh_binary_usb-hdd @@ -32,7 +32,7 @@ Read_conffile config/binary Read_conffile config/source Set_defaults -if ! echo "${LIVE_BINARY_IMAGES}" | grep -qs usb-hdd +if ! echo "${LH_BINARY_IMAGES}" | grep -qs usb-hdd then exit 0 fi @@ -57,7 +57,7 @@ Check_package chroot/sbin/mkdosfs dosfstools Check_package chroot/usr/share/doc/mtools mtools Check_package chroot/sbin/parted parted -case "${LIVE_BOOTLOADER}" in +case "${LH_BOOTLOADER}" in grub) Check_package chroot/usr/sbin/grub grub ;; @@ -95,14 +95,14 @@ fi echo "!!! The following error/warning messages can be ignored !!!" lh_losetup $FREELO chroot/binary.img 0 -case "${LIVE_CHROOT_BUILD}" in +case "${LH_CHROOT_BUILD}" in enabled) Chroot "parted -s ${FREELO} mklabel msdos" || true Chroot "parted -s ${FREELO} mkpartfs primary fat16 0.0 100%" || true Chroot "parted -s ${FREELO} set 1 boot on" || true Chroot "parted -s ${FREELO} set 1 lba off" || true - if [ "${LIVE_BOOTLOADER}" = "syslinux" ] + if [ "${LH_BOOTLOADER}" = "syslinux" ] then cat chroot/usr/lib/syslinux/mbr.bin > ${FREELO} fi @@ -114,7 +114,7 @@ case "${LIVE_CHROOT_BUILD}" in parted -s ${FREELO} set 1 boot on || true parted -s ${FREELO} set 1 lba off || true - if [ "${LIVE_BOOTLOADER}" = "syslinux" ] + if [ "${LH_BOOTLOADER}" = "syslinux" ] then cat /usr/lib/syslinux/mbr.bin > ${FREELO} fi @@ -126,7 +126,7 @@ ${LH_LOSETUP} -d ${FREELO} FREELO="`${LH_LOSETUP} -f`" lh_losetup $FREELO chroot/binary.img 1 -case "${LIVE_CHROOT_BUILD}" in +case "${LH_CHROOT_BUILD}" in enabled) Chroot "mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}" ;; @@ -142,7 +142,7 @@ cp -rL binary/* chroot/binary.tmp FIXME() { -if [ "${LIVE_BOOTLOADER}" = "grub" ] +if [ "${LH_BOOTLOADER}" = "grub" ] then cat > chroot/grub.sh << EOF @@ -174,9 +174,9 @@ fi ${LH_ROOT_COMMAND} umount chroot/binary.tmp rmdir chroot/binary.tmp -if [ "${LIVE_BOOTLOADER}" = "syslinux" ] +if [ "${LH_BOOTLOADER}" = "syslinux" ] then - case "${LIVE_CHROOT_BUILD}" in + case "${LH_CHROOT_BUILD}" in enabled) Chroot "syslinux ${FREELO}" ;; |