stage-1: autodetect resume swap partitions