summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>2021-01-13 00:26:27 +0000
committerLars Wirzenius <liw@liw.fi>2021-01-15 07:37:45 +0000
commit56b4e998224bb92f131f708d00ad3355b609aef9 (patch)
tree7ba4df5f91c3004b162604e752b956e21a68a9bd
parent0efdcb69f4c174598a03ac1e8dc061f0dd0115e0 (diff)
downloadvmdb2-56b4e998224bb92f131f708d00ad3355b609aef9.tar.gz
Allow - (negative) sign as start or end to mkpart
-rw-r--r--vmdb/plugins/mkpart_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmdb/plugins/mkpart_plugin.py b/vmdb/plugins/mkpart_plugin.py
index 30305da..4f97492 100644
--- a/vmdb/plugins/mkpart_plugin.py
+++ b/vmdb/plugins/mkpart_plugin.py
@@ -50,7 +50,7 @@ class MkpartStepRunner(vmdb.StepRunnerInterface):
device = os.path.realpath(device)
orig = self.list_partitions(device)
- vmdb.runcmd(["parted", "-s", device, "mkpart", part_type, fs_type, start, end])
+ vmdb.runcmd(["parted", "-s", device, "--", "mkpart", part_type, fs_type, start, end])
new = self.list_partitions(device)
diff = self.diff_partitions(orig, new)