Commit 1bda0902 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Show the partition label in diskpart -l

parent ee78390c
#!/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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment