diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:51 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | 8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1 (patch) | |
tree | 621dc56a00a65ab0eb1fd4e7d42ad4e45d718741 /helpers/lh_losetup | |
parent | 4739146fc6c4de8b16418517bb882312c475195c (diff) | |
download | vyos-live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.tar.gz vyos-live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.zip |
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'helpers/lh_losetup')
-rwxr-xr-x | helpers/lh_losetup | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helpers/lh_losetup b/helpers/lh_losetup index e3b7148da..47c8f344f 100755 --- a/helpers/lh_losetup +++ b/helpers/lh_losetup @@ -35,7 +35,7 @@ Breakpoint "losetup: Init" if [ -z "${1}" ] then - DEVICE="`${LH_LOSETUP} -f`" + DEVICE="`${LH_ROOT_COMMAND} ${LH_LOSETUP} -f`" else DEVICE="${1}" fi @@ -43,9 +43,9 @@ fi FILE="${2}" PARTITION="${3}" -${LH_LOSETUP} "${DEVICE}" "${FILE}" +${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" FDISK_OUT="`fdisk -l -u ${DEVICE} 2>&1`" -${LH_LOSETUP} -d "${DEVICE}" +${LH_ROOT_COMMAND} ${LH_LOSETUP} -d "${DEVICE}" LOOPDEVICE="`echo ${DEVICE}p${PARTITION:=1}`" CYL=`echo "$FDISK_OUT" | sed -ne "s_^$LOOPDEVICE[ *]*\([0-9]*\).*_\1_p"` @@ -56,7 +56,7 @@ echo loop $DEVICE at offset $OFFSET if [ "${PARTITION}" = "0" ] then - ${LH_LOSETUP} "${DEVICE}" "${FILE}" + ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" else - ${LH_LOSETUP} -o "${OFFSET}" "${DEVICE}" "${FILE}" + ${LH_ROOT_COMMAND} ${LH_LOSETUP} -o "${OFFSET}" "${DEVICE}" "${FILE}" fi |