mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
zerofree is used against partitions, not devices
This commit is contained in:
parent
da4b85c0c7
commit
e05072c43b
1 changed files with 4 additions and 4 deletions
|
@ -62,15 +62,15 @@ class AddRequiredCommands(Task):
|
|||
|
||||
|
||||
class Zerofree(Task):
|
||||
description = 'Zeroing unused blocks on the volume'
|
||||
description = 'Zeroing unused blocks on the root partition'
|
||||
phase = phases.volume_unmounting
|
||||
predecessors = [filesystem.UnmountRoot, partitioning.UnmapPartitions]
|
||||
successors = [volume.Detach]
|
||||
predecessors = [filesystem.UnmountRoot]
|
||||
successors = [partitioning.UnmapPartitions, volume.Detach]
|
||||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
from common.tools import log_check_call
|
||||
log_check_call(['zerofree', info.volume.device_path])
|
||||
log_check_call(['zerofree', info.volume.partition_map.root.device_path])
|
||||
|
||||
|
||||
class ShrinkVolume(Task):
|
||||
|
|
Loading…
Add table
Reference in a new issue