libfdisk: use partition template

Signed-off-by: Karel Zak <kzak@redhat.com>