Commit f57c0ceb authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Don't let sgdisk align when creating partitions

In order to extend a partition we need to remove and recreate it. If the
partition was misaligned then the image is to blame. snf-image is not
allowed to change the starting sector of the partition since this will
destroy the file system it hosts. In order to make sure this does never
happen we need to set the sector alignment multiple to 1.
parent e518effc
......@@ -413,7 +413,7 @@ create_partition() {
# For GPT
start=${start:0:${#start}-1} # remove the s at the end
end=${end:0:${#end}-1} # remove the s at the end
$SGDISK -n "$id":"$start":"$end" -t "$id":"$ptype" "$device"
$SGDISK -a 1 -n "$id":"$start":"$end" -t "$id":"$ptype" "$device"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment