projects
/
snf-image
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ee78390
)
Show the partition label in diskpart -l
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Fri, 31 Jan 2014 16:43:06 +0000
(18:43 +0200)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Fri, 31 Jan 2014 16:46:06 +0000
(18:46 +0200)
snf-image-helper/disklabel.py
patch
|
blob
|
history
diff --git
a/snf-image-helper/disklabel.py
b/snf-image-helper/disklabel.py
index
1005da3
..
05ebf82
100755
(executable)
--- 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):