mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
17 lines
525 B
Python
17 lines
525 B
Python
![]() |
from bootstrapvz.base import Task
|
||
|
from bootstrapvz.common import phases
|
||
|
from bootstrapvz.common.tasks import apt
|
||
|
from bootstrapvz.common.tasks import network
|
||
|
from bootstrapvz.common.tools import log_check_call
|
||
|
|
||
|
|
||
|
class AddBaselineAptCache(Task):
|
||
|
description = 'Add a baseline apt cache into the image.'
|
||
|
phase = phases.system_cleaning
|
||
|
predecessors = [apt.AptClean]
|
||
|
successors = [network.RemoveDNSInfo]
|
||
|
|
||
|
@classmethod
|
||
|
def run(cls, info):
|
||
|
log_check_call(['chroot', info.root, 'apt-get', 'update'])
|