summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-02-15 11:53:42 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:05 +0200
commit6f39d25611704ac693a856ccabf941315f4aac9e (patch)
treee1aef2d4ede438da8263d774d2f367bd4eefbbc0
parentc6c9946048b3db150f0c24db6c5f0ac868e83cfe (diff)
downloadvyos-live-build-6f39d25611704ac693a856ccabf941315f4aac9e.tar.gz
vyos-live-build-6f39d25611704ac693a856ccabf941315f4aac9e.zip
Allowing to use parted its automatic offset handling at the beginning of a disk, rather than to harcode it to first block (Closes: #647607).
-rwxr-xr-xscripts/build/binary_hdd4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd
index 4ce146383..f6fb3d8f1 100755
--- a/scripts/build/binary_hdd
+++ b/scripts/build/binary_hdd
@@ -167,7 +167,7 @@ esac
case "${LB_BUILD_WITH_CHROOT}" in
true)
Chroot chroot "parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE}" || true
- Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100%" || true
+ Chroot chroot "parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100%" || true
Chroot chroot "parted -s ${FREELO} set 1 boot on" || true
Chroot chroot "parted -s ${FREELO} set 1 lba off" || true
@@ -179,7 +179,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
false)
parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE} || true
- parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0.0 100% || true
+ parted -s ${FREELO} mkpart primary ${PARTITION_TYPE} 0% 100% || true
parted -s "${FREELO}" set 1 boot on || true
parted -s "${FREELO}" set 1 lba off || true