diff options
author | Daniel Baumann <daniel@debian.org> | 2013-02-18 11:29:04 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:06 +0200 |
commit | 04cec317cc4437eed514f4277f6779010e587662 (patch) | |
tree | 16e00a5358affa5a5b906f2c0d3f38d628ab0b2e /functions/losetup.sh | |
parent | 3f3d05b2e654a4ec312cb121c991b8c010bf3db1 (diff) | |
download | vyos-live-build-04cec317cc4437eed514f4277f6779010e587662.tar.gz vyos-live-build-04cec317cc4437eed514f4277f6779010e587662.zip |
Removing incomplete support for root-command.
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 } |