Allowing to use parted its automatic offset handling at the beginning of a disk, rather than to harcode it to first block (Closes: #647607).

This commit is contained in:
Daniel Baumann 2013-02-15 11:53:42 +01:00 committed by Daniel Baumann
parent bb69c170ae
commit 09067bbbf8
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ esac
case "${LB_BUILD_WITH_CHROOT}" in case "${LB_BUILD_WITH_CHROOT}" in
true) true)
Chroot chroot "parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE}" || 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 boot on" || true
Chroot chroot "parted -s ${FREELO} set 1 lba off" || true Chroot chroot "parted -s ${FREELO} set 1 lba off" || true
@ -187,7 +187,7 @@ case "${LB_BUILD_WITH_CHROOT}" in
false) false)
parted -s ${FREELO} mklabel ${PARTITION_TABLE_TYPE} || true 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 boot on || true
parted -s "${FREELO}" set 1 lba off || true parted -s "${FREELO}" set 1 lba off || true