From 014488e6c9e938aec20750b2a987cc45e98bd7e8 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sun, 11 Aug 2013 18:33:35 +0200 Subject: [PATCH] Fix parted task ordering --- common/tasks/parted.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/tasks/parted.py b/common/tasks/parted.py index 1667d41..822e6ef 100644 --- a/common/tasks/parted.py +++ b/common/tasks/parted.py @@ -1,7 +1,7 @@ from base import Task from common import phases from common.tools import log_check_call -from filesystem import UnmountVolume +import filesystem class PartitionVolume(Task): @@ -35,6 +35,7 @@ class MapPartitions(Task): class FormatPartitions(Task): description = 'Formatting the partitions' phase = phases.volume_preparation + before = [filesystem.TuneVolumeFS] after = [MapPartitions] def run(self, info): @@ -45,7 +46,7 @@ class FormatPartitions(Task): class UnmapPartitions(Task): description = 'Removing volume partitions mapping' phase = phases.volume_unmounting - after = [UnmountVolume] + after = [filesystem.UnmountVolume] def run(self, info): log_check_call(['kpartx', '-d', info.loopback_file])