[SCM] live-build branch, debian-next, updated. debian/3.0_a13-1-9-gc0e865b

Daniel Baumann daniel at debian.org
Mon Mar 21 19:53:44 UTC 2011


The following commit has been merged in the debian-next branch:
commit c0e865b6d2352e4c08942ec1bd56b1554669eca3
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Mar 21 20:52:04 2011 +0100

    Setting partition flags after creating the filesystem, workaround for bug in parted where we result in having the partition type set to linux otherways, thanks to Cody A.W. Somerville <cody.somerville at canonical.com> for the idea.

diff --git a/scripts/build/lb_binary_usb b/scripts/build/lb_binary_usb
index 255535c..0b07cfe 100755
--- a/scripts/build/lb_binary_usb
+++ b/scripts/build/lb_binary_usb
@@ -146,8 +146,6 @@ 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} set 1 boot on" || true
-		Chroot chroot "parted -s ${FREELO} set 1 lba off" || true
 
 		if [ "${LB_BOOTLOADER}" = "syslinux" ]
 		then
@@ -158,8 +156,6 @@ 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} set 1 boot on || true
-		parted -s ${FREELO} set 1 lba off || true
 
 		if [ "${LB_BOOTLOADER}" = "syslinux" ]
 		then
@@ -194,10 +190,16 @@ esac
 case "${LB_BUILD_WITH_CHROOT}" in
 	true)
 		Chroot chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}"
+
+		Chroot chroot "parted -s ${FREELO} set 1 boot on" || true
+		Chroot chroot "parted -s ${FREELO} set 1 lba off" || true
 		;;
 
 	false)
 		mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}
+
+		parted -s ${FREELO} set 1 boot on || true
+		parted -s ${FREELO} set 1 lba off || true
 		;;
 esac
 

-- 
live-build



More information about the debian-live-changes mailing list