Revision 10bf026d snf-image-helper/tasks/10FixPartitionTable.in
b/snf-image-helper/tasks/10FixPartitionTable.in | ||
---|---|---|
108 | 108 |
else |
109 | 109 |
# Enlarge the extended partition |
110 | 110 |
if [ $swap_num -ge 5 ]; then |
111 |
# This is needed because logical partitions need to have at least |
|
112 |
# 1 sector gap between them. We make the gap 2048 sectors to |
|
113 |
# properly align them. |
|
114 |
new_end=$((new_end - 2048)) |
|
111 | 115 |
enlarge_partition "$SNF_IMAGE_DEV" "$extended" "extended" "${swap_end}s" |
112 | 116 |
else |
113 | 117 |
enlarge_partition "$SNF_IMAGE_DEV" "$extended" "extended" "${new_end}s" |
Also available in: Unified diff