Remove the swap partition when shrinking
authorNikos Skalkotos <skalkoto@grnet.gr>
Fri, 4 May 2012 15:44:43 +0000 (18:44 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Fri, 4 May 2012 15:44:43 +0000 (18:44 +0300)
commite8b1b48bd7b8a7057b6af698b6dfdb36f13c75b8
tree44ea6037150abf8dd77ea65d61f773b1be466bc5
parent5b801534a4277ae5730a12736cd5ff5242aa62d9
Remove the swap partition when shrinking

If the swap partition is the last partition in the media, then it can
be safely removed. The image-creator will save enough info in the
SWAP metadata to recreate it.
image_creator/disk.py
image_creator/main.py