diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-12 22:43:28 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:29 +0100 |
commit | 8321653cb36511324d576e65cb13b5c9b0c5f438 (patch) | |
tree | 0337ce8bc654b91cd2cd25eb418183e6668e9ea7 /helpers/lh_losetup | |
parent | b47d0c480df34c1c15ac83166ae246991ce72385 (diff) | |
download | live-build-8321653cb36511324d576e65cb13b5c9b0c5f438.zip live-build-8321653cb36511324d576e65cb13b5c9b0c5f438.tar.gz |
Adding check to detect gnu-fdisk and using the original fdisk, thanks to Peter Skogström <peter.skogstrom@bitrunner.com> for the report.
Diffstat (limited to 'helpers/lh_losetup')
-rwxr-xr-x | helpers/lh_losetup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_losetup b/helpers/lh_losetup index 2ea7f9e..f3b6720 100755 --- a/helpers/lh_losetup +++ b/helpers/lh_losetup @@ -38,7 +38,7 @@ FILE="${2}" PARTITION="${3:=1}" ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" -FDISK_OUT="$(fdisk -l -u ${DEVICE} 2>&1)" +FDISK_OUT="$(LH_FDISK -l -u ${DEVICE} 2>&1)" ${LH_ROOT_COMMAND} ${LH_LOSETUP} -d "${DEVICE}" LOOPDEVICE="$(echo ${DEVICE}p${PARTITION})" |