diff options
Diffstat (limited to 'functions/losetup.sh')
-rwxr-xr-x | functions/losetup.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh index 48c7542b2..3b389c3cf 100755 --- a/functions/losetup.sh +++ b/functions/losetup.sh @@ -23,7 +23,7 @@ Lodetach () # a race condition. We call 'udevadm settle' to help avoid this. if [ -x "$(which udevadm 2>/dev/null)" ] then - ${LB_ROOT_COMMAND} udevadm settle + udevadm settle fi # Loop back devices aren't the most reliable when it comes to writes. @@ -31,7 +31,7 @@ Lodetach () sync sleep 1 - ${LB_ROOT_COMMAND} ${LB_LOSETUP} -d "${DEVICE}" || Lodetach "${DEVICE}" "$(expr ${ATTEMPT} + 1)" + ${LB_LOSETUP} -d "${DEVICE}" || Lodetach "${DEVICE}" "$(expr ${ATTEMPT} + 1)" } Losetup () @@ -40,7 +40,7 @@ Losetup () FILE="${2}" PARTITION="${3:-1}" - ${LB_ROOT_COMMAND} ${LB_LOSETUP} --read-only "${DEVICE}" "${FILE}" + ${LB_LOSETUP} --read-only "${DEVICE}" "${FILE}" FDISK_OUT="$(${LB_FDISK} -l -u ${DEVICE} 2>&1)" Lodetach "${DEVICE}" @@ -50,14 +50,14 @@ Losetup () then Echo_message "Mounting %s with offset 0" "${DEVICE}" - ${LB_ROOT_COMMAND} ${LB_LOSETUP} "${DEVICE}" "${FILE}" + ${LB_LOSETUP} "${DEVICE}" "${FILE}" else SECTORS="$(echo "$FDISK_OUT" | sed -ne "s|^$LOOPDEVICE[ *]*\([0-9]*\).*|\1|p")" OFFSET="$(expr ${SECTORS} '*' 512)" Echo_message "Mounting %s with offset %s" "${DEVICE}" "${OFFSET}" - ${LB_ROOT_COMMAND} ${LB_LOSETUP} -o "${OFFSET}" "${DEVICE}" "${FILE}" + ${LB_LOSETUP} -o "${OFFSET}" "${DEVICE}" "${FILE}" fi } |