From eb9b43defe165b35084f99d793738980487ac7f9 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sat, 6 Feb 2016 21:15:15 -0800 Subject: [PATCH] Don't forget to mark our root partition bootable --- live-build/ubuntu-cpc/hooks/032-disk-image.binary | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live-build/ubuntu-cpc/hooks/032-disk-image.binary b/live-build/ubuntu-cpc/hooks/032-disk-image.binary index 1b6d3099..47275217 100755 --- a/live-build/ubuntu-cpc/hooks/032-disk-image.binary +++ b/live-build/ubuntu-cpc/hooks/032-disk-image.binary @@ -44,12 +44,14 @@ create_empty_disk_image "${disk_image}" create_empty_partition_table "${disk_image}" ROOTPART=1 +ROOT_BOOTABLE=1 if [ -n "$BOOTPART_START" ]; then ROOTPART=2 ROOTPART_START="$BOOTPART_END" + ROOT_BOOTABLE= create_empty_partition "$disk_image" 1 "$BOOTPART_START" "$BOOTPART_END" 1 fi -create_empty_partition "${disk_image}" "$ROOTPART" "$ROOTPART_START" -1 +create_empty_partition "${disk_image}" "$ROOTPART" "$ROOTPART_START" -1 $ROOT_BOOTABLE mount_image "${disk_image}" "$ROOTPART"