summaryrefslogtreecommitdiff
path: root/helpers/lh_source_usb-hdd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-14 09:55:50 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:29 +0100
commitc6236a0794c598d82aa470ca7b358bd1d0986aa1 (patch)
tree99362671c4e5af013d79e3757022b52b6999c9f5 /helpers/lh_source_usb-hdd
parentb5dc2031264b83c837451f3c09ab1cbbc4cd6047 (diff)
downloadlive-build-c6236a0794c598d82aa470ca7b358bd1d0986aa1.zip
live-build-c6236a0794c598d82aa470ca7b358bd1d0986aa1.tar.gz
Moving lh_losetup into an internal function, avoiding helper failure with return value due to new trap.
Diffstat (limited to 'helpers/lh_source_usb-hdd')
-rwxr-xr-xhelpers/lh_source_usb-hdd4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd
index dfbf022..a94ac3d 100755
--- a/helpers/lh_source_usb-hdd
+++ b/helpers/lh_source_usb-hdd
@@ -84,13 +84,13 @@ then
fi
echo "!!! The following error/warning messages can be ignored !!!"
-lh_losetup $FREELO source.img 0
+Losetup $FREELO source.img 0
Chroot "parted -s ${FREELO} mklabel msdos" || true
Chroot "parted -s ${FREELO} mkpartfs primary fat16 0.0 100%" || true
Chroot "parted -s ${FREELO} set 1 lba off" || true
${LH_LOSETUP} -d ${FREELO}
-lh_losetup $FREELO source.img 1
+Losetup $FREELO source.img 1
Chroot " mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}"
mkdir -p source.tmp
${LH_ROOT_COMMAND} mount ${FREELO} source.tmp