Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
1bda0902
Commit
1bda0902
authored
Jan 31, 2014
by
Nikos Skalkotos
Browse files
Show the partition label in diskpart -l
parent
ee78390c
Changes
1
Show whitespace changes
Inline
Side-by-side
snf-image-helper/disklabel.py
View file @
1bda0902
#!/usr/bin/env python
#!/usr/bin/env python
#
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#
#
# Copyright (C) 2013 GRNET S.A.
# Copyright (C) 2013 GRNET S.A.
...
@@ -232,7 +233,7 @@ class Disklabel:
...
@@ -232,7 +233,7 @@ class Disklabel:
"""Print the Partition table"""
"""Print the Partition table"""
val
=
""
val
=
""
for
i
in
range
(
len
(
self
.
part
)):
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
return
val
def
pack
(
self
):
def
pack
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment