diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-14 09:55:50 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:29 +0100 |
commit | c6236a0794c598d82aa470ca7b358bd1d0986aa1 (patch) | |
tree | 99362671c4e5af013d79e3757022b52b6999c9f5 /helpers/lh_source_usb-hdd | |
parent | b5dc2031264b83c837451f3c09ab1cbbc4cd6047 (diff) | |
download | vyos-live-build-c6236a0794c598d82aa470ca7b358bd1d0986aa1.tar.gz vyos-live-build-c6236a0794c598d82aa470ca7b358bd1d0986aa1.zip |
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-x | helpers/lh_source_usb-hdd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd index dfbf0227b..a94ac3df4 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 |