diff options
| author | Daniel Baumann <daniel@debian.org> | 2011-08-27 20:47:46 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-10-04 07:53:02 +0200 |
| commit | 237cfb4c29df20487fc958b54fc2c9f462a15a25 (patch) | |
| tree | b7351994946726a275e199a696d0e57d89bccc28 | |
| parent | 2a0c6465b784e6c3663a333c2e8c862b193fc8dc (diff) | |
| download | vyos-live-build-237cfb4c29df20487fc958b54fc2c9f462a15a25.tar.gz vyos-live-build-237cfb4c29df20487fc958b54fc2c9f462a15a25.zip | |
Sleeping for 1 second before after accessing the loop device in order to not fail when removing it right afterwards.
| -rwxr-xr-x | functions/losetup.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh index 1b1f61f42..7875cb181 100755 --- a/functions/losetup.sh +++ b/functions/losetup.sh @@ -15,6 +15,8 @@ Losetup () ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" FDISK_OUT="$(${LH_FDISK} -l -u ${DEVICE} 2>&1)" + + sleep 1 ${LH_ROOT_COMMAND} ${LH_LOSETUP} -d "${DEVICE}" LOOPDEVICE="$(echo ${DEVICE}p${PARTITION})" |
