From 1bda090281e38e212a1e7a396025e01002622bd0 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Fri, 31 Jan 2014 18:43:06 +0200 Subject: [PATCH] Show the partition label in diskpart -l --- snf-image-helper/disklabel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snf-image-helper/disklabel.py b/snf-image-helper/disklabel.py index 1005da3..05ebf82 100755 --- a/snf-image-helper/disklabel.py +++ b/snf-image-helper/disklabel.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# # -*- coding: utf-8 -*- # # Copyright (C) 2013 GRNET S.A. @@ -232,7 +233,7 @@ class Disklabel: """Print the Partition table""" val = "" for i in range(len(self.part)): - val = "%s%s\n" % (val, str(self.part[i])) + val += "%c: %s\n" % (chr(ord('a') + i), str(self.part[i])) return val def pack(self): -- 1.7.10.4