Add support for parted flags to partitions

This is based on top op #26, so that one needs to merged in first.
`foreach` here.