diff options
author | Daniel Baumann <daniel@debian.org> | 2009-11-30 13:50:12 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:02 +0100 |
commit | 7199152daefae09be74ce41c612a91fb740847f2 (patch) | |
tree | ec96d1b981cbf6cf8395b6692c354dcc4b84ff30 /helpers | |
parent | ac52cf9e0f617b6e5e69cc3510f1fcf8c5479bb7 (diff) | |
download | vyos-live-build-7199152daefae09be74ce41c612a91fb740847f2.tar.gz vyos-live-build-7199152daefae09be74ce41c612a91fb740847f2.zip |
Adding a 'sleep 1' before removing the loopdevice when creating usb-hdd images.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_usb-hdd | 2 | ||||
-rwxr-xr-x | helpers/lh_source_usb-hdd | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd index 997c24b0d..c5e0ef4a6 100755 --- a/helpers/lh_binary_usb-hdd +++ b/helpers/lh_binary_usb-hdd @@ -167,6 +167,7 @@ case "${LH_CHROOT_BUILD}" in ;; esac +sleep 1 ${LH_LOSETUP} -d ${FREELO} FREELO="$(${LH_LOSETUP} -f)" @@ -256,6 +257,7 @@ then esac fi +sleep 1 ${LH_LOSETUP} -d ${FREELO} echo "!!! The above error/warning messages can be ignored !!!" diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd index a8183db6b..1a88a600d 100755 --- a/helpers/lh_source_usb-hdd +++ b/helpers/lh_source_usb-hdd @@ -93,6 +93,7 @@ Losetup $FREELO source.img 0 Chroot chroot "parted -s ${FREELO} mklabel msdos" || true Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true Chroot chroot "parted -s ${FREELO} set 1 lba off" || true +sleep 1 ${LH_LOSETUP} -d ${FREELO} Losetup $FREELO source.img 1 @@ -121,6 +122,7 @@ ${LH_ROOT_COMMAND} mount ${FREELO} source.tmp cp -r source/* source.tmp ${LH_ROOT_COMMAND} umount source.tmp rmdir source.tmp +sleep 1 ${LH_LOSETUP} -d ${FREELO} Echo_warning "!!! The above error/warning messages can be ignored !!!" |