mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-29 03:31:33 +00:00
Don't forget to mark our root partition bootable
This commit is contained in:
parent
e9d31ea96a
commit
eb9b43defe
@ -44,12 +44,14 @@ create_empty_disk_image "${disk_image}"
|
|||||||
create_empty_partition_table "${disk_image}"
|
create_empty_partition_table "${disk_image}"
|
||||||
|
|
||||||
ROOTPART=1
|
ROOTPART=1
|
||||||
|
ROOT_BOOTABLE=1
|
||||||
if [ -n "$BOOTPART_START" ]; then
|
if [ -n "$BOOTPART_START" ]; then
|
||||||
ROOTPART=2
|
ROOTPART=2
|
||||||
ROOTPART_START="$BOOTPART_END"
|
ROOTPART_START="$BOOTPART_END"
|
||||||
|
ROOT_BOOTABLE=
|
||||||
create_empty_partition "$disk_image" 1 "$BOOTPART_START" "$BOOTPART_END" 1
|
create_empty_partition "$disk_image" 1 "$BOOTPART_START" "$BOOTPART_END" 1
|
||||||
fi
|
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"
|
mount_image "${disk_image}" "$ROOTPART"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user